Versions in this module Expand all Collapse all v0 v0.1.0 Aug 22, 2022 Changes in this version + func GetBundleDir(args []string) (string, error) + func GetBundleDirFromArgs(args []string) (string, error) + func GetSpecFilePath(bundleDir string) string + func HasCreateSubcommand(args []string) bool + func IsBundleFlag(arg string) bool + func LoadFrom(reader io.Reader) (*specs.Spec, error) + type Runtime interface + Exec func([]string) error + func NewLowLevelRuntime(logger *log.Logger, candidates []string) (Runtime, error) + func NewRuntimeForPath(logger *log.Logger, path string) (Runtime, error) + type RuntimeMock struct + ExecFunc func(strings []string) error + func (mock *RuntimeMock) Exec(strings []string) error + func (mock *RuntimeMock) ExecCalls() []struct{ ... } + type Spec interface + Flush func() error + Load func() (*specs.Spec, error) + LookupEnv func(string) (string, bool) + Modify func(SpecModifier) error + func NewFileSpec(filepath string) Spec + func NewMemorySpec(spec *specs.Spec) Spec + func NewSpec(logger *logrus.Logger, args []string) (Spec, error) + type SpecMock struct + FlushFunc func() error + LoadFunc func() (*specs.Spec, error) + LookupEnvFunc func(s string) (string, bool) + ModifyFunc func(specModifier SpecModifier) error + func (mock *SpecMock) Flush() error + func (mock *SpecMock) FlushCalls() []struct{} + func (mock *SpecMock) Load() (*specs.Spec, error) + func (mock *SpecMock) LoadCalls() []struct{} + func (mock *SpecMock) LookupEnv(s string) (string, bool) + func (mock *SpecMock) LookupEnvCalls() []struct{ ... } + func (mock *SpecMock) Modify(specModifier SpecModifier) error + func (mock *SpecMock) ModifyCalls() []struct{ ... } + type SpecModifier interface + Modify func(*specs.Spec) error + type State specs.State + func LoadContainerState(filename string) (*State, error) + func ReadContainerState(reader io.Reader) (*State, error) + func (s *State) GetContainerRoot() (string, error) + func (s *State) LoadSpec() (*specs.Spec, error)