docker

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerHandler

type DockerHandler struct {
	DockerClient *client.Client
	Logger       *slog.Logger
}

func (*DockerHandler) CheckPulledMasterImage

func (dh *DockerHandler) CheckPulledMasterImage(ctx context.Context) (bool, error)

Checks if a fresh pull of Master image corresponds to a new version

func (*DockerHandler) GetActiveGnoPortalLoopContainers

func (dh *DockerHandler) GetActiveGnoPortalLoopContainers(ctx context.Context) ([]types.Container, error)

Gather the list of current running containter of

func (*DockerHandler) GetPublishedRPCPort

func (dh *DockerHandler) GetPublishedRPCPort(dockerContainer types.Container) string

Gather the RPC Port published for the given container

func (*DockerHandler) RemoveContainersWithVolumes

func (dh *DockerHandler) RemoveContainersWithVolumes(ctx context.Context, containers []types.Container) error

Removes the given containers and the linked volumes

func (*DockerHandler) StartGnoPortalLoopContainer

func (dh *DockerHandler) StartGnoPortalLoopContainer(ctx context.Context, containerName, hostPwd string, pullImage bool) (*types.Container, error)

Starts the Gno Portal Loop Container

Jump to

Keyboard shortcuts

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