docker

package
v0.0.0-...-4560a53 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Zlib Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnableToPingEndpoint = errors.New("Unable to communicate with the environment")
)

Docker errors

Functions

This section is empty.

Types

type ContainerService

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

func NewContainerService

func NewContainerService(factory *dockerclient.ClientFactory, dataStore dataservices.DataStore) *ContainerService

func (*ContainerService) Recreate

func (c *ContainerService) Recreate(ctx context.Context, endpoint *portainer.Endpoint, containerId string, forcePullImage bool, imageTag, nodeName string) (*types.ContainerJSON, error)

Recreate a container

type Snapshotter

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

Snapshotter represents a service used to create environment(endpoint) snapshots

func NewSnapshotter

func NewSnapshotter(clientFactory *dockerclient.ClientFactory) *Snapshotter

NewSnapshotter returns a new Snapshotter instance

func (*Snapshotter) CreateSnapshot

func (snapshotter *Snapshotter) CreateSnapshot(endpoint *portainer.Endpoint) (*portainer.DockerSnapshot, error)

CreateSnapshot creates a snapshot of a specific Docker environment(endpoint)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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