Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestAndOverrideDescriptions ¶
RequestAndOverrideDescriptions - Requests CIS descriptions and override default descriptions
Types ¶
type Client ¶
type Client struct { }
Client - client for making CIS descriptions requests
func (*Client) CheckConnection ¶
CheckConnection - checks if the endpoint is reachable
func (*Client) RequestDescriptions ¶
func (c *Client) RequestDescriptions(descriptionIDs []string) (map[string]descModel.CISDescriptions, error)
RequestDescriptions - gets CIS 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: 15 * time.Second, } )
type HTTPDescription ¶
type HTTPDescription interface { CheckConnection() error RequestDescriptions(descriptionIDs []string) (map[string]descModel.CISDescriptions, error) }
HTTPDescription - HTTP client interface to use for requesting descriptions
Click to show internal directories.
Click to hide internal directories.