Documentation ¶
Index ¶
- func NewRetryableClient(isDebugRetryTimings bool) *retryablehttp.Client
- type App
- func (app App) AbortBuild(buildSlug string, abortReason string) error
- func (app App) GetBuild(buildSlug string) (build Build, err error)
- func (app App) StartBuild(workflow string, buildParams json.RawMessage, buildNumber string, ...) (startResponse StartResponse, err error)
- func (app App) WaitForBuilds(buildSlugs []string, statusChangeCallback func(build Build)) error
- type Build
- type BuildArtifact
- type BuildArtifactResponse
- type BuildArtifactSlug
- type BuildArtifactsResponse
- type Environment
- type RetryLogAdaptor
- type StartResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRetryableClient ¶
func NewRetryableClient(isDebugRetryTimings bool) *retryablehttp.Client
NewRetryableClient returns a retryable HTTP client isDebugRetryTimings sets the timeouts shoreter for testing purposes
Types ¶
type App ¶
App ...
func NewAppWithDefaultURL ¶
NewAppWithDefaultURL returns a Bitrise client with the default URl
func (App) AbortBuild ¶
AbortBuild ...
func (App) StartBuild ¶
func (app App) StartBuild(workflow string, buildParams json.RawMessage, buildNumber string, environments []Environment) (startResponse StartResponse, err error)
StartBuild ...
type Build ¶
type Build struct { Slug string `json:"slug"` Status int `json:"status"` StatusText string `json:"status_text"` BuildNumber int64 `json:"build_number"` TriggeredWorkflow string `json:"triggered_workflow"` OriginalBuildParams json.RawMessage `json:"original_build_params"` }
Build ...
func (Build) GetBuildArtifact ¶
func (build Build) GetBuildArtifact(app App, artifactSlug string) (BuildArtifactResponse, error)
GetBuildArtifact ...
func (Build) GetBuildArtifacts ¶
func (build Build) GetBuildArtifacts(app App) (BuildArtifactsResponse, error)
GetBuildArtifacts ...
type BuildArtifact ¶
type BuildArtifact struct { DownloadURL string `json:"expiring_download_url"` Title string `json:"title"` }
BuildArtifact ...
func (BuildArtifact) DownloadArtifact ¶
func (artifact BuildArtifact) DownloadArtifact(filepath string) error
DownloadArtifact ...
type BuildArtifactResponse ¶
type BuildArtifactResponse struct {
Artifact BuildArtifact `json:"data"`
}
BuildArtifactResponse ...
type BuildArtifactSlug ¶
type BuildArtifactSlug struct {
ArtifactSlug string `json:"slug"`
}
BuildArtifactSlug ...
type BuildArtifactsResponse ¶
type BuildArtifactsResponse struct {
ArtifactSlugs []BuildArtifactSlug `json:"data"`
}
BuildArtifactsResponse ...
type Environment ¶
Environment ...
type RetryLogAdaptor ¶
type RetryLogAdaptor struct{}
RetryLogAdaptor adapts the retryablehttp.Logger interface to the go-utils logger.
func (*RetryLogAdaptor) Printf ¶
func (*RetryLogAdaptor) Printf(fmtStr string, vars ...interface{})
Printf implements the retryablehttp.Logger interface
Click to show internal directories.
Click to hide internal directories.