schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXTERNAL_SECRET = "ExternalSecret"
	PUSH_SECRET     = "PushSecret"
	DEPLOYMENT      = "Deployment"
	WORKFLOW        = "WorkflowRunTemplate"
)

Variables

This section is empty.

Functions

func ForceRegister

func ForceRegister(name string, prov Provider)

func RegisterProvider

func RegisterProvider(name string, prov Provider) bool

Types

type ApplyFn

type ApplyFn func(obj client.Object, event events.SecretRotationEvent) error

type Handler

type Handler interface {
	// Method to implement References
	// In the future, `matchStrategy` will just replace the References Method
	References(obj client.Object, secretName string) (bool, error)

	// Method to implement Apply
	// In the future, `updateStrategy` will create a new Apply method
	Apply(obj client.Object, event events.SecretRotationEvent) error

	// Method to implement WaitFor
	// In the future, `waitStrategy` will create a new WaitFor method
	WaitFor(obj client.Object) error

	// Filter implements the filter logic given the selected destination
	// Returns all objects that match the specific destination configuraiton
	Filter(destination *v1alpha1.DestinationToWatch, event events.SecretRotationEvent) ([]client.Object, error)
	WithApply(fn ApplyFn) Handler
	WithReference(fn ReferenceFn) Handler
	WithWaitFor(fn WaitForFn) Handler
}

type Provider

type Provider interface {
	NewHandler(ctx context.Context, client client.Client, destination v1alpha1.DestinationToWatch) Handler
}

func GetProvider

func GetProvider(name string) Provider

type ReferenceFn

type ReferenceFn func(obj client.Object, secretName string) (bool, error)

type WaitForFn

type WaitForFn func(obj client.Object) error

Jump to

Keyboard shortcuts

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