Help us shape the future of Go! Take the 2026 Go Developer Survey

docker

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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

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) Activate

func (p *Plugin) Activate() error

func (*Plugin) Capabilities

func (p *Plugin) Capabilities() *volume.CapabilitiesResponse

func (*Plugin) Create

func (p *Plugin) Create(request *volume.CreateRequest) error

func (*Plugin) Deactivate

func (p *Plugin) Deactivate() error

func (*Plugin) Get

func (p *Plugin) Get(request *volume.GetRequest) (*volume.GetResponse, error)

func (*Plugin) GetName

func (p *Plugin) GetName() string

func (*Plugin) List

func (p *Plugin) List() (*volume.ListResponse, 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)

func (*Plugin) Remove

func (p *Plugin) Remove(request *volume.RemoveRequest) error

func (*Plugin) Unmount

func (p *Plugin) Unmount(request *volume.UnmountRequest) error

func (*Plugin) Version

func (p *Plugin) Version() string

type Snapshot

type Snapshot struct {
	Name    string `json:"name"`
	Created string `json:"dateCreated"` // The UTC time that the snapshot was created, in RFC3339 format
}

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"`
}

Jump to

Keyboard shortcuts

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