composectl

package
v0.0.0-...-ebbba33 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinUsageWatermark = 20
	MaxUsageWatermark = 95
)
View Source
const (
	WorkingDirLabel = "com.docker.compose.project.working_dir"
	ServiceLabel    = "com.docker.compose.service"
)
View Source
const (
	EnvOverrideDockerConfigDir = "DOCKER_CONFIG"
)

Variables

This section is empty.

Functions

func AddLastWill

func AddLastWill(lastWill LastWill)

func DieNotNil

func DieNotNil(err error, message ...string)

func DieNotNilWithCode

func DieNotNilWithCode(err error, exitCode int, message ...string)

func Execute

func Execute()

Types

type App

type App struct {
	URI      string     `json:"uri"`
	Name     string     `json:"name"`
	State    string     `json:"state"`
	Services []*Service `json:"services"`
}

type AppStatus

type AppStatus []ServiceStatus

type Config

type Config struct {
	StoreRoot   string
	ComposeRoot string
	DockerCfg   *configfile.ConfigFile
	DockerHost  string
	Platform    specs.Platform
}

type LastWill

type LastWill = func()

type Service

type Service struct {
	Name   string `json:"name"`
	Image  string `json:"image"`
	Hash   string `json:"hash"`
	CtrID  string `json:"ctr-id"`
	State  string `json:"state"`
	Status string `json:"status"`
	Health string `json:"health,omitempty"`
}

type ServiceStatus

type ServiceStatus struct {
	URI     string `json:"uri"`
	ID      string `json:"id"`
	CfgHash string `json:"cfg-hash"`
	State   string `json:"state"`
	Status  string `json:"status"`
}

Jump to

Keyboard shortcuts

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