Documentation
¶
Index ¶
- Constants
- type ContainerVolumeUsage
- type Docker
- func (d *Docker) Close() error
- func (d *Docker) GetContainersByVolume(ctx context.Context, volumeName string) ([]ContainerVolumeUsage, error)
- func (d *Docker) GetVolumeByName(ctx context.Context, name string) (*VolumeInfo, error)
- func (d *Docker) Kind() EngineKind
- func (d *Docker) ListVolumes(ctx context.Context) ([]VolumeInfo, error)
- func (d *Docker) Pause(ctx context.Context, containerID string) error
- func (d *Docker) Unpause(ctx context.Context, containerID string) error
- func (d *Docker) WaitForAllPaused(ctx context.Context, containers []ContainerVolumeUsage) error
- func (d *Docker) WaitForPaused(ctx context.Context, containerID string) error
- type Dump
- type Engine
- type EngineKind
- type MariaDBDumpConfig
- type S3
- type S3Config
- type VolumeInfo
Constants ¶
View Source
const ( EngineKindS3 = "s3" EngineKindDocker = "docker" EngineKindDump = "dump" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerVolumeUsage ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func (*Docker) GetContainersByVolume ¶
func (*Docker) GetVolumeByName ¶
func (*Docker) Kind ¶
func (d *Docker) Kind() EngineKind
func (*Docker) ListVolumes ¶
func (d *Docker) ListVolumes(ctx context.Context) ([]VolumeInfo, error)
func (*Docker) WaitForAllPaused ¶
func (d *Docker) WaitForAllPaused(ctx context.Context, containers []ContainerVolumeUsage) error
type Dump ¶
type Dump struct {
// contains filtered or unexported fields
}
func (*Dump) DumpMariaDB ¶
func (*Dump) Kind ¶
func (d *Dump) Kind() EngineKind
type Engine ¶
type Engine interface {
Kind() EngineKind
}
type EngineKind ¶
type EngineKind string
func (EngineKind) IsStorageEngine ¶
func (k EngineKind) IsStorageEngine() bool
func (EngineKind) String ¶
func (k EngineKind) String() string
type MariaDBDumpConfig ¶
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
func (*S3) Kind ¶
func (s *S3) Kind() EngineKind
type S3Config ¶
type S3Config struct {
Bucket string `toml:"bucket" yaml:"bucket"`
Region string `toml:"region" yaml:"region"`
AccessKey string `toml:"access_key" yaml:"access_key"`
SecretKey string `toml:"secret_key" yaml:"secret_key"`
Endpoint string `toml:"endpoint" yaml:"endpoint"`
ForcePathStyle bool `toml:"force-path" yaml:"force-path"`
HostnameImmutable bool `toml:"hostname-immutable" yaml:"hostname-immutable"`
}
type VolumeInfo ¶
type VolumeInfo struct {
Name string
MountPoint string
Driver string
Containers []ContainerVolumeUsage
}
Click to show internal directories.
Click to hide internal directories.