Documentation ¶
Index ¶
- Constants
- func ArrayFile(input []string) []byte
- func ExtractFileFromState(ctx context.Context, c gwclient.Client, st *llb.State, path string) ([]byte, error)
- func NewClient(ctx context.Context, bkOpts Opts) (*client.Client, error)
- func Sh(cmd string) llb.RunOption
- func ValidateClient(ctx context.Context, c *client.Client) error
- func WithArrayFile(s *llb.State, path string, contents []string) llb.State
- func WithFileBytes(s *llb.State, path string, contents []byte) llb.State
- func WithFileString(s *llb.State, path, contents string) llb.State
- type Config
- type Opts
Constants ¶
View Source
const (
DefaultAddr = "unix:///run/buildkit/buildkitd.sock"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractFileFromState ¶ added in v0.6.0
func ExtractFileFromState(ctx context.Context, c gwclient.Client, st *llb.State, path string) ([]byte, error)
Extracts the bytes of the file denoted by `path` from the state `st`.
func NewClient ¶ added in v0.4.0
NewClient returns a new buildkit client with the given addr. If addr is empty it will first try to connect to docker's buildkit instance and then fallback to DefaultAddr.
func ValidateClient ¶ added in v0.4.0
ValidateClient checks to ensure the connected buildkit instance supports the features required by copa.
func WithArrayFile ¶ added in v0.6.0
func WithFileBytes ¶ added in v0.6.0
Types ¶
Click to show internal directories.
Click to hide internal directories.