Documentation ¶
Index ¶
- func GenerateSelectQuery(query *db.SelectQuery, table, joinTable, keyField, valueField string, ...) *db.SelectQuery
- func GetLabelMapFromRequest(req *pb.DescribeReposRequest) (map[string][]string, error)
- func GetSelectorMapFromRequest(req *pb.DescribeReposRequest) (map[string][]string, error)
- func Serve(cfg *config.Config)
- func ValidateHTTP(url string) error
- func ValidateS3(host, accessKeyId, secretAccessKey, bucket, zone string) error
- type QingStorCredential
- type Server
- func (p *Server) CreateRepo(ctx context.Context, req *pb.CreateRepoRequest) (*pb.CreateRepoResponse, error)
- func (p *Server) CreateRepoLabel(ctx context.Context, req *pb.CreateRepoLabelRequest) (*pb.CreateRepoLabelResponse, error)
- func (p *Server) CreateRepoSelector(ctx context.Context, req *pb.CreateRepoSelectorRequest) (*pb.CreateRepoSelectorResponse, error)
- func (p *Server) DeleteRepo(ctx context.Context, req *pb.DeleteRepoRequest) (*pb.DeleteRepoResponse, error)
- func (p *Server) DeleteRepoLabel(ctx context.Context, req *pb.DeleteRepoLabelRequest) (*pb.DeleteRepoLabelResponse, error)
- func (p *Server) DeleteRepoSelector(ctx context.Context, req *pb.DeleteRepoSelectorRequest) (*pb.DeleteRepoSelectorResponse, error)
- func (p *Server) DescribeRepoLabels(ctx context.Context, req *pb.DescribeRepoLabelsRequest) (*pb.DescribeRepoLabelsResponse, error)
- func (p *Server) DescribeRepoSelectors(ctx context.Context, req *pb.DescribeRepoSelectorsRequest) (*pb.DescribeRepoSelectorsResponse, 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) ModifyRepoLabel(ctx context.Context, req *pb.ModifyRepoLabelRequest) (*pb.ModifyRepoLabelResponse, error)
- func (p *Server) ModifyRepoSelector(ctx context.Context, req *pb.ModifyRepoSelectorRequest) (*pb.ModifyRepoSelectorResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSelectQuery ¶
func GenerateSelectQuery(query *db.SelectQuery, table, joinTable, keyField, valueField string, labelMap map[string][]string) *db.SelectQuery
func GetLabelMapFromRequest ¶
func GetLabelMapFromRequest(req *pb.DescribeReposRequest) (map[string][]string, error)
func GetSelectorMapFromRequest ¶
func GetSelectorMapFromRequest(req *pb.DescribeReposRequest) (map[string][]string, error)
func ValidateHTTP ¶
func ValidateS3 ¶
Types ¶
type QingStorCredential ¶
type Server ¶
func (*Server) CreateRepo ¶
func (p *Server) CreateRepo(ctx context.Context, req *pb.CreateRepoRequest) (*pb.CreateRepoResponse, error)
func (*Server) CreateRepoLabel ¶
func (p *Server) CreateRepoLabel(ctx context.Context, req *pb.CreateRepoLabelRequest) (*pb.CreateRepoLabelResponse, error)
func (*Server) CreateRepoSelector ¶
func (p *Server) CreateRepoSelector(ctx context.Context, req *pb.CreateRepoSelectorRequest) (*pb.CreateRepoSelectorResponse, error)
func (*Server) DeleteRepo ¶
func (p *Server) DeleteRepo(ctx context.Context, req *pb.DeleteRepoRequest) (*pb.DeleteRepoResponse, error)
func (*Server) DeleteRepoLabel ¶
func (p *Server) DeleteRepoLabel(ctx context.Context, req *pb.DeleteRepoLabelRequest) (*pb.DeleteRepoLabelResponse, error)
func (*Server) DeleteRepoSelector ¶
func (p *Server) DeleteRepoSelector(ctx context.Context, req *pb.DeleteRepoSelectorRequest) (*pb.DeleteRepoSelectorResponse, error)
func (*Server) DescribeRepoLabels ¶
func (p *Server) DescribeRepoLabels(ctx context.Context, req *pb.DescribeRepoLabelsRequest) (*pb.DescribeRepoLabelsResponse, error)
func (*Server) DescribeRepoSelectors ¶
func (p *Server) DescribeRepoSelectors(ctx context.Context, req *pb.DescribeRepoSelectorsRequest) (*pb.DescribeRepoSelectorsResponse, 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) ModifyRepoLabel ¶
func (p *Server) ModifyRepoLabel(ctx context.Context, req *pb.ModifyRepoLabelRequest) (*pb.ModifyRepoLabelResponse, error)
func (*Server) ModifyRepoSelector ¶
func (p *Server) ModifyRepoSelector(ctx context.Context, req *pb.ModifyRepoSelectorRequest) (*pb.ModifyRepoSelectorResponse, error)
Click to show internal directories.
Click to hide internal directories.