Discover Packages
github.com/felipemantoan/drone
remote
bitbucket
internal
package
Version:
v0.8.10
Opens a new window with list of versions in this module.
Published: Dec 6, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Types
type Account
type AccountResp
type BuildStatus
type Change
type Client
NewClient(url, client)
NewClientToken(url, client, secret, token)
(c) CreateHook(owner, name, hook)
(c) CreateStatus(owner, name, revision, status)
(c) DeleteHook(owner, name, id)
(c) FindCurrent()
(c) FindHook(owner, name, id)
(c) FindRepo(owner, name)
(c) FindSource(owner, name, revision, path)
(c) GetPermission(fullName)
(c) ListEmail()
(c) ListHooks(owner, name, opts)
(c) ListRepos(account, opts)
(c) ListReposAll(account)
(c) ListTeams(opts)
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
Source Files
Documentation Source Files Index Constants Variables Functions Types type Account type AccountResp type BuildStatus type Change type Client 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 NewClient(url, client) NewClientToken(url, client, secret, token) (c) CreateHook(owner, name, hook) (c) CreateStatus(owner, name, revision, status) (c) DeleteHook(owner, name, id) (c) FindCurrent() (c) FindHook(owner, name, id) (c) FindRepo(owner, name) (c) FindSource(owner, name, revision, path) (c) GetPermission(fullName) (c) ListEmail() (c) ListHooks(owner, name, opts) (c) ListRepos(account, opts) (c) ListReposAll(account) (c) ListTeams(opts) (e) Error() (o) Encode() (o) Encode()
Documentation
¶
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
type Account struct {
Login string `json:"username"`
Name string `json:"display_name"`
Type string `json:"type"`
Links Links `json:"links"`
}
type AccountResp struct {
Page int `json:"page"`
Pages int `json:"pagelen"`
Size int `json:"size"`
Next string `json:"next"`
Values []*Account `json:"values"`
}
type BuildStatus struct {
State string `json:"state"`
Key string `json:"key"`
Name string `json:"name,omitempty"`
Url string `json:"url"`
Desc string `json:"description,omitempty"`
}
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 Email struct {
Email string `json:"email"`
IsConfirmed bool `json:"is_confirmed"`
IsPrimary bool `json:"is_primary"`
}
type EmailResp struct {
Page int `json:"page"`
Pages int `json:"pagelen"`
Size int `json:"size"`
Next string `json:"next"`
Values []*Email `json:"values"`
}
type Error struct {
Status int
Body struct {
Message string `json:"message"`
} `json:"error"`
}
type Hook struct {
Uuid string `json:"uuid,omitempty"`
Desc string `json:"description"`
Url string `json:"url"`
Events []string `json:"events"`
Active bool `json:"active"`
}
type HookResp struct {
Page int `json:"page"`
Pages int `json:"pagelen"`
Size int `json:"size"`
Next string `json:"next"`
Values []*Hook `json:"values"`
}
type Link struct {
Href string `json:"href"`
Name string `json:"name"`
}
type LinkClone struct {
Link
}
type Links struct {
Avatar Link `json:"avatar"`
Html Link `json:"html"`
Clone []Link `json:"clone"`
}
type ListOpts struct {
Page int
PageLen int
}
type ListTeamOpts struct {
Page int
PageLen int
Role string
}
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 PushHook struct {
Actor Account `json:"actor"`
Repo Repo `json:"repository"`
Push struct {
Changes []Change `json:"changes"`
} `json:"push"`
}
type Repo struct {
Owner Account `json:"owner"`
Name string `json:"name"`
FullName string `json:"full_name"`
Language string `json:"language"`
IsPrivate bool `json:"is_private"`
Scm string `json:"scm"`
Desc string `json:"desc"`
Links Links `json:"links"`
}
type RepoPerm struct {
Permission string `json:"permission"`
}
type RepoPermResp struct {
Page int `json:"page"`
Pages int `json:"pagelen"`
Values []*RepoPerm `json:"values"`
}
type RepoResp struct {
Page int `json:"page"`
Pages int `json:"pagelen"`
Size int `json:"size"`
Next string `json:"next"`
Values []*Repo `json:"values"`
}
type Source struct {
Node string `json:"node"`
Path string `json:"path"`
Data string `json:"data"`
Size int64 `json:"size"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.