store

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

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
kv

Jump to

Keyboard shortcuts

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