Documentation ¶
Index ¶
- func AddAllChecks(cfg *config.Config, l log.Logger) error
- func AddPolicyChecks(cfg *config.Config, l log.Logger) error
- func ComputeFingerprint(args ...interface{}) string
- func ComputeTargets(cfg *config.Config, l log.Logger) error
- func GenerateJobs(cfg *config.Config, agentIp, hostIp string, gs gitservice.GitService, ...) ([]jobrunner.Job, error)
- func GetPolicy(cfg *config.Config) (config.Policy, error)
- func GetValidDirectory(path string) (string, error)
- func SendJobs(jobs []jobrunner.Job, arn, endpoint string, l log.Logger) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAllChecks ¶ added in v0.1.0
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
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
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 GetValidDirectory ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.