Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheOptionsEntry ¶ added in v0.4.0
type Client ¶
type Client interface { Solve(ctx context.Context, req SolveRequest) (*Result, error) ResolveImageConfig(ctx context.Context, ref string, opt llb.ResolveImageConfigOpt) (digest.Digest, []byte, error) BuildOpts() BuildOpts Inputs(ctx context.Context) (map[string]llb.State, error) NewContainer(ctx context.Context, req NewContainerRequest) (Container, error) }
type Container ¶ added in v0.8.0
type Container interface { Start(context.Context, StartRequest) (ContainerProcess, error) Release(context.Context) error }
Container is used to start new processes inside a container and release the container resources when done.
type ContainerProcess ¶ added in v0.8.0
ContainerProcess represents a process within a container.
type Mount ¶ added in v0.8.0
type Mount struct { Selector string Dest string ResultID string Ref Reference Readonly bool MountType pb.MountType CacheOpt *pb.CacheOpt SecretOpt *pb.SecretOpt SSHOpt *pb.SSHOpt }
Mount allows clients to specify a filesystem mount. A Reference to a previously solved Result is required.
type NewContainerRequest ¶ added in v0.8.0
type NewContainerRequest struct { Mounts []Mount NetMode pb.NetMode Platform *pb.Platform Constraints *pb.WorkerConstraints }
NewContainerRequest encapsulates the requirements for a client to define a new container, without defining the initial process.
type ReadDirRequest ¶
type ReadRequest ¶
type Result ¶
type SolveRequest ¶
type SolveRequest struct { Evaluate bool Definition *pb.Definition Frontend string FrontendOpt map[string]string FrontendInputs map[string]*pb.Definition CacheImports []CacheOptionsEntry }
SolveRequest is same as frontend.SolveRequest but avoiding dependency
type StartRequest ¶ added in v0.8.0
type StartRequest struct { Args []string Env []string User string Cwd string Tty bool Stdin io.ReadCloser Stdout, Stderr io.WriteCloser SecurityMode pb.SecurityMode }
StartRequest encapsulates the arguments to define a process within a container.
type StatRequest ¶
type StatRequest struct {
Path string
}
Click to show internal directories.
Click to hide internal directories.