Documentation ¶
Index ¶
- type Account
- type AccountResp
- type BuildStatus
- type Change
- type Client
- func (c *Client) CreateHook(owner, name string, hook *Hook) error
- func (c *Client) CreateStatus(owner, name, revision string, status *BuildStatus) error
- func (c *Client) DeleteHook(owner, name, id string) error
- func (c *Client) FindCurrent() (*Account, error)
- func (c *Client) FindHook(owner, name, id string) (*Hook, error)
- func (c *Client) FindRepo(owner, name string) (*Repo, error)
- func (c *Client) FindSource(owner, name, revision, path string) (*Source, error)
- func (c *Client) GetPermission(fullName string) (*RepoPerm, error)
- func (c *Client) ListEmail() (*EmailResp, error)
- func (c *Client) ListHooks(owner, name string, opts *ListOpts) (*HookResp, error)
- func (c *Client) ListRepos(account string, opts *ListOpts) (*RepoResp, error)
- func (c *Client) ListReposAll(account string) ([]*Repo, error)
- func (c *Client) ListTeams(opts *ListTeamOpts) (*AccountResp, error)
- type Email
- type EmailResp
- type Error
- type Hook
- type HookResp
- type Link
- type LinkClone
- type Links
- type ListOpts
- type ListTeamOpts
- type PullRequestHook
- type PushHook
- type Repo
- type RepoPerm
- type RepoPermResp
- type RepoResp
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountResp ¶
type BuildStatus ¶
type Change ¶
type Change struct { New struct { Type string `json:"type"` Name string `json:"name"` Target struct { Type string `json:"type"` Hash string `json:"hash"` Message string `json:"message"` Date time.Time `json:"date"` Links Links `json:"links"` Author struct { Raw string `json:"raw"` User Account `json:"user"` } `json:"author"` } `json:"target"` } `json:"new"` }
type Client ¶
func (*Client) CreateStatus ¶
func (c *Client) CreateStatus(owner, name, revision string, status *BuildStatus) error
func (*Client) DeleteHook ¶
func (*Client) FindCurrent ¶
func (*Client) FindSource ¶
func (*Client) GetPermission ¶ added in v0.8.6
func (*Client) ListTeams ¶
func (c *Client) ListTeams(opts *ListTeamOpts) (*AccountResp, error)
type ListTeamOpts ¶
func (*ListTeamOpts) Encode ¶
func (o *ListTeamOpts) Encode() string
type PullRequestHook ¶
type PullRequestHook struct { Actor Account `json:"actor"` Repo Repo `json:"repository"` PullRequest struct { ID int `json:"id"` Type string `json:"type"` Reason string `json:"reason"` Desc string `json:"description"` Title string `json:"title"` State string `json:"state"` Links Links `json:"links"` Created time.Time `json:"created_on"` Updated time.Time `json:"updated_on"` Source struct { Repo Repo `json:"repsoitory"` Commit struct { Hash string `json:"hash"` Links Links `json:"links"` } `json:"commit"` Branch struct { Name string `json:"name"` } `json:"branch"` } `json:"source"` Dest struct { Repo Repo `json:"repsoitory"` Commit struct { Hash string `json:"hash"` Links Links `json:"links"` } `json:"commit"` Branch struct { Name string `json:"name"` } `json:"branch"` } `json:"destination"` } `json:"pullrequest"` }
type RepoPermResp ¶ added in v0.8.6
Click to show internal directories.
Click to hide internal directories.