engine

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 36 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 KonfluxContainerPolicy

func KonfluxContainerPolicy(ctx context.Context) []string

KonfluxContainerPolicy returns the names of checks to be used in a konflux pipeline

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 ScratchNonRootContainerPolicy

func ScratchNonRootContainerPolicy(ctx context.Context) []string

ScratchNonRootContainerPolicy returns the names of checks in the container policy with scratch exception.

func ScratchRootContainerPolicy

func ScratchRootContainerPolicy(ctx context.Context) []string

ScratchRootContainerPolicy returns the names of checks in the container policy with scratch and root exception.

Types

type ContainerCheckConfig

type ContainerCheckConfig struct {
	DockerConfig, PyxisAPIToken, CertificationProjectID, PyxisHost 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
	CSVTimeout                                                                     time.Duration
	SubscriptionTimeout                                                            time.Duration
}

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