package
0.0.0-20250130204033-e82d90384e5b
Repository: https://github.com/laurentgoderre/moby.git
Documentation: pkg.go.dev

# Functions

WithCreateLabel creates a CreateOption which adds a label with the given key/value pair.
WithCreateLabels creates a CreateOption which sets the labels to the passed in value.
WithCreateOptions creates a CreateOption which sets the options passed to the volume driver when creating a volume to the options passed in.
WithCreateReference creates a CreateOption which sets a reference to use when creating a volume.
WithGetDriver provides the driver to get the volume from If no driver is provided to `Get`, first the available metadata is checked to see which driver it belongs to, if that is not available all drivers are probed to find the volume.
WithGetReference indicates to `Get` to increment the reference count for the retrieved volume with the provided reference ID.
WithGetResolveStatus indicates to `Get` to also fetch the volume status.
WithPurgeOnError is an option passed to `Remove` which will purge all cached data about a volume even if there was an error while attempting to remove the volume.

# Structs

CreateConfig is the set of config options that can be set when creating a volume.
GetConfig is used with `GetOption` to set options for the volumes service's `Get` implementation.
RemoveConfig is used by `RemoveOption` to store config options for remove.

# Type aliases

CreateOption is used to pass options in when creating a volume.
GetOption is passed to the service `Get` add extra details on the get request.
RemoveOption is used to pass options to the volumes service `Remove` implementation.