Documentation ¶
Index ¶
- func CreateConfigFile(ctx context.Context, configDirPath string, attr *common.ServiceAttr, ...) error
- type FireCampVolumeDriver
- func (d *FireCampVolumeDriver) Capabilities(volume.Request) volume.Response
- func (d *FireCampVolumeDriver) Create(r volume.Request) volume.Response
- func (d *FireCampVolumeDriver) Get(r volume.Request) volume.Response
- func (d *FireCampVolumeDriver) List(r volume.Request) volume.Response
- func (d *FireCampVolumeDriver) Mount(r volume.MountRequest) volume.Response
- func (d *FireCampVolumeDriver) Path(r volume.Request) volume.Response
- func (d *FireCampVolumeDriver) Remove(r volume.Request) volume.Response
- func (d *FireCampVolumeDriver) Unmount(r volume.UnmountRequest) volume.Response
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 ¶
func (d *FireCampVolumeDriver) Capabilities(volume.Request) volume.Response
Capabilities is always local
func (*FireCampVolumeDriver) Create ¶
func (d *FireCampVolumeDriver) Create(r volume.Request) volume.Response
Create checks if volume is mounted or service exists in DB
func (*FireCampVolumeDriver) Get ¶
func (d *FireCampVolumeDriver) Get(r volume.Request) volume.Response
Get returns the mountPath if volume is mounted
func (*FireCampVolumeDriver) List ¶
func (d *FireCampVolumeDriver) List(r volume.Request) volume.Response
List lists all mounted volumes
func (*FireCampVolumeDriver) Mount ¶
func (d *FireCampVolumeDriver) Mount(r volume.MountRequest) volume.Response
Mount mounts the volume to the host.
func (*FireCampVolumeDriver) Path ¶
func (d *FireCampVolumeDriver) Path(r volume.Request) volume.Response
Path returns the volume mountPath
func (*FireCampVolumeDriver) Remove ¶
func (d *FireCampVolumeDriver) Remove(r volume.Request) volume.Response
Remove simply tries to remove mounted volume
func (*FireCampVolumeDriver) Unmount ¶
func (d *FireCampVolumeDriver) Unmount(r volume.UnmountRequest) volume.Response
Unmount the volume.
Click to show internal directories.
Click to hide internal directories.