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 KonfluxContainerPolicy(ctx context.Context) []string
- 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 ScratchNonRootContainerPolicy(ctx context.Context) []string
- func ScratchRootContainerPolicy(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 KonfluxContainerPolicy ¶
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 ¶
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 ScratchNonRootContainerPolicy ¶
ScratchNonRootContainerPolicy returns the names of checks in the container policy with scratch exception.
func ScratchRootContainerPolicy ¶
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.