Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVersion ¶ added in v1.4.6
CheckVersion - checks if using the latest version and saves that information in the tracker
func RequestAndOverrideDescriptions ¶
RequestAndOverrideDescriptions - Requests descriptions and override default descriptions
Types ¶
type Client ¶
type Client struct { }
Client - client for making descriptions requests
func (*Client) CheckConnection ¶
CheckConnection - checks if the endpoint is reachable
func (*Client) CheckLatestVersion ¶ added in v1.4.6
CheckLatestVersion - Check if using KICS latest version from endpoint
func (*Client) RequestDescriptions ¶
func (c *Client) RequestDescriptions(descriptionIDs []string) (map[string]descModel.CISDescriptions, error)
RequestDescriptions - gets descriptions from endpoint
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 HTTPDescription ¶
type HTTPDescription interface { CheckConnection() error RequestDescriptions(descriptionIDs []string) (map[string]descModel.CISDescriptions, error) CheckLatestVersion(version string) (model.Version, error) }
HTTPDescription - HTTP client interface to use for requesting descriptions
Click to show internal directories.
Click to hide internal directories.