secretstores

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationListSecrets = "LISTSECRETS"
)
View Source
const (
	// ResourceTypeName is the resource type name for secret stores.
	ResourceTypeName = "Applications.Core/secretStores"
)

Variables

This section is empty.

Functions

func DeleteRadiusSecret

func DeleteRadiusSecret(ctx context.Context, oldResource *datamodel.SecretStore, options *controller.Options) (rest.Response, error)

DeleteRadiusSecret deletes the Kubernetes secret associated with the given secret store if it is a Radius managed resource.

func NewListSecrets

func NewListSecrets(opts ctrl.Options) (ctrl.Controller, error)

NewListSecrets creates a new controller for listing secrets from the secret store.

func UpsertSecret

func UpsertSecret(ctx context.Context, newResource, old *datamodel.SecretStore, options *controller.Options) (rest.Response, error)

UpsertSecret creates or updates a Kubernetes secret based on the incoming request and returns the secret's location in the output resource.

func ValidateAndMutateRequest

func ValidateAndMutateRequest(ctx context.Context, newResource *datamodel.SecretStore, oldResource *datamodel.SecretStore, options *controller.Options) (rest.Response, error)

ValidateAndMutateRequest checks the type and encoding of the secret store, and ensures that the secret store data is valid. If any of these checks fail, a BadRequestResponse is returned.

Types

type ListSecrets

type ListSecrets struct {
	ctrl.Operation[*datamodel.SecretStore, datamodel.SecretStore]
}

ListSecrets is the controller implementing listSecret custom action for Applications.Core/secretStores.

func (*ListSecrets) Run

Run retrieves the values of the referenced secret from Kubernetes and returns them in a response. If the secret is not found, an error is returned. Currently, we support only kubernetes secret store.

Jump to

Keyboard shortcuts

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