Documentation ¶
Index ¶
- Constants
- Variables
- func CheckRepoPermission(ctx context.Context, resourceId string) (*models.Repo, error)
- func CheckReposPermission(ctx context.Context, resourceIds []string) ([]*models.Repo, error)
- func Serve(cfg *config.Config)
- type ErrorWithCode
- type Server
- func (p *Server) Builder(ctx context.Context, req interface{}) interface{}
- func (p *Server) Checker(ctx context.Context, req interface{}) error
- func (p *Server) CreateRepo(ctx context.Context, req *pb.CreateRepoRequest) (*pb.CreateRepoResponse, error)
- func (p *Server) DeleteRepos(ctx context.Context, req *pb.DeleteReposRequest) (*pb.DeleteReposResponse, error)
- func (p *Server) DescribeRepos(ctx context.Context, req *pb.DescribeReposRequest) (*pb.DescribeReposResponse, error)
- func (p *Server) ModifyRepo(ctx context.Context, req *pb.ModifyRepoRequest) (*pb.ModifyRepoResponse, error)
- func (p *Server) ValidateRepo(ctx context.Context, req *pb.ValidateRepoRequest) (*pb.ValidateRepoResponse, error)
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 ¶
View Source
var SupportedVisibility = []string{ constants.VisibilityPrivate, constants.VisibilityPublic, }
Functions ¶
func CheckRepoPermission ¶ added in v0.2.3
func CheckReposPermission ¶ added in v0.2.3
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) 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)
Click to show internal directories.
Click to hide internal directories.