buildkit

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SocketConnectTimeout    = 2 * time.Minute
	SocketConnectRetryDelay = 5 * time.Second
)

Functions

This section is empty.

Types

type BuildSolver

type BuildSolver struct {
	AuthProviderFunc func() []session.Attachable
	LogF             LogFunc
	// contains filtered or unexported fields
}

func NewBuildSolver

func NewBuildSolver(addr string, s3cf models.CacheFetcher, dl datalayer.DataLayer) (*BuildSolver, error)

func (*BuildSolver) Build

func (bks *BuildSolver) Build(ctx context.Context, opts models.BuildOpts) error

Build performs the build defined by opts

func (*BuildSolver) VerifyAddr

func (bks *BuildSolver) VerifyAddr() error

verifyAddr ensures that the buildkit socket is connectable, returning an error if timeout is reached and the socket is still unavailable

type FakeBuilder

type FakeBuilder struct {
	BuildFunc func(ctx context.Context, opts models.BuildOpts) error
}

func (*FakeBuilder) Build

func (fr *FakeBuilder) Build(ctx context.Context, opts models.BuildOpts) error

type LogFunc

type LogFunc func(msg string, args ...interface{})

Jump to

Keyboard shortcuts

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