build

package
v0.2.28 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoBuild

func DoBuild(dir string, buildArgs Args) error

Types

type Args added in v0.1.0

type Args struct {
	args.Globals
	Dockerfile string   `name:"file" short:"f" help:"name of the Dockerfile to use." default:"Dockerfile"`
	BuildArgs  []string `` /* 158-byte string literal not displayed */
	NoLogin    bool     `help:"disable login to docker registry" default:"false" `
	NoPull     bool     `help:"disable pulling latest from docker registry" default:"false"`
	Platform   string   `help:"specify target platform to build" default:""`
}

type MockSession added in v0.2.1

type MockSession struct {
}

func (*MockSession) Allow added in v0.2.1

func (m *MockSession) Allow(a session.Attachable)

func (*MockSession) Close added in v0.2.1

func (m *MockSession) Close() error

func (*MockSession) ID added in v0.2.1

func (m *MockSession) ID() string

func (*MockSession) Run added in v0.2.1

func (m *MockSession) Run(ctx context.Context, dialer session.Dialer) error

type Session added in v0.2.1

type Session interface {
	Allow(a session.Attachable)
	ID() string
	Run(ctx context.Context, dialer session.Dialer) error
	Close() error
}

Jump to

Keyboard shortcuts

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