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
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.
Click to show internal directories.
Click to hide internal directories.