Documentation
¶
Overview ¶
package create provides options for the volume create.
Index ¶
- type SetVolumeCreateOption
- func WithClusterVolumeSpec(setters ...clusterspec.SetClusterVolumeSpecOption) SetVolumeCreateOption
- func WithDriver(driver string) SetVolumeCreateOption
- func WithDriverOpts(key string, value string) SetVolumeCreateOption
- func WithLabels(key string, value string) SetVolumeCreateOption
- func WithName(name string) SetVolumeCreateOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SetVolumeCreateOption ¶
type SetVolumeCreateOption func(*volume.CreateOptions) error
SetVolumeCreateOption is a function that sets a parameter for the volume create.
func WithClusterVolumeSpec ¶
func WithClusterVolumeSpec(setters ...clusterspec.SetClusterVolumeSpecOption) SetVolumeCreateOption
WithClusterVolumeSpec sets the cluster volume spec.
AccessMode defines how the volume is used by tasks.
func WithDriver ¶
func WithDriver(driver string) SetVolumeCreateOption
WithDriver sets the driver of the volume.
func WithDriverOpts ¶
func WithDriverOpts(key string, value string) SetVolumeCreateOption
WithDriverOpts appends the driver options of the volume.
These options are passed directly to the driver and are driver specific.
func WithLabels ¶
func WithLabels(key string, value string) SetVolumeCreateOption
WithLabels appends the labels of the volume.
User-defined key/value metadata.
func WithName ¶
func WithName(name string) SetVolumeCreateOption
WithName sets the name of the volume.
The new volume's name. If not specified, Docker generates a name.
Directories
¶
| Path | Synopsis |
|---|---|
|
package clusterspec provides options for the volume cluster volume spec.
|
package clusterspec provides options for the volume cluster volume spec. |
|
accessibility
package accessibility provides options for the volume cluster volume spec accessibility requirements.
|
package accessibility provides options for the volume cluster volume spec accessibility requirements. |
|
accessmode
package accessmode provides options for the volume cluster volume spec access mode.
|
package accessmode provides options for the volume cluster volume spec access mode. |
Click to show internal directories.
Click to hide internal directories.