Documentation ¶
Index ¶
- Constants
- type Client
- type DeploymentsApiGroup
- func (d *DeploymentsApiGroup) CreateEnvironment(workspace, repoSlug string, environment Environment) (*Environment, error)
- func (d *DeploymentsApiGroup) DeleteEnvironment(workspace, repoSlug, environmentUuid string) error
- func (d *DeploymentsApiGroup) GetEnvironment(workspace, repoSlug, environmentUuid string) (*Environment, error)
- func (d *DeploymentsApiGroup) ListEnvironments(workspace, repoSlug string) ([]Environment, error)
- type Environment
- type EnvironmentType
- type EnvironmentTypeName
- type EnvironmentTypeRank
- type EnvironmentsPage
- type Link
- type Object
- type Page
- type Pager
- type PipelinesApiGroup
- func (p *PipelinesApiGroup) CreateVariableForEnvironment(workspace, repoSlug, environmentUuid string, variable Variable) (*Variable, error)
- func (p *PipelinesApiGroup) GetConfiguration(workspace, repoSlug string) (*PipelinesConfiguration, error)
- func (p *PipelinesApiGroup) GetVariableForWorkspace(workspace, variableUuid string) (*Variable, error)
- func (p *PipelinesApiGroup) ListVariablesForEnvironment(workspace, repoSlug, environmentUuid string) ([]Variable, error)
- func (p *PipelinesApiGroup) UpdateConfiguration(workspace, repoSlug string, configuration PipelinesConfiguration) (*PipelinesConfiguration, error)
- func (p *PipelinesApiGroup) UpdateVariableForEnvironment(workspace, repoSlug, environmentUuid, variableUuid string, variable Variable) (*Variable, error)
- type PipelinesConfiguration
- type Project
- type RepositoriesApiGroup
- type RepositoriesPage
- type Repository
- type RequestOptions
- type Typer
- type User
- type UserApiGroup
- type UserLinks
- type Variable
- type VariablesPage
- type Workspace
- type WorkspaceLinks
- type WorkspacesApiGroup
Constants ¶
View Source
const ( DefaultBitbucketApiBaseUrl = "https://api.bitbucket.org/2.0" DefaultHeaderAccept = "application/json" // DefaultPageLength is the default page length for paginated requests. More details here: // https://developer.atlassian.com/cloud/bitbucket/rest/intro/#pagination DefaultPageLength = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HttpClient *http.Client User userApiGroup Workspaces workspacesApiGroup Deployments deploymentsApiGroup Pipelines pipelinesApiGroup Repositories repositoriesApiGroup Debug bool // contains filtered or unexported fields }
func NewClientWithBasicAuth ¶
type DeploymentsApiGroup ¶
type DeploymentsApiGroup struct {
// contains filtered or unexported fields
}
func (*DeploymentsApiGroup) CreateEnvironment ¶
func (d *DeploymentsApiGroup) CreateEnvironment(workspace, repoSlug string, environment Environment) (*Environment, error)
func (*DeploymentsApiGroup) DeleteEnvironment ¶
func (d *DeploymentsApiGroup) DeleteEnvironment(workspace, repoSlug, environmentUuid string) error
func (*DeploymentsApiGroup) GetEnvironment ¶
func (d *DeploymentsApiGroup) GetEnvironment(workspace, repoSlug, environmentUuid string) (*Environment, error)
func (*DeploymentsApiGroup) ListEnvironments ¶
func (d *DeploymentsApiGroup) ListEnvironments(workspace, repoSlug string) ([]Environment, error)
type Environment ¶
type Environment struct { Object Uuid string `json:"uuid,omitempty"` Name string `json:"name"` Slug string `json:"slug,omitempty"` EnvironmentType EnvironmentType `json:"environment_type"` }
type EnvironmentType ¶
type EnvironmentType struct { Object Name EnvironmentTypeName `json:"name"` Rank EnvironmentTypeRank `json:"rank"` }
type EnvironmentTypeName ¶
type EnvironmentTypeName string
const ( EnvironmentTypeProduction EnvironmentTypeName = "Production" EnvironmentTypeStaging EnvironmentTypeName = "Staging" EnvironmentTypeTest EnvironmentTypeName = "Test" )
type EnvironmentTypeRank ¶
type EnvironmentTypeRank int
const ( EnvironmentTypeRankProduction EnvironmentTypeRank = 2 EnvironmentTypeRankStaging EnvironmentTypeRank = 1 EnvironmentTypeRankTest EnvironmentTypeRank = 0 )
type EnvironmentsPage ¶
type EnvironmentsPage struct { Page Values []Environment `json:"values"` }
func (*EnvironmentsPage) GetSize ¶
func (p *EnvironmentsPage) GetSize() int
func (*EnvironmentsPage) GetValues ¶
func (p *EnvironmentsPage) GetValues() []Typer
type PipelinesApiGroup ¶
type PipelinesApiGroup struct {
// contains filtered or unexported fields
}
func (*PipelinesApiGroup) CreateVariableForEnvironment ¶
func (p *PipelinesApiGroup) CreateVariableForEnvironment(workspace, repoSlug, environmentUuid string, variable Variable) (*Variable, error)
func (*PipelinesApiGroup) GetConfiguration ¶
func (p *PipelinesApiGroup) GetConfiguration(workspace, repoSlug string) (*PipelinesConfiguration, error)
func (*PipelinesApiGroup) GetVariableForWorkspace ¶
func (p *PipelinesApiGroup) GetVariableForWorkspace(workspace, variableUuid string) (*Variable, error)
func (*PipelinesApiGroup) ListVariablesForEnvironment ¶
func (p *PipelinesApiGroup) ListVariablesForEnvironment(workspace, repoSlug, environmentUuid string) ([]Variable, error)
func (*PipelinesApiGroup) UpdateConfiguration ¶
func (p *PipelinesApiGroup) UpdateConfiguration(workspace, repoSlug string, configuration PipelinesConfiguration) (*PipelinesConfiguration, error)
func (*PipelinesApiGroup) UpdateVariableForEnvironment ¶
func (p *PipelinesApiGroup) UpdateVariableForEnvironment(workspace, repoSlug, environmentUuid, variableUuid string, variable Variable) (*Variable, error)
type PipelinesConfiguration ¶
type RepositoriesApiGroup ¶
type RepositoriesApiGroup struct {
// contains filtered or unexported fields
}
func (*RepositoriesApiGroup) ListRepositoriesInWorkspace ¶
func (r *RepositoriesApiGroup) ListRepositoriesInWorkspace(workspace string) ([]Repository, error)
type RepositoriesPage ¶
type RepositoriesPage struct { Page Values []Repository `json:"values"` }
func (*RepositoriesPage) GetSize ¶
func (p *RepositoriesPage) GetSize() int
func (*RepositoriesPage) GetValues ¶
func (p *RepositoriesPage) GetValues() []Typer
type Repository ¶
type RequestOptions ¶
type UserApiGroup ¶
type UserApiGroup struct {
// contains filtered or unexported fields
}
func (*UserApiGroup) GetCurrentUser ¶
func (u *UserApiGroup) GetCurrentUser() (*User, error)
type VariablesPage ¶
func (*VariablesPage) GetSize ¶
func (p *VariablesPage) GetSize() int
func (*VariablesPage) GetValues ¶
func (p *VariablesPage) GetValues() []Typer
type WorkspaceLinks ¶
type WorkspacesApiGroup ¶
type WorkspacesApiGroup struct {
// contains filtered or unexported fields
}
func (*WorkspacesApiGroup) GetWorkspace ¶
func (w *WorkspacesApiGroup) GetWorkspace(name string) (*Workspace, error)
Click to show internal directories.
Click to hide internal directories.