generator

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAllChecks added in v0.1.0

func AddAllChecks(cfg *config.Config, l log.Logger) error

AddAllChecks is called if no policy has been set, and creates a list of checks to run based on targets and available checks.

func AddPolicyChecks added in v0.1.0

func AddPolicyChecks(cfg *config.Config, l log.Logger) error

This function is called if a policy has been set, and creates a list of checks to run based on targets and policy.

func ComputeFingerprint

func ComputeFingerprint(args ...interface{}) string

func ComputeTargets added in v0.1.0

func ComputeTargets(cfg *config.Config, l log.Logger) error

ComputeTargets expands the list of targets by inferring missing AssetTypes and generates the list of checks to run based on the available Checktypes and AssetType.

func GenerateJobs

func GenerateJobs(cfg *config.Config, agentIp, hostIp string, gs gitservice.GitService, l log.Logger) ([]jobrunner.Job, error)

func GetPolicy added in v0.1.0

func GetPolicy(cfg *config.Config) (config.Policy, error)

func GetValidDirectory

func GetValidDirectory(path string) (string, error)

func SendJobs

func SendJobs(jobs []jobrunner.Job, arn, endpoint string, l log.Logger) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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