Documentation
¶
Index ¶
- func CleanupRollbackTargetVolumes(ctx context.Context, dockerClient *client.Client, volumes []JournalVolume) error
- func EnsureTargetsReadyForCleanup(ctx context.Context, dockerClient *client.Client, volumes []JournalVolume) error
- func NewSourceCleanupError(sourceVolume string, err error) error
- func NewTargetPreservedDuringRollbackError(vol JournalVolume, err error) error
- func OnlyPreservedTargetErrors(err error) bool
- func RemoveSourceVolumes(ctx context.Context, dockerClient *client.Client, volumes []JournalVolume) error
- func RollbackVolume(ctx context.Context, dockerClient *client.Client, vol JournalVolume) error
- func RollbackVolumes(ctx context.Context, dockerClient *client.Client, volumes []JournalVolume) error
- func VolumeExists(ctx context.Context, dockerClient *client.Client, name string) (bool, error)
- type Committer
- type JournalSource
- type JournalVolume
- type Migration
- type ProjectVolumeRenameConflictError
- type ProjectVolumeRenameInUseError
- type ProjectVolumeRenameInsufficientSpaceError
- type SourceCleanupError
- type TargetMissingWithSourceError
- type TargetPreservedDuringRollbackError
- type VolumesExternallyRemovedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSourceCleanupError ¶
func NewTargetPreservedDuringRollbackError ¶
func NewTargetPreservedDuringRollbackError(vol JournalVolume, err error) error
func RemoveSourceVolumes ¶
func RollbackVolume ¶
func RollbackVolumes ¶
Types ¶
type JournalSource ¶
type JournalSource interface {
JournalVolumes() []JournalVolume
}
type JournalVolume ¶
type ProjectVolumeRenameConflictError ¶
type ProjectVolumeRenameConflictError struct {
VolumeName string
}
func (*ProjectVolumeRenameConflictError) Error ¶
func (e *ProjectVolumeRenameConflictError) Error() string
type ProjectVolumeRenameInUseError ¶
func (*ProjectVolumeRenameInUseError) Error ¶
func (e *ProjectVolumeRenameInUseError) Error() string
type ProjectVolumeRenameInsufficientSpaceError ¶
type ProjectVolumeRenameInsufficientSpaceError struct {
SourceVolume string
TargetVolume string
Detail string
}
func (*ProjectVolumeRenameInsufficientSpaceError) Error ¶
func (e *ProjectVolumeRenameInsufficientSpaceError) Error() string
type SourceCleanupError ¶
func (*SourceCleanupError) Error ¶
func (e *SourceCleanupError) Error() string
func (*SourceCleanupError) Unwrap ¶
func (e *SourceCleanupError) Unwrap() error
type TargetMissingWithSourceError ¶
func (*TargetMissingWithSourceError) Error ¶
func (e *TargetMissingWithSourceError) Error() string
type TargetPreservedDuringRollbackError ¶
type TargetPreservedDuringRollbackError struct {
SourceVolume string
TargetVolume string
Err error
}
func (*TargetPreservedDuringRollbackError) Error ¶
func (e *TargetPreservedDuringRollbackError) Error() string
func (*TargetPreservedDuringRollbackError) Unwrap ¶
func (e *TargetPreservedDuringRollbackError) Unwrap() error
type VolumesExternallyRemovedError ¶
type VolumesExternallyRemovedError struct {
Volumes []JournalVolume
}
func (*VolumesExternallyRemovedError) Error ¶
func (e *VolumesExternallyRemovedError) Error() string
Click to show internal directories.
Click to hide internal directories.