Documentation ¶
Index ¶
- Constants
- func Serve(cfg *config.Config)
- type ErrorWithCode
- type IndexYaml
- type QingStorCredential
- type Server
- 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 ¶
This section is empty.
Functions ¶
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 QingStorCredential ¶
type Server ¶
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.