docker

package
v0.17.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: Apache-2.0 Imports: 51 Imported by: 1

Documentation

Index

Constants

View Source
const DockerCommandEnvVarName = "R8_DOCKER_COMMAND"

Variables

View Source
var ErrMissingDeviceDriver = errors.New("Docker is missing required device driver")

Functions

func DockerCommandFromEnvironment added in v0.14.0

func DockerCommandFromEnvironment() string

func GetHostPortForContainer added in v0.14.11

func GetHostPortForContainer(ctx context.Context, dockerCommand command.Command, containerID string, containerPort int) (int, error)

func NewClient added in v0.14.12

func NewClient(ctx context.Context, opts ...Option) (*apiClient, error)

func ParseSecretsFromHost added in v0.15.0

func ParseSecretsFromHost(workingDir string, secrets []string) (secrets.SecretStore, error)

func Push added in v0.0.8

func Push(ctx context.Context, image string, projectDir string, command command.Command, buildInfo BuildInfo, client *http.Client) error

func Run added in v0.0.8

func Run(ctx context.Context, dockerClient command.Command, options command.RunOptions) error

func RunDaemon added in v0.0.8

func RunDaemon(ctx context.Context, dockerClient command.Command, options command.RunOptions, stderr io.Writer) (string, error)

func RunWithIO added in v0.0.8

func RunWithIO(ctx context.Context, dockerClient command.Command, options command.RunOptions, stdin io.Reader, stdout, stderr io.Writer) error

func SaveLoginToken added in v0.0.8

func SaveLoginToken(ctx context.Context, registryHost string, username string, token string) error

func StandardPush added in v0.14.0

func StandardPush(ctx context.Context, image string, command command.Command) error

Types

type BuildInfo added in v0.14.0

type BuildInfo struct {
	BuildTime time.Duration
	BuildID   string
}

type CredentialHelperInput added in v0.14.0

type CredentialHelperInput struct {
	Username  string
	Secret    string
	ServerURL string
}

type Option added in v0.14.12

type Option func(*clientOptions)

func WithAuthConfig added in v0.14.12

func WithAuthConfig(authConfig registry.AuthConfig) Option

func WithHost added in v0.15.10

func WithHost(host string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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