Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func MakeHandler ¶
func MakeHandler(svc Service, logger log.Logger, repository repository.Repository) http.Handler
Types ¶
type Service ¶
type Service interface {
// git tags 列表
// desc: 需要区分是gitlab还是github
Tags(ctx context.Context) (res []string, err error)
// 获取git的分支
Branches(ctx context.Context) (res []string, err error)
// 获取项目的Dockerfile
GetDockerfile(ctx context.Context, fileName string) (res string, err error)
// 根据Git地址 获取tag列表
TagsByGitPath(ctx context.Context, gitPath string) (res []string, err error)
// 根据Git地址 获取branch列表
BranchesByGitPath(ctx context.Context, gitPath string) (res []string, err error)
}
func NewService ¶
func NewService(logger log.Logger, config *config.Config, gitClient git_repo.Repo, store repository.Repository) Service
Click to show internal directories.
Click to hide internal directories.