checktypes

package
v1.2.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 3 Imported by: 0

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

func (c *Client) ByAssettype(ctx context.Context) (map[string][]string, error)

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"}}.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL