Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Environment ¶
type Environment struct {
// Stdin is the standard input
Stdin io.Reader
// Client is used to retrieve an *lxc.Client
Client func(ctx context.Context) (*lxc.Client, error)
// Getenv is os.Getenv
Getenv func(name string) string
}
func (*Environment) CacheDir ¶
func (e *Environment) CacheDir() string
CacheDir is a local directory for caching image tarballs
func (*Environment) KindInstances ¶
func (e *Environment) KindInstances(ctx context.Context) bool
KindInstances returns true if we must launch kind instances
func (*Environment) Privileged ¶
func (e *Environment) Privileged() bool
Privileged returns true if user wants to launch privileged containers
func (*Environment) WithUnixSocket ¶
func (e *Environment) WithUnixSocket() bool
WithUnixSocket returns true if we must pass the Incus unix socket into the instance under /run-unix.socket
Click to show internal directories.
Click to hide internal directories.