snapshot

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRemoteNotSupported is returned for known remote schemes (s3://, oras://, cloud:).
	ErrRemoteNotSupported = errors.New("remote destinations are not yet supported — coming soon")
	// ErrUnknownScheme is returned for unrecognized URL schemes.
	ErrUnknownScheme = errors.New("unrecognized destination scheme")
)

Functions

func ParseDestination

func ParseDestination(dest string, now time.Time) (string, error)

ParseDestination resolves the user-supplied path to an absolute local path. When dest is empty, a default name based on now (UTC) is used, e.g. "snapshot-2026-05-11T21-04-32-a3f.zip", saved in the current working directory. The returned path always has a .zip extension.

func Save

func Save(ctx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, exporter StateExporter, host, dest string, sink output.Sink) (retErr error)

Types

type StateExporter

type StateExporter interface {
	ExportState(ctx context.Context, host string, dst io.Writer) error
}

StateExporter retrieves state from the running LocalStack instance.

Jump to

Keyboard shortcuts

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