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

docker

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DockerPluginName = "sand"
	DockerPluginFile = "sand.json"
	DockerSpecDir    = "/etc/docker/plugins"
)

Variables

This section is empty.

Functions

func NewRepository

func NewRepository(c *config.Config, s store.Store) repository

func WritePluginSpecsOnDisk

func WritePluginSpecsOnDisk(ctx context.Context, c *config.Config) error

Types

type DockerPlugin

type DockerPlugin struct {
	DockerNetworkPlugin *dockerNetworkPlugin
	DockerIPAMPlugin    *dockerIPAMPlugin
}

type DockerPluginEndpoint

type DockerPluginEndpoint struct {
	DockerPluginNetwork
	DockerEndpointID string
	SandEndpointID   string
}

func (DockerPluginEndpoint) StorageKey

func (n DockerPluginEndpoint) StorageKey() string

type DockerPluginNetwork

type DockerPluginNetwork struct {
	DockerNetworkID string
	SandNetworkID   string
}

func (DockerPluginNetwork) StorageKey

func (n DockerPluginNetwork) StorageKey() string

type PluginSpec

type PluginSpec struct {
	Name      string
	Addr      string
	TLSConfig struct {
		InsecureSkipVerify bool
		CAFile             string
		CertFile           string
		KeyFile            string
	}
}

type Repository

type Repository interface {
	SaveNetwork(context.Context, DockerPluginNetwork) error
	SaveEndpoint(context.Context, DockerPluginEndpoint) error
	GetNetworkByDockerID(context.Context, string) (DockerPluginNetwork, error)
	GetEndpointByDockerID(context.Context, string) (DockerPluginEndpoint, error)
	DeleteNetwork(context.Context, DockerPluginNetwork) error
	DeleteEndpoint(context.Context, DockerPluginEndpoint) error
}

Jump to

Keyboard shortcuts

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