oci

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildValidationResult added in v0.0.13

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

BuildValidationResult builds a default ValidationResult for a given validation type.

Types

type Option

type Option func(*RuleService)

Option is a functional option for configuring a RuleService.

func WithOCIClient added in v0.0.13

func WithOCIClient(client *ocic.Client) Option

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

type RuleService added in v0.0.13

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

RuleService defines the service for OCI registry rules.

func NewRuleService added in v0.0.13

func NewRuleService(log logr.Logger, opts ...Option) *RuleService

NewRuleService creates a new OCI registry rule service.

func (*RuleService) ReconcileOciRegistryRule added in v0.0.13

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

ReconcileOciRegistryRule reconciles an OCI registry rule from the OCIValidator config.

Jump to

Keyboard shortcuts

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