Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" BuildTime = "unknown" GitCommit = "unknown" )
Build metadata injected at link time via -ldflags (see Makefile LDFLAGS_CLI).
Functions ¶
func Execute ¶
func Execute() int
Execute runs the Cobra command tree and returns a process exit code.
func SetBuildInfo ¶
func SetBuildInfo(version, buildTime, gitCommit string)
SetBuildInfo overrides build metadata (used in tests).
func ShouldRunCLI ¶
ShouldRunCLI reports whether argv should dispatch to the operator CLI instead of the daemon supervisor. Daemon-only invocation is "edgelet daemon" (used by systemd and service scripts).
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.