Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Preparer ¶
type Preparer struct { // name of the volume Name string `hcl:"name" required:"true" nonempty:"true"` // volume driver. default: local Driver string `hcl:"driver" default:"local"` // labels to set on the volume Labels map[string]string `hcl:"labels"` // driver specific options Options map[string]string `hcl:"options"` // indicates whether the volume should exist. State State `hcl:"state" valid_values:"present,absent"` // indicates whether or not the volume will be recreated if the state is not // what is expected. By default, the module will only check to see if the // volume exists. Specified as a boolean value Force bool `hcl:"force"` }
Preparer for docker volumes
Volume is responsible for managing Docker volumes. It assumes that there is already a Docker daemon running on the system. *Note: docker resources are not currently supported on Solaris.*
type Volume ¶
type Volume struct { // volume name Name string `export:"name"` // volume labels Labels map[string]string `export:"labels"` // driver the volume is configured to use Driver string `export:"driver"` // driver-specific options Options map[string]string `export:"options"` // volume state State State `export:"state"` // reflects whether or not the force option was configured Force bool `export:"force"` // contains filtered or unexported fields }
Volume is responsible for managing docker volumes
func (*Volume) SetClient ¶
func (v *Volume) SetClient(client docker.VolumeClient)
SetClient injects a docker api client
Click to show internal directories.
Click to hide internal directories.