repo

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 20 Imported by: 1

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

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) Checker added in v0.1.2

func (p *Server) Checker(ctx context.Context, req interface{}) error

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