Documentation ¶
Index ¶
- type Store
- func (s *Store) CreateDriver(name string) (volume.Driver, error)
- func (s *Store) GetAllDrivers() ([]volume.Driver, error)
- func (s *Store) GetDriver(name string) (volume.Driver, error)
- func (s *Store) GetDriverList() []string
- func (s *Store) Register(d volume.Driver, name string) bool
- func (s *Store) ReleaseDriver(name string) (volume.Driver, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an in-memory store for volume drivers
func NewStore ¶
func NewStore(pg getter.PluginGetter) *Store
NewStore creates a new volume driver store
func (*Store) CreateDriver ¶
CreateDriver returns a volume driver by its name and increments RefCount. If the driver is empty, it looks for the local driver.
func (*Store) GetAllDrivers ¶
GetAllDrivers lists all the registered drivers
func (*Store) GetDriver ¶
GetDriver returns a volume driver by its name. If the driver is empty, it looks for the local driver.
func (*Store) GetDriverList ¶
GetDriverList returns list of volume drivers registered. If no driver is registered, empty string list will be returned.
Click to show internal directories.
Click to hide internal directories.