borgbackup

package
v0.0.0-...-df0bd0c Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive struct {
	ID          string       `json:"id"`
	Name        string       `json:"name"`
	StartTime   Time         `json:"start"`
	EndTime     Time         `json:"end"`
	Duration    float64      `json:"duration"`
	CommandLine []string     `json:"command_line"`
	Username    string       `json:"username"`
	Stats       ArchiveStats `json:"stats"`
}

type ArchiveStats

type ArchiveStats struct {
	CompressedSize   int64 `json:"compressed_size"`
	DeduplicatedSize int64 `json:"deduplicated_size"`
	NumFiles         int64 `json:"nfiles"`
	OriginalSize     int64 `json:"original_size"`
}

type ArchiveSummary

type ArchiveSummary struct {
	Archive string `json:"archive"`
	ID      string `json:"id"`
	Name    string `json:"name"`
	Time    Time   `json:"start"`
}

type Borg

type Borg struct {
	// contains filtered or unexported fields
}

func New

func New(borgPath string) *Borg

func (*Borg) GetArchive

func (b *Borg) GetArchive(ctx context.Context, repositoryPath string, name string) (*Archive, error)

func (*Borg) ListArchives

func (b *Borg) ListArchives(ctx context.Context, repositoryPath string) ([]*ArchiveSummary, error)

type Time

type Time struct {
	time.Time
}

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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