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 ¶
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.
Click to show internal directories.
Click to hide internal directories.