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.
Click to show internal directories.
Click to hide internal directories.