source

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package source fetches backup artifacts from their storage location so a driver can restore them. Sources are read-only by design: FireDrill only ever downloads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backup

type Backup struct {
	Path    string    // local filesystem path to the artifact
	ModTime time.Time // when the backup was produced (drives freshness/RPO)
	Size    int64
	// contains filtered or unexported fields
}

Backup is a locally available backup artifact.

func Fetch

func Fetch(ctx context.Context, from spec.From) (*Backup, error)

Fetch resolves a spec source to a local file.

func (*Backup) Cleanup

func (b *Backup) Cleanup() error

Cleanup removes any temporary download. Safe on nil / no-op sources.

Jump to

Keyboard shortcuts

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