docker

package
v0.0.0-...-63b66d1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainersRaw

func GetContainersRaw(ctx context.Context) (containers []types.Container, err error)

func StartAction

func StartAction(ctx context.Context, service, action string, args ...string) (actionID string, err error)

Types

type Container

type Container struct {
	Name   string
	ID     string
	Status Status
}

func GetContainer

func GetContainer(ctx context.Context, name string) (result *Container, err error)

func GetContainers

func GetContainers(ctx context.Context) (containers []*Container, err error)

type Status

type Status string
const (
	StatusUnknown Status = "unknown"
	StatusStopped Status = "stopped"
	StatusRunning Status = "running"
)

Jump to

Keyboard shortcuts

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