Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
Option is the functional option func.
func WithContainerImage ¶
WithContainerImage sets the image ref.
func WithContainerOpts ¶
func WithContainerOpts(o ...containerd.NewContainerOpts) Option
WithContainerOpts sets the containerd container options.
func WithOCISpecOpts ¶
WithOCISpecOpts sets the OCI spec options.
type Options ¶
type Options struct {
// Env describes the service's environment variables. Elements should be in
// the format <key=<value>
Env []string
// ContainerOpts describes the container options.
ContainerOpts []containerd.NewContainerOpts
// OCISpecOpts describes the OCI spec options.
OCISpecOpts []oci.SpecOpts
// ContainerImage is the container's image.
ContainerImage string
// Type describes the service's restart policy.
Type Type
}
Options is the functional options struct.
func DefaultOptions ¶
func DefaultOptions() *Options
DefaultOptions describes the default options to a runner.
Click to show internal directories.
Click to hide internal directories.