validators

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package validators defines the OCI registry rule service and implements the reconcile function for the OCI registry rule.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildValidationResult added in v0.0.11

func BuildValidationResult(rule v1alpha1.OciRegistryRule) *types.ValidationRuleResult

BuildValidationResult builds a default ValidationResult for a given validation type.

Types

type OciRuleService

type OciRuleService struct {
	// contains filtered or unexported fields
}

OciRuleService defines the service for OCI registry rules.

func NewOciRuleService

func NewOciRuleService(log logr.Logger, opts ...Option) *OciRuleService

NewOciRuleService creates a new OCI registry rule service.

func (*OciRuleService) ReconcileOciRegistryRule

func (s *OciRuleService) ReconcileOciRegistryRule(rule v1alpha1.OciRegistryRule) (*types.ValidationRuleResult, error)

ReconcileOciRegistryRule reconciles an OCI registry rule from the OCIValidator config.

type Option added in v0.0.11

type Option func(*OciRuleService)

Option is a functional option for configuring an OciRuleService.

func WithOCIClient added in v0.0.11

func WithOCIClient(client *oci.Client) Option

WithOCIClient sets the OCI client for the OCI registry rule service.

Jump to

Keyboard shortcuts

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