commands

package
v0.0.0-...-08e834d Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInfo

func GetInfo(ctx context.Context, node *builder.Node) (*types.Info, error)

func GetWorkers

func GetWorkers(ctx context.Context, node *builder.Node, filter []string) ([]*types.WorkerInfo, error)

func Helper

func Helper(u *url.URL) (*connhelper.ConnectionHelper, error)

Helper returns helper for connecting to a Docker container. Requires BuildKit v0.5.0 or later in the container.

func PrintInfo

func PrintInfo(ctx context.Context, node *builder.Node, writer io.Writer, format string) error

func PrintWorkers

func PrintWorkers(ctx context.Context, node *builder.Node, filter []string,
	writer io.Writer, verbose bool, format string,
) error

func Run

func Run(ctx context.Context, buildOp *builder.Operation) (map[string]string, []*client.SolveStatus, error)

Types

type Spec

type Spec struct {
	Context   string
	Container string
}

Spec

func SpecFromURL

func SpecFromURL(u *url.URL) (*Spec, error)

SpecFromURL creates Spec from URL. URL is like docker-container://<container>?context=<context> Only <container> part is mandatory.

Jump to

Keyboard shortcuts

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