Documentation
¶
Index ¶
- func RootlessPodmanSocketAddr() string
- type CuttlefishContainerManager
- type CuttlefishContainerManagerImpl
- func (m *CuttlefishContainerManagerImpl) CreateAndStartContainer(ctx context.Context, additionalConfig *container.Config, ...) (string, error)
- func (m *CuttlefishContainerManagerImpl) ExecOnContainer(ctx context.Context, ctr string, cmd []string, stdin io.Reader, ...) error
- func (m *CuttlefishContainerManagerImpl) GetClient() *client.Client
- func (m *CuttlefishContainerManagerImpl) ImageExists(ctx context.Context, name string) (bool, error)
- func (m *CuttlefishContainerManagerImpl) PullImage(ctx context.Context, name string) error
- func (m *CuttlefishContainerManagerImpl) StopAndRemoveContainer(ctx context.Context, ctr string) error
- type CuttlefishContainerManagerOpts
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 NewCuttlefishContainerManager ¶
func NewCuttlefishContainerManager(opts CuttlefishContainerManagerOpts) (*CuttlefishContainerManagerImpl, error)
func (*CuttlefishContainerManagerImpl) CreateAndStartContainer ¶
func (m *CuttlefishContainerManagerImpl) CreateAndStartContainer(ctx context.Context, additionalConfig *container.Config, additionalHostConfig *container.HostConfig, name string) (string, error)
func (*CuttlefishContainerManagerImpl) ExecOnContainer ¶
func (*CuttlefishContainerManagerImpl) GetClient ¶
func (m *CuttlefishContainerManagerImpl) GetClient() *client.Client
func (*CuttlefishContainerManagerImpl) ImageExists ¶
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
}
Click to show internal directories.
Click to hide internal directories.