Documentation ¶
Overview ¶
Package telemetry provides functionality for telemetry
Package telemetry provides functionality for telemetry ¶
Package telemetry provides functionality for telemetry
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVersion ¶
CheckVersion - checks if using the latest version and saves that information in the tracker
func TelemetryRequest ¶
TelemetryRequest - Request to update telemetry
Types ¶
type Client ¶
type Client struct { }
Client - client for making telemetry requests
func (*Client) CheckConnection ¶
CheckConnection - checks if the endpoint is reachable
func (*Client) CheckLatestVersion ¶
CheckLatestVersion - Check if using KICS latest version from endpoint
func (*Client) RequestUpdateTelemetry ¶
func (c *Client) RequestUpdateTelemetry(descriptionIDs []string) (map[string]telemetryModel.Descriptions, error)
RequestUpdateTelemetry - send telemetry request
type HTTPClient ¶
HTTPClient - http client to use for requests
var ( // HTTPRequestClient - http client to use for requests HTTPRequestClient HTTPClient = &http.Client{ Transport: tr, Timeout: 20 * time.Second, } )
type HTTPTelemetry ¶
type HTTPTelemetry interface { CheckConnection() error RequestUpdateTelemetry([]string) (map[string]telemetryModel.Descriptions, error) CheckLatestVersion(version string) (model.Version, error) }
HTTPTelemetry - HTTP client interface to use for requesting telemetry
Click to show internal directories.
Click to hide internal directories.