pkg

package
v0.0.0-...-0d4b1eb Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeterminePodmanUnixUri

func DeterminePodmanUnixUri(system string) (string, error)

func GetContainerIdByName

func GetContainerIdByName(dc *DockerController, name string) (string, error)

Types

type ContainerEngine

type ContainerEngine int
const (
	DockerEngine ContainerEngine = iota
	PodmanEngine
	NoEngine
)

func DetermineEngine

func DetermineEngine() (ContainerEngine, error)

type Controller

type Controller interface {
	// contains filtered or unexported methods
}

type DockerController

type DockerController struct {
	Engine ContainerEngine
	// contains filtered or unexported fields
}

DockerController is the main engine controller that will be used to control the excalidraw container Engine -> The value that determine which engine the controller is for

func NewDockerController

func NewDockerController(system string) (*DockerController, error)

type EngineController

type EngineController struct {
	Engine     ContainerEngine
	Controller Controller
}

func NewController

func NewController(system string) (*EngineController, error)

func (*EngineController) Exist

func (e *EngineController) Exist(name string) (bool, error)

func (*EngineController) Run

func (e *EngineController) Run(imageName string, name string) error

func (*EngineController) Status

func (e *EngineController) Status(name string) (bool, error)

func (*EngineController) Stop

func (e *EngineController) Stop(name string) error

func (*EngineController) Update

func (e *EngineController) Update(imageName string, name string) error

type PodmanController

type PodmanController struct {
	Engine ContainerEngine
	// contains filtered or unexported fields
}

func NewPodmanController

func NewPodmanController(system string) (*PodmanController, error)

Jump to

Keyboard shortcuts

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