cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute adds all child commands to the root command and sets flags appropriately.

func SetVersionInfo

func SetVersionInfo(v, c, d string)

SetVersionInfo sets version information for the CLI

Types

type ContainerHealth added in v0.1.1

type ContainerHealth struct {
	Name         string
	Status       string
	Health       string
	Uptime       string
	RestartCount int
}

ContainerHealth contains health info for a single container

type ContainerStatsExtended added in v0.1.1

type ContainerStatsExtended struct {
	CPUPercent  float64
	MemoryUsage uint64
	MemoryLimit uint64
	NetworkRx   uint64
	NetworkTx   uint64
	BlockRead   uint64
	BlockWrite  uint64
	PIDs        uint64
}

ContainerStatsExtended holds extended container statistics

type DependencyGraph added in v0.1.1

type DependencyGraph struct {
	Nodes map[string]*GraphNode
	Edges []GraphEdge
}

DependencyGraph represents the service dependency graph

type ExportConfig added in v0.1.1

type ExportConfig struct {
	Version     string                     `json:"version" yaml:"version"`
	ExportedAt  time.Time                  `json:"exported_at" yaml:"exported_at"`
	Preferences *types.PreferencesConfig   `json:"preferences,omitempty" yaml:"preferences,omitempty"`
	Network     *types.NetworkGlobalConfig `json:"network,omitempty" yaml:"network,omitempty"`
	Traefik     *types.TraefikGlobalConfig `json:"traefik,omitempty" yaml:"traefik,omitempty"`
	Monitoring  *types.MonitoringConfig    `json:"monitoring,omitempty" yaml:"monitoring,omitempty"`
	Instances   map[string]*ExportInstance `json:"instances,omitempty" yaml:"instances,omitempty"`
	Projects    map[string]*ExportProject  `json:"projects,omitempty" yaml:"projects,omitempty"`
}

ExportConfig represents the exported configuration

type ExportInstance added in v0.1.1

type ExportInstance struct {
	ServiceType  string                      `json:"service_type" yaml:"service_type"`
	Version      string                      `json:"version" yaml:"version"`
	Environment  map[string]string           `json:"environment,omitempty" yaml:"environment,omitempty"`
	Volumes      map[string]string           `json:"volumes,omitempty" yaml:"volumes,omitempty"`
	Network      types.NetworkConfig         `json:"network" yaml:"network"`
	Resources    types.ResourceConfig        `json:"resources,omitempty" yaml:"resources,omitempty"`
	Traefik      types.TraefikInstanceConfig `json:"traefik" yaml:"traefik"`
	Dependencies []string                    `json:"dependencies,omitempty" yaml:"dependencies,omitempty"`
}

ExportInstance represents an exported service instance (without sensitive data)

type ExportProject added in v0.1.1

type ExportProject struct {
	Path         string            `json:"path" yaml:"path"`
	Dockerfile   string            `json:"dockerfile" yaml:"dockerfile"`
	Port         int               `json:"port" yaml:"port"`
	Environment  map[string]string `json:"environment,omitempty" yaml:"environment,omitempty"`
	Dependencies []string          `json:"dependencies,omitempty" yaml:"dependencies,omitempty"`
}

ExportProject represents an exported project configuration

type GitHubRelease

type GitHubRelease struct {
	TagName string `json:"tag_name"`
	Name    string `json:"name"`
	Assets  []struct {
		Name               string `json:"name"`
		BrowserDownloadURL string `json:"browser_download_url"`
	} `json:"assets"`
}

type GraphEdge added in v0.1.1

type GraphEdge struct {
	From string
	To   string
}

GraphEdge represents an edge in the dependency graph

type GraphNode added in v0.1.1

type GraphNode struct {
	Name         string
	Type         string // "instance" or "project"
	ServiceType  string
	Status       string
	Dependencies []string
	DependedBy   []string
}

GraphNode represents a node in the dependency graph

type HealthInfo added in v0.1.1

type HealthInfo struct {
	Name          string
	Status        string
	Health        string
	Uptime        string
	RestartCount  int
	CPUPercent    string
	MemoryUsage   string
	NetworkStatus string
	Containers    []ContainerHealth
}

HealthInfo contains health information for a service

type TraefikAction added in v0.1.1

type TraefikAction string

TraefikAction represents an action to perform on Traefik

const (
	TraefikActionStart   TraefikAction = "start"
	TraefikActionStop    TraefikAction = "stop"
	TraefikActionRestart TraefikAction = "restart"
	TraefikActionInfo    TraefikAction = "info"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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