container

package
v0.0.0-...-6bdf688 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlreadyLocked

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

func (AlreadyLocked) Error

func (a AlreadyLocked) Error() string

type Client

type Client interface {
	AllRelated() (map[string][]DockerContainer, error)
	Related(volumeName string) ([]DockerContainer, error)
	SwitchSymlinks(volumeName, toFilesystemIdPath string) error
	Start(volumeName string) error
	Stop(volumeName string) error
}

type DockerClient

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

func New

func New(options *Options) (*DockerClient, error)

func (*DockerClient) AllRelated

func (d *DockerClient) AllRelated() (map[string][]DockerContainer, error)

AllRelated returns every running container that is using any dotmesh filesystem, as a map from filesystem ids to lists of such containers

func (*DockerClient) Related

func (d *DockerClient) Related(volumeName string) ([]DockerContainer, error)

func (*DockerClient) Start

func (d *DockerClient) Start(volumeName string) error

func (*DockerClient) Stop

func (d *DockerClient) Stop(volumeName string) error
func (d *DockerClient) SwitchSymlinks(volumeName, toFilesystemIdPath string) error

type DockerContainer

type DockerContainer struct {
	Name string
	Id   string
}

type NotLocked

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

func (NotLocked) Error

func (n NotLocked) Error() string

type Options

type Options struct {
	ContainerMountPrefix  string
	ContainerMountDirLock *sync.Mutex
}

Jump to

Keyboard shortcuts

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