headchef

package
v0.0.0-...-355e69c Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: BSD-3-Clause Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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