Documentation
¶
Index ¶
- Variables
- func SaveLocal(ctx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, ...) error
- func SavePod(ctx context.Context, rt runtime.Runtime, containers []config.ContainerConfig, ...) error
- type Destination
- type DestinationKind
- type PodSaveResult
- type PodSaver
- type StateExporter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRemoteNotSupported is returned for known remote schemes (s3://, oras://). 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 ¶
Types ¶
type Destination ¶ added in v0.9.0
type Destination struct {
Kind DestinationKind
Value string
}
Destination is the parsed result of a user-supplied snapshot destination. For KindLocal, Value is an absolute local file path with a .zip extension. For KindPod, Value is the validated pod name (without the "pod:" prefix).
func ParseDestination ¶
func ParseDestination(dest string, now time.Time) (Destination, error)
ParseDestination resolves a user-supplied destination to a local path (KindLocal) or validated pod name (KindPod).
type DestinationKind ¶ added in v0.9.0
type DestinationKind int
DestinationKind distinguishes local file paths from remote pod destinations.
const ( KindLocal DestinationKind = iota KindPod )
type PodSaveResult ¶ added in v0.9.0
PodSaveResult holds the metadata returned by the platform after a successful pod save.
Click to show internal directories.
Click to hide internal directories.