Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GithubRouter ¶
func GithubRouter(ctx irisContext.Context)
Types ¶
type GithubHookPostData ¶
type GithubHookPostData struct { Ref string `json:"ref"` After string `json:"after"` Repository Repository `json:"repository"` }
type GithubRouterQuery ¶
type GithubRouterQuery struct { Port []string `url:"port"` // 端口映射, 格式为 8080:80, 本机端口:容器端口 Auth string `url:"auth"` // 认证方式, basic://username:password 或者 token://xxxxxx }
func (GithubRouterQuery) ParseAuth ¶
func (q GithubRouterQuery) ParseAuth() (username string, password string, secretKey string, err error)
解析认证方式,用于克隆项目,公开项目不需要设置,私有项目需要设置
func (GithubRouterQuery) ParsePort ¶
func (q GithubRouterQuery) ParsePort() (ports []container.ExposePort, err error)
解析端口
Click to show internal directories.
Click to hide internal directories.