Documentation
¶
Index ¶
- func CreateNodeQuery(query string) ([]model.NodeQuery, error)
- func GetNodeBandwidth(metricsMap map[string]map[string]float64) float64
- func GetServiceBandwidth(metric model.MetricData) float64
- func GetServiceCpuUsage(metric model.MetricData) float64
- func GetServiceDiskUsage(metric model.MetricData) float64
- func GetServiceMemoryUsage(metric model.MetricData) float64
- func GetServiceNetworkReceive(metric model.MetricData) float64
- func GetServiceNetworkTransmit(metric model.MetricData) float64
- func LoadEnvFile(filePath string) error
- func MarshalSchemaResponse(response *model.SchemaResponse) ([]byte, error)
- func MarshalSchemaVersionResponse(response *model.SchemaVersionResponse) ([]byte, error)
- func ParseIDsAndKinds(ids, kinds string) ([]string, []string, error)
- func PrepareConfigDiffRequest(namespace, names, versions, organization string) (interface{}, error)
- func PrepareRequestBodyFromYAMLOrJSON(path string) (map[string]interface{}, error)
- func PromptForPassword() (string, error)
- func ReadJSON(filePath string, out interface{}) error
- func ReadSchemaFile(filePath string) (string, error)
- func ReadTokenFromFile() (string, error)
- func ReadYAML(filePath string, out interface{}) error
- func SaveSchemaResponseToYAML(response *model.SchemaResponse, filePath string) error
- func SaveTokenToFile(token string) error
- func SaveVersionResponseToYAML(response *model.SchemaVersionResponse, filePath string) error
- func SaveYAMLOrJSONResponseToFile(response interface{}, filePath string) error
- func SendHTTPRequest(config model.HTTPRequestConfig) error
- func SendHTTPRequestWithProgress(config model.HTTPRequestConfig, bar *pb.ProgressBar) error
- func StringToFloat(s string) float64
- func ValidateRequiredFlags(cmd *cobra.Command, requiredFlags []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServiceBandwidth ¶
func GetServiceBandwidth(metric model.MetricData) float64
func GetServiceCpuUsage ¶
func GetServiceCpuUsage(metric model.MetricData) float64
func GetServiceDiskUsage ¶
func GetServiceDiskUsage(metric model.MetricData) float64
func GetServiceMemoryUsage ¶
func GetServiceMemoryUsage(metric model.MetricData) float64
func GetServiceNetworkReceive ¶
func GetServiceNetworkReceive(metric model.MetricData) float64
func GetServiceNetworkTransmit ¶
func GetServiceNetworkTransmit(metric model.MetricData) float64
func LoadEnvFile ¶
func MarshalSchemaResponse ¶
func MarshalSchemaResponse(response *model.SchemaResponse) ([]byte, error)
func MarshalSchemaVersionResponse ¶
func MarshalSchemaVersionResponse(response *model.SchemaVersionResponse) ([]byte, error)
func PromptForPassword ¶
func ReadSchemaFile ¶
func ReadTokenFromFile ¶
func SaveSchemaResponseToYAML ¶
func SaveSchemaResponseToYAML(response *model.SchemaResponse, filePath string) error
func SaveTokenToFile ¶
func SaveVersionResponseToYAML ¶
func SaveVersionResponseToYAML(response *model.SchemaVersionResponse, filePath string) error
func SendHTTPRequest ¶
func SendHTTPRequest(config model.HTTPRequestConfig) error
func SendHTTPRequestWithProgress ¶
func SendHTTPRequestWithProgress(config model.HTTPRequestConfig, bar *pb.ProgressBar) error
func StringToFloat ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.