verifiers

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveVerifiers

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

ActiveVerifiers implements VerifierManger interface.

func (*ActiveVerifiers) AddVerifier

func (v *ActiveVerifiers) AddVerifier(scope, verifierName string, verifier vr.ReferenceVerifier)

AddVerifier fulfills the VerifierManager interface. It adds the given verifier under the given scope.

func (*ActiveVerifiers) DeleteVerifier

func (v *ActiveVerifiers) DeleteVerifier(scope, verifierName string)

DeleteVerifier fulfills the VerifierManager interface. It deletes the verfier of the given name under the given scope.

func (*ActiveVerifiers) GetVerifiers

func (v *ActiveVerifiers) GetVerifiers(scope string) []vr.ReferenceVerifier

GetVerifiers implements the VerifierManager interface. It returns a list of verifiers for the given scope. If no verifiers are found for the given scope, it returns cluster-wide verifiers.

type VerifierManager

type VerifierManager interface {
	// GetVerifiers returns verifiers under the given scope.
	GetVerifiers(scope string) []vr.ReferenceVerifier

	// AddVerifier adds a verifier to the given scope.
	AddVerifier(scope, verifierName string, verifier vr.ReferenceVerifier)

	// DeleteVerifier deletes a verifier from the given scope.
	DeleteVerifier(scope, verifierName string)
}

VerifierManager is an interface that defines the methods for managing verifiers across different scopes.

func NewActiveVerifiers

func NewActiveVerifiers() VerifierManager

Jump to

Keyboard shortcuts

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