local

package
v0.0.0-...-ba854f2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

type Local struct {
	DataPath string
}

Local represents local volume driver.

func (*Local) Attach

func (p *Local) Attach(ctx context.Context, v *types.Volume) error

Attach a local volume.

func (*Local) Config

func (p *Local) Config(ctx context.Context, cfg map[string]interface{}) error

Config is used to pass the daemon volume configure for local driver.

func (*Local) Create

func (p *Local) Create(ctx context.Context, id types.VolumeContext) (*types.Volume, error)

Create a local volume.

func (*Local) Detach

func (p *Local) Detach(ctx context.Context, v *types.Volume) error

Detach a local volume.

func (*Local) Name

func (p *Local) Name(ctx context.Context) string

Name returns local volume driver's name.

func (*Local) Options

func (p *Local) Options() map[string]types.Option

Options returns local volume's options.

func (*Local) Path

func (p *Local) Path(ctx context.Context, v *types.Volume) (string, error)

Path returns local volume's path.

func (*Local) Remove

func (p *Local) Remove(ctx context.Context, v *types.Volume) error

Remove a local volume.

func (*Local) StoreMode

func (p *Local) StoreMode(ctx context.Context) driver.VolumeStoreMode

StoreMode returns local volume driver's store mode.

Jump to

Keyboard shortcuts

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