volume

package
v0.2.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostPathVolumeType = Volume("hostPath")
	NamedVolumeType    = Volume("named")
	Ephemeral          = Volume("ephemeral")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New(baseDir string) (*Manager, error)

func (*Manager) CreateVolume

func (m *Manager) CreateVolume(ctx context.Context, name string) (*client.Volume, error)

func (*Manager) GetVolume

func (m *Manager) GetVolume(name string) (*client.Volume, error)

func (*Manager) ListVolumes

func (m *Manager) ListVolumes(ctx context.Context) (result []client.Volume, err error)

func (*Manager) RemoveVolume

func (m *Manager) RemoveVolume(ctx context.Context, name string, force bool) error

func (*Manager) Resolve

func (m *Manager) Resolve(id string) (string, error)

func (*Manager) Setup

func (m *Manager) Setup(ctx context.Context, mount *v1alpha2.Mount) (*v1alpha2.Mount, error)

type Volume

type Volume string

func PathToType

func PathToType(name string) (string, Volume)

Jump to

Keyboard shortcuts

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