engine

package
v0.0.0-...-77eaac7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerPolicy

func ContainerPolicy(ctx context.Context) []string

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

func OperatorPolicy(ctx context.Context) []string

OperatorPolicy returns the names of checks in the operator policy.

func RootExceptionContainerPolicy

func RootExceptionContainerPolicy(ctx context.Context) []string

RootExceptionContainerPolicy returns the names of checks in the container policy with root exception.

func ScratchContainerPolicy

func ScratchContainerPolicy(ctx context.Context) []string

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.

Jump to

Keyboard shortcuts

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