Documentation ¶
Index ¶
- func ContainerPolicy(ctx context.Context) []string
- func InitializeContainerChecks(ctx context.Context, p policy.Policy, cfg ContainerCheckConfig) ([]check.Check, error)
- func InitializeOperatorChecks(ctx context.Context, p policy.Policy, cfg OperatorCheckConfig) ([]check.Check, error)
- func New(ctx context.Context, checks []check.Check, kubeconfig []byte, ...) (craneEngine, error)
- func OperatorPolicy(ctx context.Context) []string
- func RootExceptionContainerPolicy(ctx context.Context) []string
- func ScratchContainerPolicy(ctx context.Context) []string
- type ContainerCheckConfig
- type OperatorCheckConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerPolicy ¶
ContainerPolicy returns the names of checks in the container policy.
func InitializeContainerChecks ¶
func InitializeContainerChecks(ctx context.Context, p policy.Policy, cfg ContainerCheckConfig) ([]check.Check, error)
InitializeContainerChecks returns the appropriate checks for policy p given cfg.
func InitializeOperatorChecks ¶
func InitializeOperatorChecks(ctx context.Context, p policy.Policy, cfg OperatorCheckConfig) ([]check.Check, error)
InitializeOperatorChecks returns opeartor checks for policy p give cfg.
func New ¶
func New(ctx context.Context, checks []check.Check, kubeconfig []byte, cfg runtime.Config, ) (craneEngine, error)
New creates a new CraneEngine from the passed params
func OperatorPolicy ¶
OperatorPolicy returns the names of checks in the operator policy.
func RootExceptionContainerPolicy ¶
RootExceptionContainerPolicy returns the names of checks in the container policy with root exception.
func ScratchContainerPolicy ¶
ScratchContainerPolicy returns the names of checks in the container policy with scratch exception.
Types ¶
type ContainerCheckConfig ¶
type ContainerCheckConfig struct {
DockerConfig, PyxisAPIToken, CertificationProjectID string
}
ContainerCheckConfig contains configuration relevant to an individual check's execution.
type OperatorCheckConfig ¶
type OperatorCheckConfig struct {
ScorecardImage, ScorecardWaitTime, ScorecardNamespace, ScorecardServiceAccount string
IndexImage, DockerConfig, Channel string
Kubeconfig []byte
}
OperatorCheckConfig contains configuration relevant to an individual check's execution.