bamboo

package
v0.0.0-...-cbd9376 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BambooClient

type BambooClient interface {
	StartStage(build, stage string, vars map[string]string, retry Retry) error
	AddLabel(label, build string) error
	DeleteLabel(label, build string) error
	TriggerPlan(plan string) error
	AddComment(comment, build string) error
	EnablePlan(planName string) error
	GetStage(build, stageName string) (Stage, error)
}

func DefaultBambooClient

func DefaultBambooClient(baseUrl, username, password string) (BambooClient, error)

func NewBambooClient

func NewBambooClient(httpClient *http.Client, baseUrl, user, pass string) (BambooClient, error)

type ResultResponse

type ResultResponse struct {
	Stages Stages `json:"stages"`
}

type Retry

type Retry struct {
	Count      int
	Retries    int
	RetrySleep time.Duration
}

type Stage

type Stage struct {
	Name           string `json:"name"`
	LifeCycleState string `json:"lifeCycleState"`
	State          string `json:"state"`
}

type Stages

type Stages struct {
	Stage []Stage `json:"stage"`
}

Jump to

Keyboard shortcuts

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