docker: github.com/docker/docker/volume/drivers Index | Files

package drivers

import "github.com/docker/docker/volume/drivers"

Index

Package Files

adapter.go extpoint.go proxy.go

type Store Uses

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

Store is an in-memory store for volume drivers

func NewStore Uses

func NewStore(pg getter.PluginGetter) *Store

NewStore creates a new volume driver store

func (*Store) CreateDriver Uses

func (s *Store) CreateDriver(name string) (volume.Driver, error)

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 Uses

func (s *Store) GetAllDrivers() ([]volume.Driver, error)

GetAllDrivers lists all the registered drivers

func (*Store) GetDriver Uses

func (s *Store) GetDriver(name string) (volume.Driver, error)

GetDriver returns a volume driver by its name. If the driver is empty, it looks for the local driver.

func (*Store) GetDriverList Uses

func (s *Store) GetDriverList() []string

GetDriverList returns list of volume drivers registered. If no driver is registered, empty string list will be returned.

func (*Store) Register Uses

func (s *Store) Register(d volume.Driver, name string) bool

Register associates the given driver to the given name, checking if the name is already associated

func (*Store) ReleaseDriver Uses

func (s *Store) ReleaseDriver(name string) (volume.Driver, error)

ReleaseDriver returns a volume driver by its name and decrements RefCount.. If the driver is empty, it looks for the local driver.

Package drivers imports 13 packages (graph) and is imported by 1003 packages. Updated 2020-10-17. Refresh now. Tools for package owners.