Documentation ¶
Index ¶
- type Answer
- type Author
- type BClientOptionsFunc
- type Branch
- type Client
- func (c *Client) GetProject(projectName string) (*Project, error)
- func (c *Client) GetProjectRepos(projectKey string, pagination *Pagination, filter *ProjectReposFilter) ([]*Repository, error)
- func (c *Client) GetProjectReposCommit(projectKey, repoSlug, commitId string) (*Commit, error)
- func (c *Client) GetProjectsReposBranches(projectKey string, repoSlug string, pagination *Pagination, ...) ([]*Branch, error)
- func (c *Client) GetProjectsReposBranchesDefault(projectKey string, repoSlug string, pagination *Pagination) (*Branch, error)
- func (c *Client) GetProjectsReposCommits(projectKey string, repoSlug string, pagination *Pagination) ([]*Commit, error)
- func (c *Client) GetProjectsReposFileRaw(projectKey string, repoSlug string, path string, ...) ([]byte, error)
- func (c *Client) GetProjectsReposFiles(projectKey string, repoSlug string, pagination *Pagination, ...) ([]string, error)
- func (c *Client) ListProjects(pagination *Pagination, filter *ProjectsFilter) ([]*Project, error)
- type ClientError
- type Commit
- type CommitTime
- type Committer
- type Errors
- type Links
- type Pagination
- type Parent
- type Project
- type ProjectLinks
- type ProjectReposBranchesFilter
- type ProjectReposFileFilter
- type ProjectReposFilter
- type Projects
- type ProjectsFilter
- type Repository
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BClientOptionsFunc ¶ added in v0.1.2
func WithMaxConnections ¶ added in v0.1.3
func WithMaxConnections(maxCons int) BClientOptionsFunc
func WithMaxTimeoutWait ¶ added in v0.1.3
func WithMaxTimeoutWait(maxTimeout time.Duration) BClientOptionsFunc
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(token, baseUrl string, options ...BClientOptionsFunc) *Client
func (*Client) GetProjectRepos ¶
func (c *Client) GetProjectRepos(projectKey string, pagination *Pagination, filter *ProjectReposFilter) ([]*Repository, error)
func (*Client) GetProjectReposCommit ¶ added in v0.1.6
func (*Client) GetProjectsReposBranches ¶ added in v0.1.4
func (c *Client) GetProjectsReposBranches(projectKey string, repoSlug string, pagination *Pagination, filter *ProjectReposBranchesFilter) ([]*Branch, error)
func (*Client) GetProjectsReposBranchesDefault ¶ added in v0.1.4
func (*Client) GetProjectsReposCommits ¶
func (*Client) GetProjectsReposFileRaw ¶
func (*Client) GetProjectsReposFiles ¶
func (c *Client) GetProjectsReposFiles(projectKey string, repoSlug string, pagination *Pagination, filter *ProjectReposFileFilter) ([]string, error)
func (*Client) ListProjects ¶
func (c *Client) ListProjects(pagination *Pagination, filter *ProjectsFilter) ([]*Project, error)
type ClientError ¶
type Commit ¶
type Commit struct { Id string `json:"id"` DisplayId string `json:"displayId"` Author Author `json:"author"` AuthorTimestamp CommitTime `json:"authorTimestamp"` Committer Committer `json:"committer"` CommitterTimestamp CommitTime `json:"committerTimestamp"` Message string `json:"message"` Parents []Parent `json:"parents"` }
type CommitTime ¶
func (CommitTime) MarshalJSON ¶
func (t CommitTime) MarshalJSON() ([]byte, error)
func (CommitTime) String ¶
func (t CommitTime) String() string
func (CommitTime) Time ¶
func (t CommitTime) Time() time.Time
func (CommitTime) Unix ¶
func (t CommitTime) Unix() int64
func (*CommitTime) UnmarshalJSON ¶
func (t *CommitTime) UnmarshalJSON(s []byte) (err error)
type Errors ¶
type Errors struct { StatusCode int `json:"-"` Errors []ClientError `json:"errors"` }
type Pagination ¶
type Pagination struct { Size int `json:"size"` Limit int `json:"limit"` IsLastPage bool `json:"isLastPage"` Start int `json:"start"` NextPageStart int `json:"nextPageStart"` }
func DefaultPagination ¶
func DefaultPagination() *Pagination
type ProjectLinks ¶
type ProjectReposBranchesFilter ¶ added in v0.1.4
type ProjectReposFileFilter ¶
type ProjectReposFileFilter struct {
At string `structs:"at"`
}
type ProjectReposFilter ¶
type ProjectReposFilter struct {
ProjectKey string `structs:"projectKey"`
}
type ProjectsFilter ¶
type Repository ¶
type Repository struct { Slug string `json:"slug"` Id int `json:"id"` Name string `json:"name"` ScmId string `json:"scmId"` State string `json:"state"` StatusMessage string `json:"statusMessage"` Forkable bool `json:"forkable"` Project Project `json:"project"` Public bool `json:"public"` Links ProjectLinks `json:"links"` }
Click to show internal directories.
Click to hide internal directories.