Documentation
¶
Index ¶
Constants ¶
const ( // APIResponseTypeError captures enum value "error" APIResponseTypeError string = "error" // APIResponseTypeWarning captures enum value "warning" APIResponseTypeWarning string = "warning" // APIResponseTypeInfo captures enum value "info" APIResponseTypeInfo string = "info" // APIResponseTypeDebug captures enum value "debug" APIResponseTypeDebug string = "debug" // APIResponseTypeTrace captures enum value "trace" APIResponseTypeTrace string = "trace" )
const ( // ArchiveStatusQueued captures enum value "queued" ArchiveStatusQueued string = "queued" // ArchiveStatusRunning captures enum value "running" ArchiveStatusRunning string = "running" // ArchiveStatusCompleted captures enum value "completed" ArchiveStatusCompleted string = "completed" // ArchiveStatusFailed captures enum value "failed" ArchiveStatusFailed string = "failed" )
const ( // LogStatusQueued captures enum value "queued" LogStatusQueued string = "queued" // LogStatusRunning captures enum value "running" LogStatusRunning string = "running" // LogStatusCompleted captures enum value "completed" LogStatusCompleted string = "completed" // LogStatusFailed captures enum value "failed" LogStatusFailed string = "failed" )
const ( // RestorationStatusQueued captures enum value "queued" RestorationStatusQueued string = "queued" // RestorationStatusRunning captures enum value "running" RestorationStatusRunning string = "running" // RestorationStatusCompleted captures enum value "completed" RestorationStatusCompleted string = "completed" // RestorationStatusFailed captures enum value "failed" RestorationStatusFailed string = "failed" )
const ( // SnapshotStatusQueued captures enum value "queued" SnapshotStatusQueued string = "queued" // SnapshotStatusCreating captures enum value "creating" SnapshotStatusCreating string = "creating" // SnapshotStatusCreated captures enum value "created" SnapshotStatusCreated string = "created" // SnapshotStatusUncreated captures enum value "uncreated" SnapshotStatusUncreated string = "uncreated" // SnapshotStatusTransferring captures enum value "transferring" SnapshotStatusTransferring string = "transferring" // SnapshotStatusTransferred captures enum value "transferred" SnapshotStatusTransferred string = "transferred" // SnapshotStatusUntransferred captures enum value "untransferred" SnapshotStatusUntransferred string = "untransferred" // SnapshotStatusRestoring captures enum value "restoring" SnapshotStatusRestoring string = "restoring" // SnapshotStatusRestored captures enum value "restored" SnapshotStatusRestored string = "restored" // SnapshotStatusUnrestored captures enum value "unrestored" SnapshotStatusUnrestored string = "unrestored" )
const ( // SynchronizationStatusQueued captures enum value "queued" SynchronizationStatusQueued string = "queued" // SynchronizationStatusRunning captures enum value "running" SynchronizationStatusRunning string = "running" // SynchronizationStatusCompleted captures enum value "completed" SynchronizationStatusCompleted string = "completed" // SynchronizationStatusFailed captures enum value "failed" SynchronizationStatusFailed string = "failed" )
const ( // TransferStatusQueued captures enum value "queued" TransferStatusQueued string = "queued" // TransferStatusRunning captures enum value "running" TransferStatusRunning string = "running" // TransferStatusCompleted captures enum value "completed" TransferStatusCompleted string = "completed" // TransferStatusFailed captures enum value "failed" TransferStatusFailed string = "failed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct {
// code
Code int32 `json:"code"`
// message
Message string `json:"message"`
// Severity level
// Enum: [error warning info debug trace]
Type string `json:"type"`
}
APIResponse Api response Example: {"code":0,"message":"message","type":"info"}
swagger:model ApiResponse
func (*APIResponse) ContextValidate ¶
ContextValidate validates this Api response based on context it is used
func (*APIResponse) MarshalBinary ¶
func (m *APIResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIResponse) UnmarshalBinary ¶
func (m *APIResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Archive ¶
type Archive struct {
// id
ID int64 `json:"id"`
// Archive Status
// Enum: [queued running completed failed]
Status string `json:"status"`
// time
// Format: date-time
Time strfmt.DateTime `json:"time"`
// url
URL string `json:"url"`
}
Archive archive Example: {"id":1,"status":"queued","time":"2024-12-31T23:59:59Z","url":"/archives/1"}
swagger:model Archive
func (*Archive) ContextValidate ¶
ContextValidate validates this archive based on context it is used
func (*Archive) MarshalBinary ¶
MarshalBinary interface implementation
func (*Archive) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Backup ¶
type Backup struct {
// id
ID int64 `json:"id"`
// snapshots
Snapshots *Snapshots `json:"snapshots,omitempty"`
// time
// Format: date-time
Time strfmt.DateTime `json:"time"`
}
Backup backup Example: {"id":1,"time":"2024-12-31T23:59:59Z"}
swagger:model Backup
func (*Backup) ContextValidate ¶
ContextValidate validate this backup based on the context it is used
func (*Backup) MarshalBinary ¶
MarshalBinary interface implementation
func (*Backup) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Log ¶
type Log struct {
// id
ID int64 `json:"id"`
// Archive Status
// Enum: [queued running completed failed]
Status string `json:"status"`
// time
// Format: date-time
Time strfmt.DateTime `json:"time"`
// url
URL string `json:"url"`
}
Log log Example: {"id":1,"status":"completed","time":"2024-12-31T23:59:59Z","url":"/static/logs-20240910T064100Z.zip"}
swagger:model Log
func (*Log) ContextValidate ¶
ContextValidate validates this log based on context it is used
func (*Log) MarshalBinary ¶
MarshalBinary interface implementation
func (*Log) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Quota ¶
type Quota struct {
// hard
Hard int64 `json:"hard"`
// id
ID int64 `json:"id"`
// path
Path string `json:"path"`
// soft
Soft int64 `json:"soft"`
}
Quota quota Example: {"hard":1073741824,"id":1,"path":"/home/toc/","soft":838860800}
swagger:model Quota
func (*Quota) ContextValidate ¶
ContextValidate validates this quota based on context it is used
func (*Quota) MarshalBinary ¶
MarshalBinary interface implementation
func (*Quota) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Restoration ¶
type Restoration struct {
// backup
Backup *Backup `json:"backup,omitempty"`
// id
ID int64 `json:"id"`
// Restoration Status
// Enum: [queued running completed failed]
Status string `json:"status"`
}
Restoration restoration Example: {"id":1}
swagger:model Restoration
func (*Restoration) ContextValidate ¶
ContextValidate validate this restoration based on the context it is used
func (*Restoration) MarshalBinary ¶
func (m *Restoration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Restoration) UnmarshalBinary ¶
func (m *Restoration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Snapshot ¶
type Snapshot struct {
// file
File string `json:"file"`
// id
ID int64 `json:"id"`
// Snapshot Status
// Enum: [queued creating created uncreated transferring transferred untransferred restoring restored unrestored]
Status string `json:"status"`
}
Snapshot snapshot Example: {"file":"/var/opt/toc/archive/20241231T235959Z-server.tar.gz","id":1,"status":"restored"}
swagger:model Snapshot
func (*Snapshot) ContextValidate ¶
ContextValidate validates this snapshot based on context it is used
func (*Snapshot) MarshalBinary ¶
MarshalBinary interface implementation
func (*Snapshot) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Snapshots ¶
type Snapshots struct {
// db
Db *Snapshot `json:"db,omitempty"`
// file
File *Snapshot `json:"file,omitempty"`
// mail
Mail *Snapshot `json:"mail,omitempty"`
// web
Web *Snapshot `json:"web,omitempty"`
}
Snapshots snapshots
swagger:model Snapshots
func (*Snapshots) ContextValidate ¶
ContextValidate validate this snapshots based on the context it is used
func (*Snapshots) MarshalBinary ¶
MarshalBinary interface implementation
func (*Snapshots) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Synchronization ¶
type Synchronization struct {
// id
ID int64 `json:"id"`
// Synchronization Status
// Enum: [queued running completed failed]
Status string `json:"status"`
// time
// Format: date-time
Time strfmt.DateTime `json:"time"`
}
Synchronization synchronization Example: {"id":1,"status":"running","time":"2024-12-31T23:59:59Z"}
swagger:model Synchronization
func (*Synchronization) ContextValidate ¶
ContextValidate validates this synchronization based on context it is used
func (*Synchronization) MarshalBinary ¶
func (m *Synchronization) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Synchronization) UnmarshalBinary ¶
func (m *Synchronization) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Transfer ¶
type Transfer struct {
// backup
Backup *Backup `json:"backup,omitempty"`
// id
ID int64 `json:"id"`
// Transfer Status
// Enum: [queued running completed failed]
Status string `json:"status"`
}
Transfer transfer Example: {"id":1,"status":"failed"}
swagger:model Transfer
func (*Transfer) ContextValidate ¶
ContextValidate validate this transfer based on the context it is used
func (*Transfer) MarshalBinary ¶
MarshalBinary interface implementation
func (*Transfer) UnmarshalBinary ¶
UnmarshalBinary interface implementation