store

package
v1.14.0-rc.1 Latest Latest
Warning

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

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

Documentation

Overview

Package store implements secret stores.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteOption

type DeleteOption func(ctx context.Context, secret *Secret) error

An DeleteOption is called before deleting the secret.

type KeyValues

type KeyValues map[string][]byte

KeyValues is a map with sensitive values.

type ScopedName

type ScopedName struct {
	Name  string
	Scope string
}

ScopedName is scoped name of a secret.

type Secret

type Secret struct {
	ScopedName
	Metadata *v1.ConnectionSecretMetadata
	Data     KeyValues
}

A Secret is an entity representing a set of sensitive Key Values.

func NewSecret

func NewSecret(so SecretOwner, data KeyValues) *Secret

NewSecret returns a new Secret owned by supplied SecretOwner and with supplied data.

func (*Secret) GetLabels

func (s *Secret) GetLabels() map[string]string

GetLabels returns the labels of the secret.

func (*Secret) GetOwner

func (s *Secret) GetOwner() string

GetOwner returns the UID of the owner of secret.

type SecretOwner

type SecretOwner interface {
	resource.Object

	resource.ConnectionDetailsPublisherTo
}

SecretOwner owns a Secret.

type WriteOption

type WriteOption func(ctx context.Context, current, desired *Secret) error

A WriteOption is called before writing the desired secret over the current object.

Directories

Path Synopsis
Package kubernetes implements a secret store backed by Kubernetes Secrets.
Package kubernetes implements a secret store backed by Kubernetes Secrets.
Package plugin implements a gRPC client for external secret store plugins.
Package plugin implements a gRPC client for external secret store plugins.
fake
Package fake is a fake ExternalSecretStorePluginServiceClient.
Package fake is a fake ExternalSecretStorePluginServiceClient.

Jump to

Keyboard shortcuts

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