Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter interface {
Inventory(context.Context) (Inventory, error)
Preflight(context.Context, Request) (Assessment, error)
Backup(context.Context, Request) (BackupRef, error)
Execute(context.Context, Request, BackupRef) error
Verify(context.Context, Request) error
Recover(context.Context, Request, BackupRef) error
}
type Assessment ¶
type Assessment struct {
Classification Classification
Reason string
BackupRequired bool
}
type BackupRef ¶
type Classification ¶
type Classification string
const ( ClassificationNoChange Classification = "NO_CHANGE" ClassificationSupported Classification = "SUPPORTED" ClassificationUnsupported Classification = "UNSUPPORTED" )
type Error ¶
type Error struct {
Class ErrorClass
Op string
Err error
}
type ErrorClass ¶
type ErrorClass string
const ( ErrorInvalidState ErrorClass = "INVALID_STATE" ErrorUnsupportedPath ErrorClass = "UNSUPPORTED" ErrorBackupRequired ErrorClass = "BACKUP_REQUIRED" ErrorBackupInvalid ErrorClass = "BACKUP_INVALID" ErrorApplyFailed ErrorClass = "APPLY_FAILED" ErrorVerifyFailed ErrorClass = "VERIFY_FAILED" ErrorRecoveryFailed ErrorClass = "RECOVERY_FAILED" ErrorDependency ErrorClass = "DEPENDENCY_FAILED" )
func ClassOf ¶
func ClassOf(err error) ErrorClass
Click to show internal directories.
Click to hide internal directories.