docker

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package docker contains the Docker wrapped client for the cat image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerClient

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

DockerClient is a wrapper around the Docker client to handle the CLI features.

func NewDockerClient

func NewDockerClient(onPullProgress onPullProgressFunc) (*DockerClient, error)

NewDockerClient creates a new DockerClient

func (*DockerClient) Close

func (client *DockerClient) Close() error

Close closes the underlying Docker client

func (*DockerClient) PullCatImage

func (client *DockerClient) PullCatImage(ctx context.Context, version string) error

PullCatImage pulls the specified version of the cat image

func (*DockerClient) RemoveCatContainer

func (client *DockerClient) RemoveCatContainer(ctx context.Context, containerName string) error

RemoveCatContainer removes the specified cat container

func (*DockerClient) StartCatContainer

func (client *DockerClient) StartCatContainer(ctx context.Context, config StartCatContainerConfig) error

StartCatContainer starts the cheshire cat container with the specified config

func (*DockerClient) StopCatContainer

func (client *DockerClient) StopCatContainer(ctx context.Context, containerName string) error

StopCatContainer stops the specified cat container

type StartCatContainerConfig

type StartCatContainerConfig struct {
	CatImage              string
	CatContainerName      string
	CatContainerBoundPort int
	PluginFolderPath      string
	DataFolderPath        string
	StaticFolderPath      string
}

Jump to

Keyboard shortcuts

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