libcfcontainer

package module
v0.0.0-...-69be14d Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0, BSD-2-Clause, ISC, + 1 more Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootlessPodmanSocketAddr

func RootlessPodmanSocketAddr() string

Types

type CuttlefishContainerManager

type CuttlefishContainerManager interface {
	GetClient() *client.Client
	// Check whether an image with the given name exists on the container engine or not
	ImageExists(ctx context.Context, name string) (bool, error)
	// Pull the container image
	PullImage(ctx context.Context, name string) error
	// Create and start a container instance
	CreateAndStartContainer(ctx context.Context, additionalConfig *container.Config, additionalHostConfig *container.HostConfig, name string) (string, error)
	// Execute a command on a running container instance
	ExecOnContainer(ctx context.Context, ctr string, cmd []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error
	// Stop and remove a container instance
	StopAndRemoveContainer(ctx context.Context, ctr string) error
}

type CuttlefishContainerManagerImpl

type CuttlefishContainerManagerImpl struct {
	// contains filtered or unexported fields
}

func (*CuttlefishContainerManagerImpl) CreateAndStartContainer

func (m *CuttlefishContainerManagerImpl) CreateAndStartContainer(ctx context.Context, additionalConfig *container.Config, additionalHostConfig *container.HostConfig, name string) (string, error)

func (*CuttlefishContainerManagerImpl) ExecOnContainer

func (m *CuttlefishContainerManagerImpl) ExecOnContainer(ctx context.Context, ctr string, cmd []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

func (*CuttlefishContainerManagerImpl) GetClient

func (*CuttlefishContainerManagerImpl) ImageExists

func (m *CuttlefishContainerManagerImpl) ImageExists(ctx context.Context, name string) (bool, error)

func (*CuttlefishContainerManagerImpl) PullImage

func (m *CuttlefishContainerManagerImpl) PullImage(ctx context.Context, name string) error

func (*CuttlefishContainerManagerImpl) StopAndRemoveContainer

func (m *CuttlefishContainerManagerImpl) StopAndRemoveContainer(ctx context.Context, ctr string) error

type CuttlefishContainerManagerOpts

type CuttlefishContainerManagerOpts struct {
	SockAddr string
}

Jump to

Keyboard shortcuts

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