types

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: BSD-3-Clause Imports: 5 Imported by: 4 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

Overview

Package types defines public build engine request, response, and event contracts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildContextDirRequiredError

type BuildContextDirRequiredError struct{}

func (*BuildContextDirRequiredError) Error

type BuildDockerServiceUnavailableError

type BuildDockerServiceUnavailableError struct{}

func (*BuildDockerServiceUnavailableError) Error

type BuildKitDockerExporterError

type BuildKitDockerExporterError struct {
	Err          error
	ProviderName string
}

func (*BuildKitDockerExporterError) Error

func (*BuildKitDockerExporterError) Unwrap

func (e *BuildKitDockerExporterError) Unwrap() error

type BuildKitImageExporterError

type BuildKitImageExporterError struct {
	Err          error
	ProviderName string
}

func (*BuildKitImageExporterError) Error

func (*BuildKitImageExporterError) Unwrap

func (e *BuildKitImageExporterError) Unwrap() error

type BuildProviderUnavailableError

type BuildProviderUnavailableError struct{}

func (*BuildProviderUnavailableError) Error

type BuildRequest

type BuildRequest struct {
	BuildArgs        map[string]string `json:"buildArgs,omitempty" doc:"Build arguments"`
	Labels           map[string]string `json:"labels,omitempty" doc:"Build labels"`
	Ulimits          map[string]string `json:"ulimits,omitempty" doc:"Build ulimits"`
	Network          string            `json:"network,omitempty" doc:"Build network mode"`
	Dockerfile       string            `json:"dockerfile,omitempty" doc:"Dockerfile path"`
	DockerfileInline string            `json:"dockerfileInline,omitempty" doc:"Inline Dockerfile content"`
	Provider         string            `json:"provider,omitempty" doc:"Build provider override"`
	Target           string            `json:"target,omitempty" doc:"Target stage"`
	ContextDir       string            `json:"contextDir" minLength:"1" doc:"Build context directory"`
	Isolation        string            `json:"isolation,omitempty" doc:"Build isolation mode"`
	Entitlements     []string          `json:"entitlements,omitempty" doc:"Build entitlements"`
	CacheTo          []string          `json:"cacheTo,omitempty" doc:"Build cache targets"`
	CacheFrom        []string          `json:"cacheFrom,omitempty" doc:"Build cache sources"`
	ExtraHosts       []string          `json:"extraHosts,omitempty" doc:"Build extra host mappings"`
	Platforms        []string          `json:"platforms,omitempty" doc:"Target platforms"`
	Tags             []string          `json:"tags,omitempty" doc:"Image tags"`
	ShmSize          int64             `json:"shmSize,omitempty" doc:"Build shared memory size in bytes"`
	Pull             bool              `json:"pull,omitempty" doc:"Always pull referenced base images"`
	NoCache          bool              `json:"noCache,omitempty" doc:"Disable build cache"`
	Privileged       bool              `json:"privileged,omitempty" doc:"Enable privileged build"`
	Push             bool              `json:"push,omitempty" doc:"Push image"`
	Load             bool              `json:"load,omitempty" doc:"Load image into local Docker"`
}

BuildRequest contains options for building an image with BuildKit.

type BuildResult

type BuildResult struct {
	Provider string   `json:"provider"`
	Digest   string   `json:"digest,omitempty"`
	Tags     []string `json:"tags,omitempty"`
}

BuildResult provides basic build output metadata.

type BuildSessionUnavailableError

type BuildSessionUnavailableError struct{}

func (*BuildSessionUnavailableError) Error

type BuildSettings

type BuildSettings struct {
	DepotProjectID   string
	DepotToken       string
	BuildProvider    string
	BuildTimeoutSecs int
}

BuildSettings configures build provider behavior.

type BuildSettingsProviderUnavailableError

type BuildSettingsProviderUnavailableError struct{}

func (*BuildSettingsProviderUnavailableError) Error

type BuildTagsRequiredError

type BuildTagsRequiredError struct{}

func (*BuildTagsRequiredError) Error

func (e *BuildTagsRequiredError) Error() string

type Builder

type Builder interface {
	BuildImage(ctx context.Context, req BuildRequest, progressWriter io.Writer, serviceName string) (*BuildResult, error)
}

Builder builds container images.

progressWriter receives the raw text the docker CLI would print for the build (plain-mode BuildKit progress, jsonmessage-rendered push/load output). Writes to it are serialized by the implementation, so any plain io.Writer is safe to pass. Hosts that need structured framing wrap the writer themselves.

type DepotBuildPushRequiredError

type DepotBuildPushRequiredError struct{}

func (*DepotBuildPushRequiredError) Error

type DepotProjectCredentialsRequiredError

type DepotProjectCredentialsRequiredError struct{}

func (*DepotProjectCredentialsRequiredError) Error

type DockerBuildMultiPlatformUnsupportedError

type DockerBuildMultiPlatformUnsupportedError struct{}

func (*DockerBuildMultiPlatformUnsupportedError) Error

type DockerClientProvider

type DockerClientProvider interface {
	GetClient(ctx context.Context) (*client.Client, error)
}

DockerClientProvider provides Docker clients.

type DockerfileAndInlineMutuallyExclusiveError

type DockerfileAndInlineMutuallyExclusiveError struct{}

func (*DockerfileAndInlineMutuallyExclusiveError) Error

type GitBuildContextFragmentRequiredError

type GitBuildContextFragmentRequiredError struct{}

func (*GitBuildContextFragmentRequiredError) Error

type GitBuildContextRefOptionError added in v0.5.3

type GitBuildContextRefOptionError struct{}

func (*GitBuildContextRefOptionError) Error added in v0.5.3

type GitBuildContextRefRequiredError

type GitBuildContextRefRequiredError struct{}

func (*GitBuildContextRefRequiredError) Error

type GitBuildContextSubdirEscapesRepositoryError

type GitBuildContextSubdirEscapesRepositoryError struct{}

func (*GitBuildContextSubdirEscapesRepositoryError) Error

type GitBuildContextSubdirRelativeError

type GitBuildContextSubdirRelativeError struct{}

func (*GitBuildContextSubdirRelativeError) Error

type GitBuildContextSubdirRequiredError

type GitBuildContextSubdirRequiredError struct{}

func (*GitBuildContextSubdirRequiredError) Error

type LogCapture

type LogCapture interface {
	io.Writer
	String() string
	Truncated() bool
}

LogCapture stores build output for history records.

type RegistryAuthProvider

type RegistryAuthProvider interface {
	GetAllRegistryAuthConfigs(ctx context.Context) (map[string]registry.AuthConfig, error)
}

RegistryAuthProvider provides registry auth configs for build and push operations.

type SettingsProvider

type SettingsProvider interface {
	BuildSettings() BuildSettings
}

SettingsProvider provides build settings owned by the host application.

Jump to

Keyboard shortcuts

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