Documentation ¶
Index ¶
- Constants
- type APIBackupStartInput
- type APIBackupStatus
- type APIBackupStatusOutput
- type APIRoleConfigInput
- type APIRoleConfigOutput
- type BackupStatus
- type Role
- func (r *Role) APIBackupStart() usecase.Interactor
- func (r *Role) APIBackupStatus() usecase.Interactor
- func (r *Role) APIRoleConfigGet() usecase.Interactor
- func (r *Role) APIRoleConfigPut() usecase.Interactor
- func (r *Role) GetBackupName() string
- func (r *Role) SaveSnapshot() *BackupStatus
- func (r *Role) Start(ctx context.Context, config []byte) error
- func (r *Role) Stop()
- type RoleConfig
Constants ¶
View Source
const BackupStatusFailed = "failed"
View Source
const BackupStatusStarted = "started"
View Source
const BackupStatusSuccess = "success"
View Source
const (
EventTopicBackupRun = "roles.backup.run"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIBackupStartInput ¶
type APIBackupStartInput struct {
Wait bool `query:"wait" required:"true"`
}
type APIBackupStatus ¶
type APIBackupStatus struct { BackupStatus Node string `json:"node"` }
type APIBackupStatusOutput ¶
type APIBackupStatusOutput struct {
Status []APIBackupStatus `json:"status" required:"true"`
}
type APIRoleConfigInput ¶
type APIRoleConfigInput struct {
Config RoleConfig `json:"config" required:"true"`
}
type APIRoleConfigOutput ¶
type APIRoleConfigOutput struct {
Config RoleConfig `json:"config" required:"true"`
}
type BackupStatus ¶
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
func (*Role) APIBackupStart ¶
func (r *Role) APIBackupStart() usecase.Interactor
func (*Role) APIBackupStatus ¶
func (r *Role) APIBackupStatus() usecase.Interactor
func (*Role) APIRoleConfigGet ¶
func (r *Role) APIRoleConfigGet() usecase.Interactor
func (*Role) APIRoleConfigPut ¶
func (r *Role) APIRoleConfigPut() usecase.Interactor
func (*Role) GetBackupName ¶
func (*Role) SaveSnapshot ¶
func (r *Role) SaveSnapshot() *BackupStatus
Click to show internal directories.
Click to hide internal directories.