Documentation
¶
Overview ¶
Package builder provides an implementation of container.Builder and container.Container leveraging containerd.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImagePullPolicy ¶
type ImagePullPolicy int
ImagePullPolicy is the policy defining how to pull an image.
const ( // ImagePullPolicyAlways specifies that the image must always be pulled from remote. ImagePullPolicyAlways ImagePullPolicy = iota // ImagePullPolicyNever specifies that the image must always be searched from the locally available images. ImagePullPolicyNever // ImagePullPolicyIfNotPresent specifies that the image must be pull from remote only if it not locally available. ImagePullPolicyIfNotPresent )
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option for configuring the container builder.
func WithBaseImageName ¶
WithBaseImageName allows to specify the name of the base image used to create the container.
func WithBaseImagePullPolicy ¶
func WithBaseImagePullPolicy(policy ImagePullPolicy) Option
WithBaseImagePullPolicy allows to specify the pull policy for obtaining the base image.
func WithUnixSocketURL ¶
WithUnixSocketURL allows to specify the unix socket URL of the local container runtime server. E.g.: unix:///run/docker.sock.
Click to show internal directories.
Click to hide internal directories.