repo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2018 License: Apache-2.0 Imports: 23 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

This section is empty.

Functions

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 IndexYaml

type IndexYaml struct {
	ApiVersion string                 `yaml:"apiVersion"`
	Entries    map[string]interface{} `yaml:"entries"`
	Generated  string                 `yaml:"generated"`
}

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) 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