volumes

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(opts CreateOptions) (string, error)

Create creates a new volume.

func Inspect

func Inspect(id string) (string, error)

Inspect inspects the specified volume.

func List

func List() ([]*entities.VolumeListReport, error)

List returns list of volumes.

func Prune

func Prune() ([]string, error)

Prune removes all unused volumes.

func Remove

func Remove(name string) error

Remove removes the volulme.

func VolumeDest added in v0.2.0

func VolumeDest(name string) (string, error)

VolumeDest returns a volume destination (mountpoint) path.

Types

type CreateOptions

type CreateOptions struct {
	Name          string
	Labels        map[string]string
	Driver        string
	DriverOptions map[string]string
}

CreateOptions implements new volume create options.

Jump to

Keyboard shortcuts

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