repo

package
v0.0.0-...-162f8c7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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 Serve

func Serve(cfg *config.Config)

func ValidateHTTP

func ValidateHTTP(url string) error

func ValidateS3

func ValidateS3(host, accessKeyId, secretAccessKey, bucket, zone string) error

Types

type QingStorCredential

type QingStorCredential struct {
	AccessKeyId     string `json:"access_key_id"`
	SecretAccessKey string `json:"secret_access_key"`
}

type Server

type Server struct {
	*pi.Pi
}

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 (*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 (*Server) DescribeRepoLabels

func (*Server) DescribeRepoSelectors

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

Jump to

Keyboard shortcuts

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