docker

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

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

Jump to

Keyboard shortcuts

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