volume

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VolumeConfig

type VolumeConfig struct {
	Options *volume.CreateOptions
}

Volume represents a Docker volume along with its creation options.

func NewConfig

func NewConfig(name string) *VolumeConfig

NewVolume creates a new Volume instance with the specified name. The Volume instance contains configuration options for creating a Docker volume.

func (*VolumeConfig) SetOptions

func (v *VolumeConfig) SetOptions(setVOFns ...volumeoptions.SetVolumeOptFn)

SetOptions configures options for the Docker volume. Use this method to set various volume options using functions from the volumeopt package.

func (*VolumeConfig) String

func (v *VolumeConfig) String() string

returns the volume name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL