Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssettypeInformer ¶
type AssettypeInformer interface { IndexAssettypes(ctx context.Context, path string) (*http.Response, error) DecodeAssettypeCollection(resp *http.Response) (client.AssettypeCollection, error) }
AssettypeInformer defines the methods needed by the Checkstypes struct to get the checktypes per assettype from vulcan-core.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides information about the current checktypes that can be run in a scan.
func New ¶
func New(informer AssettypeInformer) *Client
New Creates a new client that provides information regarding the checktypes defined in vulcan core.
func (*Client) ByAssettype ¶
ByAssettype returns a map where each key contains an assettype and each value the checks allowed to be executed for those asset types, e.g., {{"Hostname":{"vulcan-nessus","vulcan-exposed,"vulcan-tls"}}.
Click to show internal directories.
Click to hide internal directories.