hook

package
v0.0.0-...-111b8c6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 13 Imported by: 0

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)

解析端口

type Owner

type Owner struct {
	Name      string `json:"name"`
	Email     string `json:"email"`
	AvatarUrl string `json:"avatar_url"`
}

type Repository

type Repository struct {
	ID       int64  `json:"id"`
	Name     string `json:"name"`
	FullName string `json:"full_name"`
	Private  bool   `json:"private"`
}

Jump to

Keyboard shortcuts

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