Help us shape the future of Go! Take the 2026 Go Developer Survey

backup

package
v0.176.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupCmd

func BackupCmd(ch *cmdutil.Helper) *cobra.Command

BackupCmd handles branch backups.

func CreateCmd

func CreateCmd(ch *cmdutil.Helper) *cobra.Command

func DeleteCmd

func DeleteCmd(ch *cmdutil.Helper) *cobra.Command

func ListCmd

func ListCmd(ch *cmdutil.Helper) *cobra.Command

ListCmd encapsulates the command for listing backups for a branch.

func RestoreCmd added in v0.69.0

func RestoreCmd(ch *cmdutil.Helper) *cobra.Command

func ShowCmd added in v0.13.0

func ShowCmd(ch *cmdutil.Helper) *cobra.Command

Types

type Backup added in v0.14.0

type Backup struct {
	PublicID    string `header:"id" json:"id"`
	Name        string `header:"name" json:"name"`
	State       string `header:"state" json:"state"`
	Size        int64  `header:"size" json:"size"`
	CreatedAt   int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt   int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	StartedAt   int64  `header:"started_at,timestamp(ms|utc|human)" json:"started_at"`
	ExpiresAt   int64  `header:"expires_at,timestamp(ms|utc|human)" json:"expires_at"`
	CompletedAt int64  `header:"completed_at,timestamp(ms|utc|human)" json:"completed_at"`
	// contains filtered or unexported fields
}

func (*Backup) MarshalCSVValue added in v0.17.0

func (b *Backup) MarshalCSVValue() interface{}

func (*Backup) MarshalJSON added in v0.14.0

func (b *Backup) MarshalJSON() ([]byte, error)

type Backups added in v0.14.0

type Backups []*Backup

func (Backups) String added in v0.14.0

func (b Backups) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL