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
WithOCIClient sets the OCI client for the OCI registry rule service.
Click to show internal directories.
Click to hide internal directories.