dockervolume

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigFile

func CreateConfigFile(ctx context.Context, configDirPath string, attr *common.ServiceAttr, member *common.ServiceMember, dbIns db.DB) error

CreateConfigFile creates the config files under configDirPath

Types

type FireCampVolumeDriver

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

FireCampVolumeDriver is the docker volume plugin.

func NewVolumeDriver

func NewVolumeDriver(dbIns db.DB, dnsIns dns.DNS, serverIns server.Server, serverInfo server.Info,
	containersvcIns containersvc.ContainerSvc, containerInfo containersvc.Info) *FireCampVolumeDriver

NewVolumeDriver creates a new FireCampVolumeDriver instance

func (*FireCampVolumeDriver) Capabilities

Capabilities is always local

func (*FireCampVolumeDriver) Create

Create checks if volume is mounted or service exists in DB

func (*FireCampVolumeDriver) Get

Get returns the mountPath if volume is mounted

func (*FireCampVolumeDriver) List

List lists all mounted volumes

func (*FireCampVolumeDriver) Mount

Mount mounts the volume to the host.

func (*FireCampVolumeDriver) Path

Path returns the volume mountPath

func (*FireCampVolumeDriver) Remove

Remove simply tries to remove mounted volume

func (*FireCampVolumeDriver) Unmount

Unmount the volume.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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