Versions in this module Expand all Collapse all v0 v0.15.0 Nov 13, 2023 Changes in this version + func BuildStatusKey(preferredName, name string) string v0.14.0 Oct 9, 2023 Changes in this version + const BuildStatusFailed + const BuildStatusInProgress + const BuildStatusSuccessful + const InsightReportFail + const InsightReportPass + type Branch struct + DisplayID string + ID string + IsDefault bool + LatestChangeset string + LatestCommit string + Type string + type BranchClientInterface interface + BranchList func(projectKey string, repositorySlug string, params BranchListParams) (*BranchPage, error) + type BranchListParams struct + Base string + BoostMatches bool + Details bool + FilterText string + OrderBy string + type BranchPage struct + IsLastPage bool + Limit int + Size int + Start int + Values []Branch + type BuildStatus struct + DateAdded int64 + Description string + Key string + Name string + State string + URL string + type BuildStatusCreatePayload struct + Description string + Key string + Name string + State string + URL string + type BuildStatusPage struct + IsLastPage bool + Limit int + Size int + Start int + Values []BuildStatus + type Client struct + func NewClient(clientConfig *ClientConfig) (*Client, error) + func (c *Client) BranchList(projectKey string, repositorySlug string, params BranchListParams) (*BranchPage, error) + func (c *Client) BuildStatusCreate(gitCommit string, payload BuildStatusCreatePayload) error + func (c *Client) BuildStatusList(gitCommit string) (*BuildStatusPage, error) + func (c *Client) CommitGet(projectKey, repositorySlug, commitID string) (*Commit, error) + func (c *Client) CommitList(projectKey string, repositorySlug string, params CommitListParams) (*CommitPage, error) + func (c *Client) CommitPullRequestList(projectKey, repositorySlug, commitID string) (*PullRequestPage, error) + func (c *Client) InsightReportCreate(projectKey, repositorySlug, commitID, key string, ...) (*InsightReport, error) + func (c *Client) ProjectCreate(payload ProjectCreatePayload) (*Project, error) + func (c *Client) RawGet(project, repository, filename, gitFullRef string) ([]byte, error) + func (c *Client) RepoCreate(projectKey string, payload RepoCreatePayload) (*Repo, error) + func (c *Client) RepoList(projectKey string) (*RepoPage, error) + func (c *Client) TagCreate(projectKey string, repositorySlug string, payload TagCreatePayload) (*Tag, error) + func (c *Client) TagGet(projectKey string, repositorySlug string, name string) (*Tag, error) + func (c *Client) TagList(projectKey string, repositorySlug string, params TagListParams) (*TagPage, error) + func (c *Client) WebhookCreate(projectKey, repositorySlug string, payload WebhookCreatePayload) (*Webhook, error) + type ClientConfig struct + APIToken string + BaseURL string + HTTPClient *http.Client + Logger logging.LeveledLoggerInterface + MaxRetries int + Timeout time.Duration + type Commit struct + Author struct{ ... } + AuthorTimestamp int64 + Committer struct{ ... } + CommitterTimestamp int64 + DisplayID string + ID string + Message string + Parents []struct{ ... } + type CommitClientInterface interface + CommitGet func(projectKey, repositorySlug, commitID string) (*Commit, error) + CommitList func(projectKey string, repositorySlug string, params CommitListParams) (*CommitPage, error) + CommitPullRequestList func(projectKey, repositorySlug, commitID string) (*PullRequestPage, error) + type CommitListParams struct + Since string + Until string + type CommitPage struct + AuthorCount int + IsLastPage bool + Limit int + Size int + Start int + TotalCount int + Values []Commit + type InsightReport struct + CreatedDate int + Data []InsightReportData + Details string + Key string + Link string + LogoURL string + Reporter string + Result string + Title string + type InsightReportCreatePayload struct + CreatedDate int64 + Data []InsightReportData + Details string + Link string + LogoURL string + Reporter string + Result string + Title string + type InsightReportData struct + Title string + Type string + Value interface{} + type Project struct + Description string + ID int + Key string + Links struct{ ... } + Name string + Public bool + Type string + type ProjectCreatePayload struct + Avatar string + Description string + Key string + Name string + type PullRequest struct + Author struct{ ... } + Closed bool + CreatedDate int + Description string + FromRef Ref + ID int + Links struct{ ... } + Locked bool + Open bool + Participants []struct{ ... } + Reviewers []struct{ ... } + State string + Title string + ToRef Ref + UpdatedDate int + Version int + type PullRequestPage struct + IsLastPage bool + Limit int + Size int + Start int + Values []PullRequest + type RawClientInterface interface + RawGet func(project, repository, filename, gitFullRef string) ([]byte, error) + type Ref struct + ID string + Repository struct{ ... } + type Repo struct + Description string + Forkable bool + Hierarchyid string + ID int + Links struct{ ... } + Name string + Project Project + Public bool + SCMID string + Slug string + State string + StatusMessage string + type RepoClientInterface interface + RepoCreate func(projectKey string, payload RepoCreatePayload) (*Repo, error) + RepoList func(projectKey string) (*RepoPage, error) + type RepoCreatePayload struct + DefaultBranch string + Forkable bool + Name string + SCMID string + type RepoPage struct + IsLastPage bool + Limit int + Size int + Start int + Values []Repo + type Tag struct + DisplayID string + Hash string + ID string + LatestChangeset string + LatestCommit string + Type string + type TagClientInterface interface + TagCreate func(projectKey string, repositorySlug string, payload TagCreatePayload) (*Tag, error) + TagGet func(projectKey string, repositorySlug string, name string) (*Tag, error) + TagList func(projectKey string, repositorySlug string, params TagListParams) (*TagPage, error) + type TagCreatePayload struct + Force bool + Message string + Name string + StartPoint string + Type string + type TagListParams struct + FilterText string + OrderBy string + type TagPage struct + IsLastPage bool + Limit int + Size int + Start int + Values []Tag + type TestClient struct + Branches []Branch + Commits []Commit + Files map[string][]byte + PullRequests []PullRequest + Repos []Repo + Tags []Tag + func (c *TestClient) BranchList(projectKey string, repositorySlug string, params BranchListParams) (*BranchPage, error) + func (c *TestClient) CommitGet(projectKey, repositorySlug, commitID string) (*Commit, error) + func (c *TestClient) CommitList(projectKey string, repositorySlug string, params CommitListParams) (*CommitPage, error) + func (c *TestClient) CommitPullRequestList(projectKey, repositorySlug, commitID string) (*PullRequestPage, error) + func (c *TestClient) RawGet(project, repository, filename, gitFullRef string) ([]byte, error) + func (c *TestClient) RepoCreate(projectKey string, payload RepoCreatePayload) (*Repo, error) + func (c *TestClient) RepoList(projectKey string) (*RepoPage, error) + func (c *TestClient) TagCreate(projectKey string, repositorySlug string, payload TagCreatePayload) (*Tag, error) + func (c *TestClient) TagGet(projectKey string, repositorySlug string, name string) (*Tag, error) + func (c *TestClient) TagList(projectKey string, repositorySlug string, params TagListParams) (*TagPage, error) + type User struct + Active bool + DisplayName string + EmailAddress string + ID int + Name string + Slug string + Type string + type Webhook struct + Active bool + Configuration WebhookConfiguration + CreatedDate int64 + Events []string + ID int + Name string + URL string + UpdatedDate int64 + type WebhookConfiguration struct + Secret string + type WebhookCreatePayload struct + Active bool + Configuration WebhookConfiguration + Events []string + Name string + URL string v0.14.0-preview.1 Sep 29, 2023