api

package
v0.16.6 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DraftsPrefix = "draft:"

Variables

View Source
var (
	ErrorBadResponseNewVersionEndpoint = errors.New("Bad response from new version endpoint")
	ErrorBadDraftFormat                = errors.New("Bad draft format")
	ErrorBadDraftUsernameDigestFormat  = errors.New("Bad draft username/digest format")
)

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(dockerCommand command.Command, client *http.Client, webClient *web.Client) *Client

func (*Client) PostNewPipeline

func (c *Client) PostNewPipeline(ctx context.Context, image string, tarball *bytes.Buffer) error

func (*Client) PullSource

func (c *Client) PullSource(ctx context.Context, image string, tarFileProcess func(*tar.Header, *tar.Reader) error) error

type CreateRelease

type CreateRelease struct {
	Version string `json:"version"`
}

type Error added in v0.15.9

type Error struct {
	Detail string     `json:"detail"`
	Errors []SubError `json:"errors"`
	Status int        `json:"status"`
	Title  string     `json:"title"`
}

type Model

type Model struct {
	LatestVersion Version `json:"latest_version"`
}

type SubError added in v0.15.9

type SubError struct {
	Detail  string `json:"detail"`
	Pointer string `json:"pointer"`
}

type Version

type Version struct {
	Id string `json:"id"`
}

Jump to

Keyboard shortcuts

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