cmd

package
v1.109.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CommandCostModel is the command used to execute the metrics emission and ETL pipeline
	CommandCostModel string = "cost-model"

	// CommandAgent executes the application in agent mode, which provides only metrics exporting.
	CommandAgent string = "agent"
)

Variables

This section is empty.

Functions

func Execute

func Execute(costModelCmd *cobra.Command, cmds ...*cobra.Command) error

Execute runs the root command for the application. By default, if no command argument is provided, on the command line, the cost-model is executed by default.

This function accepts a costModelCmd and agentCmd parameters to provide support for alternate implementations for cost-model and/or agent. If the passed in costModelCmd and/or agentCmd are nil, then the respective defaults from opencost will be used.

Any additional commands passed in will be added to the root command.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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