common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnAzureKubernetesClusterWeCanReadTheConfigurationOf

func AnAzureKubernetesClusterWeCanReadTheConfigurationOf(scenario *ScenarioState) (json []byte, err error)

AnAzureKubernetesClusterWeCanReadTheConfigurationOf ...

func OPAProbe

func OPAProbe(opaFuncName string, aksJSON []byte, scenario *ScenarioState) (err error)

OPAProbe ...

Types

type ScenarioState

type ScenarioState struct {
	Name         string
	CurrentStep  string
	Audit        *audit.Scenario
	Probe        *audit.Probe
	Ctx          context.Context
	Tags         map[string]*string
	AZConnection connection.Azure
}

ScenarioState is the base struct for handling state across steps in a scenario

func (ScenarioState) GetScenarioState

func (s ScenarioState) GetScenarioState() *ScenarioState

GetScenarioState returns the ScenarioState struct - useful if used as an embedded field (see comment on OPAProbe)

Jump to

Keyboard shortcuts

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