bitrise

package
v0.0.0-...-b134fc5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 11 Imported by: 3

Documentation

Index

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

type App struct {
	BaseURL, Slug, AccessToken string
	IsDebugRetryTimings        bool
}

App ...

func NewAppWithDefaultURL

func NewAppWithDefaultURL(slug, accessToken string) App

NewAppWithDefaultURL returns a Bitrise client with the default URl

func (App) AbortBuild

func (app App) AbortBuild(buildSlug string, abortReason string) error

AbortBuild ...

func (App) GetBuild

func (app App) GetBuild(buildSlug string) (build Build, err error)

GetBuild ...

func (App) StartBuild

func (app App) StartBuild(workflow string, buildParams json.RawMessage, buildNumber string, environments []Environment) (startResponse StartResponse, err error)

StartBuild ...

func (App) WaitForBuilds

func (app App) WaitForBuilds(buildSlugs []string, statusChangeCallback func(build Build)) error

WaitForBuilds ...

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 ...

func (Build) IsAborted

func (build Build) IsAborted() bool

IsAborted ...

func (Build) IsAbortedWithSuccess

func (build Build) IsAbortedWithSuccess() bool

IsAbortedWithSuccess ...

func (Build) IsFailed

func (build Build) IsFailed() bool

IsFailed ...

func (Build) IsRunning

func (build Build) IsRunning() bool

IsRunning ...

func (Build) IsSuccessful

func (build Build) IsSuccessful() bool

IsSuccessful ...

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

type Environment struct {
	MappedTo string `json:"mapped_to"`
	Value    string `json:"value"`
}

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

type StartResponse

type StartResponse struct {
	Status            string `json:"status"`
	Message           string `json:"message"`
	BuildSlug         string `json:"build_slug"`
	BuildNumber       int    `json:"build_number"`
	BuildURL          string `json:"build_url"`
	TriggeredWorkflow string `json:"triggered_workflow"`
}

StartResponse ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL