Documentation ¶
Index ¶
- Constants
- type DaemonConfig
- type Plugin
- func (p *Plugin) Activate() error
- func (p *Plugin) Capabilities() *volume.CapabilitiesResponse
- func (p *Plugin) Create(request *volume.CreateRequest) error
- func (p *Plugin) Deactivate() error
- func (p *Plugin) Get(request *volume.GetRequest) (*volume.GetResponse, error)
- func (p *Plugin) GetName() string
- func (p *Plugin) List() (*volume.ListResponse, error)
- func (p *Plugin) Mount(request *volume.MountRequest) (*volume.MountResponse, error)
- func (p *Plugin) Path(request *volume.PathRequest) (*volume.PathResponse, error)
- func (p *Plugin) Remove(request *volume.RemoveRequest) error
- func (p *Plugin) Unmount(request *volume.UnmountRequest) error
- func (p *Plugin) Version() string
- type Snapshot
- type Version
Constants ¶
View Source
const ( DaemonConfigFile = "/etc/docker/daemon.json" DefaultDaemonDataRoot = "/var/lib/docker" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DaemonConfig ¶
type DaemonConfig struct { // See also: // https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file // https://docs.docker.com/config/daemon/#configure-the-docker-daemon DataRoot string `json:"data-root"` }
DaemonConfig holds only our fields of interest from /etc/docker/daemon.json
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements the frontendcommon Plugin interface
func NewPlugin ¶
func NewPlugin(driverName, driverPort string, orchestrator core.Orchestrator) (*Plugin, error)
func (*Plugin) Capabilities ¶
func (p *Plugin) Capabilities() *volume.CapabilitiesResponse
func (*Plugin) Deactivate ¶
func (*Plugin) Get ¶
func (p *Plugin) Get(request *volume.GetRequest) (*volume.GetResponse, error)
func (*Plugin) Mount ¶
func (p *Plugin) Mount(request *volume.MountRequest) (*volume.MountResponse, error)
func (*Plugin) Path ¶
func (p *Plugin) Path(request *volume.PathRequest) (*volume.PathResponse, error)
type Version ¶
type Version struct { Client struct { Version string `json:"Version"` APIVersion string `json:"ApiVersion"` DefaultAPIVersion string `json:"DefaultAPIVersion"` GitCommit string `json:"GitCommit"` GoVersion string `json:"GoVersion"` Os string `json:"Os"` Arch string `json:"Arch"` BuildTime string `json:"BuildTime"` } `json:"Client"` Server struct { Version string `json:"Version"` APIVersion string `json:"ApiVersion"` MinAPIVersion string `json:"MinAPIVersion"` GitCommit string `json:"GitCommit"` GoVersion string `json:"GoVersion"` Os string `json:"Os"` Arch string `json:"Arch"` KernelVersion string `json:"KernelVersion"` BuildTime string `json:"BuildTime"` } `json:"Server"` }
Click to show internal directories.
Click to hide internal directories.