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
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 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" )
Source Files
¶
- backup.go
- catalog.go
- common.go
- config.go
- config_export.go
- config_import.go
- depends.go
- env.go
- env_edit.go
- env_refresh.go
- env_set.go
- env_unset.go
- exec.go
- graph.go
- health.go
- info.go
- init.go
- install.go
- list.go
- logs.go
- monitor.go
- network.go
- profile.go
- project.go
- project_add.go
- project_build.go
- project_list.go
- project_remove.go
- project_run.go
- remove.go
- restart.go
- restore.go
- root.go
- self.go
- service.go
- service_upgrade.go
- start.go
- stats.go
- stop.go
- uninstall.go
- update.go
- upgrade.go
- utils.go
- version.go