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 ( BackupStatusSuccess = "success" BackupStatusStarted = "started" BackupStatusFailed = "failed" )
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 BackupStatus struct { Status string `json:"status,omitempty" required:"true"` Error string `json:"error,omitempty" required:"true"` Filename string `json:"filename,omitempty" required:"true"` Size int64 `json:"size,omitempty" required:"true"` Duration int64 `json:"duration,omitempty" required:"true"` Time time.Time `json:"time" required:"true"` }
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) SaveSnapshot ¶
func (r *Role) SaveSnapshot() *BackupStatus
Click to show internal directories.
Click to hide internal directories.