Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DockerClient ¶
type DockerClient interface {
ContainerCommit(ctx context.Context, container string, options types.ContainerCommitOptions) (types.IDResponse, error)
ImagePush(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error)
}
DockerClient is a subset of docker CommonAPIClient, to make the worker interface simpler
type SnapshotOptions ¶
type SnapshotOptions struct {
// docker registry auth header, from imagePushSecret
// see: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#inspecting-the-secret-regcred
Container string `json:"container,omitempty"`
Image string `json:"image,omitempty"` // image full name: host/path/image:tag
Author string `json:"author,omitempty"`
Comment string `json:"comment,omitempty"`
}
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) TakeSnapshot ¶
func (c *Worker) TakeSnapshot(ctx context.Context, opt *SnapshotOptions) error
Click to show internal directories.
Click to hide internal directories.