# Functions
GetBundleDir returns the bundle directory or default depending on the supplied command line arguments.
GetBundleDirFromArgs checks the specified slice of strings (argv) for a 'bundle' flag as allowed by runc.
GetSpecFilePath returns the expected path to the OCI specification file for the given bundle directory.
HasCreateSubcommand checks the supplied arguments for a 'create' subcommand.
IsBundleFlag is a helper function that checks wither the specified argument represents a bundle flag (--bundle or -b).
LoadContainerState loads the container state from the specified filename.
LoadFrom reads the contents of the OCI spec from the specified io.Reader.
NewFileSpec creates an object that encapsulates a file-backed OCI spec.
NewLowLevelRuntime creates a Runtime that wraps a low-level runtime executable.
NewMemorySpec creates a Spec instance from the specified OCI spec.
NewModifyingRuntimeWrapper creates a runtime wrapper that applies the specified modifier to the OCI specification before invoking the wrapped runtime.
NewRuntimeForPath creates a Runtime for the specified logger and path.
NewSpec creates fileSpec based on the command line arguments passed to the application using the specified logger.
ReadContainerState reads the container state from the specified reader.
# Structs
RuntimeMock is a mock implementation of Runtime.
SpecMock is a mock implementation of Spec.
# Interfaces
Runtime is an interface for a runtime shim.
Spec defines the operations to be performed on an OCI specification
go:generate moq -stub -out spec_mock.go .
SpecModifier defines an interface for modifying a (raw) OCI spec.
# Type aliases
State stores an OCI container state.