client

package
v0.0.0-...-0553404 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Solve(ctx context.Context, req SolveRequest, exporterAttr map[string][]byte, final bool) (Reference, error)
	ResolveImageConfig(ctx context.Context, ref string) (digest.Digest, []byte, error)
	Opts() map[string]string
	SessionID() string
}

TODO: make this take same options as LLBBridge. Add Return()

type Reference

type Reference interface {
	ReadFile(ctx context.Context, fp string) ([]byte, error)
}

type SolveRequest

type SolveRequest struct {
	Definition      *pb.Definition
	Frontend        string
	FrontendOpt     map[string]string
	ImportCacheRefs []string
}

SolveRequest is same as frontend.SolveRequest but avoiding dependency

Jump to

Keyboard shortcuts

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