Documentation
¶
Index ¶
- Variables
- func Execute()
- func ExportState(outputPath string) error
- func GenerateManPages(dir string) error
- func GetVersionInfo() string
- func ImportState(inputPath string) error
- func ReconcileStateFromActualSnapshot(cfg *config.Config, envName string, actual *takodstate.ActualSnapshot, ...) (*localstate.DeploymentState, error)
- func SyncStateOnDeploy(cfg *config.Config, envName string) error
- func SyncStateOnDeployWithPool(pool *ssh.Pool, cfg *config.Config, envName string) error
- type DiskIOMetrics
- type DiskMetrics
- type LoadAvgMetrics
- type MemoryMetrics
- type MetricsData
- type NetworkMetrics
- type ServiceInfo
Constants ¶
This section is empty.
Variables ¶
var ( // Version, GitCommit, and BuildTime are set via ldflags during build Version = "dev" GitCommit = "unknown" BuildTime = "unknown" )
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately.
func ExportState ¶ added in v0.1.4
ExportState exports current state to a JSON file
func GenerateManPages ¶ added in v0.6.0
GenerateManPages writes Unix manual pages for the current command tree.
func GetVersionInfo ¶ added in v0.0.3
func GetVersionInfo() string
GetVersionInfo returns formatted version information
func ImportState ¶ added in v0.1.4
ImportState imports state from a JSON file
func ReconcileStateFromActualSnapshot ¶ added in v0.3.0
func ReconcileStateFromActualSnapshot(cfg *config.Config, envName string, actual *takodstate.ActualSnapshot, notes string) (*localstate.DeploymentState, error)
ReconcileStateFromActualSnapshot reconstructs local state from a replicated takod actual snapshot. This is useful on a fresh machine when deployment history was lost but mesh runtime snapshots are still available.
func SyncStateOnDeploy ¶ added in v0.1.4
SyncStateOnDeploy refreshes local deployment state from the remote mesh before deploy. When no remote deployment history exists, runtime recovery is used only for missing local state so an existing local cache is not overwritten by weaker inferred state.
Types ¶
type DiskIOMetrics ¶
type DiskMetrics ¶
type LoadAvgMetrics ¶
type MemoryMetrics ¶
type MetricsData ¶
type MetricsData struct {
Timestamp string `json:"timestamp"`
CPUPercent string `json:"cpu_percent"`
Memory MemoryMetrics `json:"memory"`
Disk DiskMetrics `json:"disk"`
Network NetworkMetrics `json:"network"`
DiskIO DiskIOMetrics `json:"disk_io"`
UptimeSeconds int `json:"uptime_seconds"`
LoadAverage LoadAvgMetrics `json:"load_average"`
}
MetricsData represents the JSON structure returned by the monitoring agent
type NetworkMetrics ¶
type ServiceInfo ¶
type ServiceInfo = engine.StatusService
Source Files
¶
- access.go
- backup.go
- certs.go
- cleanup.go
- clone_setup.go
- config.go
- config_error.go
- config_export.go
- deploy.go
- destroy.go
- discovery.go
- doctor.go
- domain_hosts.go
- domain_status.go
- domains.go
- drift.go
- engine.go
- env.go
- exec.go
- exec_resize_unix.go
- history.go
- init.go
- internal.go
- jobs.go
- live.go
- logs.go
- maintenance.go
- metrics.go
- monitor.go
- placement.go
- platform.go
- platform_backup.go
- platform_nodes.go
- platform_promotion.go
- platform_upgrade_guard.go
- project.go
- prometheus.go
- promote.go
- proxy.go
- ps.go
- remote_lease.go
- remove.go
- rollback.go
- root.go
- run.go
- scale.go
- secrets.go
- server_resolver.go
- setup.go
- start.go
- state.go
- stats.go
- stop.go
- takod.go
- takod_runtime.go
- takod_state.go
- upgrade.go
- user_path.go
- validate.go