store

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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