build

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProgressStyleAuto  = ProgressStyle("auto")
	ProgressStyleNone  = ProgressStyle("none")
	ProgressStylePlain = ProgressStyle("plain")
	ProgressStyleTTY   = ProgressStyle("tty")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	Build(ctx context.Context, contextDir string, opts *Opts) (string, error)
	Close() error
}

func New

func New(ctx context.Context, address string) (Client, error)

type Opts

type Opts struct {
	CacheFromImages []string
	Args            map[string]string
	Label           map[string]string
	Target          string
	Tag             []string
	NoCache         bool
	AddHosts        []string
	Secrets         []string
	SSH             []string
	Dockerfile      string
	Progress        ProgressStyle
	Output          string
	Pull            bool
}

func (*Opts) CacheImports

func (b *Opts) CacheImports() (result []client.CacheOptionsEntry)

func (*Opts) Exports

func (b *Opts) Exports(tag string) []client.ExportEntry

func (*Opts) Frontend

func (b *Opts) Frontend() string

func (*Opts) FrontendAttrs

func (b *Opts) FrontendAttrs() map[string]string

func (*Opts) LocalDirs

func (b *Opts) LocalDirs(contextDir string) map[string]string

func (*Opts) Session

func (b *Opts) Session() (result []session.Attachable, err error)

type ProgressStyle

type ProgressStyle string

Jump to

Keyboard shortcuts

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