headchef

package
v0.0.0-...-b6fc690 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBuildResp        = errs.New("Build responded with error")
	ErrBuildUnknownType = errs.New("Unknown build type")
)

Functions

func NewBuildRequest

func NewBuildRequest(recipeID, orgID, projID strfmt.UUID, annotations BuildAnnotations) (*headchef_models.V1BuildRequest, error)

Types

type BuildAnnotations

type BuildAnnotations struct {
	CommitID     string `json:"commit_id"`
	Project      string `json:"project"`
	Organization string `json:"organization"`
}

type BuildParams

type BuildParams struct {
	headchef_operations.StartBuildV1Params

	BuildRequest *headchef_models.V1BuildRequest
	// contains filtered or unexported fields
}

func (*BuildParams) SetTimeout

func (b *BuildParams) SetTimeout(timeout time.Duration)

func (*BuildParams) WithTimeout

func (b *BuildParams) WithTimeout(timeout time.Duration) *BuildParams

func (*BuildParams) WriteToRequest

func (b *BuildParams) WriteToRequest(req runtime.ClientRequest, reg strfmt.Registry) error

type BuildStatus

type BuildStatus struct {
	Started   chan *headchef_models.V1BuildStatusResponse
	Failed    chan string
	Completed chan *headchef_models.V1BuildStatusResponse
	RunError  chan error
}

func NewBuildStatus

func NewBuildStatus() *BuildStatus

func (*BuildStatus) Close

func (s *BuildStatus) Close()

type BuildStatusEnum

type BuildStatusEnum int
const (
	Accepted BuildStatusEnum = iota
	Started
	Completed
	Failed
	Error
)

type Client

type Client struct {
	// contains filtered or unexported fields
}

func InitClient

func InitClient(auth *authentication.Auth) *Client

func NewClient

func NewClient(apiURL *url.URL, auth *authentication.Auth) *Client

func (*Client) RequestBuild

func (r *Client) RequestBuild(buildRequest *headchef_models.V1BuildRequest) *BuildStatus

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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