publisher

package
v0.0.0-...-05c9738 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildError

type BuildError struct {
	Err  error
	Logs string
}

func (*BuildError) Error

func (e *BuildError) Error() string

func (*BuildError) Unwrap

func (e *BuildError) Unwrap() error

type Config

type Config struct {
	BuildctlPath     string
	Address          string
	RepositoryPrefix string
	Platform         string
	Timeout          time.Duration
	CACert           string
	ClientCert       string
	ClientKey        string
	DockerConfig     string
	AllowInsecure    bool
}

type Publisher

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

func New

func New(config Config) (*Publisher, error)

func (*Publisher) Build

func (p *Publisher) Build(ctx context.Context, request Request) (*Result, error)

type Request

type Request struct {
	ProjectID  string
	ReleaseID  string
	Context    string
	Dockerfile string
	Snapshot   []byte
}

type Result

type Result struct {
	ImageRef string `json:"image_ref"`
	Digest   string `json:"digest"`
	Logs     string `json:"logs"`
}

Jump to

Keyboard shortcuts

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