storage

package
v0.0.0-...-c0b5b33 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ResourceType = "storage"

ResourceType encapuslates our standard resource type, for all storage agents.

Variables

This section is empty.

Functions

func Dispatcher

func Dispatcher(dc DispatcherConfig) dispatcher.Table

Dispatcher customizes a dispatcher for the purposes of making a storage dispatcher with a pre-defined storage-compatible API. See DispatcherConfig for more information.

func NewHostPathAgent

func NewHostPathAgent(rootPath string, cc brokerclient.Config) *agent.Agent

NewHostPathAgent creates a new host-path agent. rootPath is the root of all volumes; and the client configuration is used to talk to the broker.

Types

type DispatcherConfig

type DispatcherConfig struct {
	AddVolume    dispatcher.Func
	RemoveVolume dispatcher.Func
	CreateImage  dispatcher.Func
	DeleteImage  dispatcher.Func
	ResizeImage  dispatcher.Func
	MoveImage    dispatcher.Func
}

DispatcherConfig configures the storage Dispatcher() call. It is important for those that edit this struct, that the call must be edited too, for uniformity.

Jump to

Keyboard shortcuts

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