Documentation ¶
Index ¶
- Constants
- type Interface
- type Option
- func WithClass(class string) Option
- func WithDeviceSpecs(deviceSpecs []specs.Device) Option
- func WithEdits(edits specs.ContainerEdits) Option
- func WithFormat(format string) Option
- func WithMergedDeviceOptions(opts ...transform.MergedDeviceOption) Option
- func WithNoSimplify(noSimplify bool) Option
- func WithPermissions(permissions os.FileMode) Option
- func WithRawSpec(raw *specs.Spec) Option
- func WithVendor(vendor string) Option
- func WithVersion(version string) Option
Constants ¶
View Source
const ( // DetectMinimumVersion is a constant that triggers a spec to detect the minimum required version. DetectMinimumVersion = "DETECT_MINIMUM_VERSION" // FormatJSON indicates a JSON output format FormatJSON = "json" // FormatYAML indicates a YAML output format FormatYAML = "yaml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*builder)
Option defines a function that can be used to configure the spec builder.
func WithDeviceSpecs ¶
func WithDeviceSpecs(deviceSpecs []specs.Device) Option
WithDeviceSpecs sets the device specs for the spec builder
func WithEdits ¶
func WithEdits(edits specs.ContainerEdits) Option
WithEdits sets the container edits for the spec builder
func WithMergedDeviceOptions ¶ added in v1.14.0
func WithMergedDeviceOptions(opts ...transform.MergedDeviceOption) Option
WithMergedDeviceOptions sets the options for generating a merged device.
func WithNoSimplify ¶
WithNoSimplify sets whether the spec must be simplified
func WithPermissions ¶ added in v1.13.3
WithPermissions sets the permissions for the generated spec file
func WithRawSpec ¶
func WithRawSpec(raw *specs.Spec) Option
WithRawSpec sets the raw spec for the spec builder
func WithVendor ¶
WithVendor sets the vendor for the spec builder
func WithVersion ¶
WithVersion sets the version for the spec builder
Click to show internal directories.
Click to hide internal directories.