repo

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNotExpect = 901

	ErrVisibility        = 101
	ErrNotUrl            = 102
	ErrCredentialNotJson = 103
	ErrNoAccessKeyId     = 104
	ErrNoSecretAccessKey = 105
	ErrS3AccessDeny      = 106
	ErrUrlFormat         = 107
	ErrSchemeNotHttp     = 108
	ErrHttpAccessDeny    = 109
	ErrSchemeNotHttps    = 110
	ErrType              = 111
	ErrProviders         = 112
	ErrNotRepoUrl        = 113
	ErrSchemeNotS3       = 114
	ErrBadIndexYaml      = 115
)

Variables

Functions

func CheckRepoPermission added in v0.2.3

func CheckRepoPermission(ctx context.Context, resourceId string) (*models.Repo, error)

func CheckReposPermission added in v0.2.3

func CheckReposPermission(ctx context.Context, resourceIds []string) ([]*models.Repo, error)

func Serve

func Serve(cfg *config.Config)

Types

type ErrorWithCode

type ErrorWithCode struct {
	// contains filtered or unexported fields
}

func (*ErrorWithCode) Code

func (e *ErrorWithCode) Code() uint32

func (*ErrorWithCode) Error

func (e *ErrorWithCode) Error() string

type Server

type Server struct {
}

func (*Server) Builder added in v0.2.3

func (p *Server) Builder(ctx context.Context, req interface{}) interface{}

func (*Server) Checker added in v0.1.2

func (p *Server) Checker(ctx context.Context, req interface{}) error

func (*Server) CreateRepo

func (p *Server) CreateRepo(ctx context.Context, req *pb.CreateRepoRequest) (*pb.CreateRepoResponse, error)

func (*Server) DeleteRepos

func (p *Server) DeleteRepos(ctx context.Context, req *pb.DeleteReposRequest) (*pb.DeleteReposResponse, error)

func (*Server) DescribeRepos

func (p *Server) DescribeRepos(ctx context.Context, req *pb.DescribeReposRequest) (*pb.DescribeReposResponse, error)

func (*Server) ModifyRepo

func (p *Server) ModifyRepo(ctx context.Context, req *pb.ModifyRepoRequest) (*pb.ModifyRepoResponse, error)

func (*Server) ValidateRepo

func (p *Server) ValidateRepo(ctx context.Context, req *pb.ValidateRepoRequest) (*pb.ValidateRepoResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL