model

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key interface {
	Data() []byte
}

Key represents a security key.

type PrivateKey

type PrivateKey interface {
	Key
	IsPrivate()
}

PrivateKey represents a public key.

type PublicKey

type PublicKey interface {
	Key
	IsPublic()
}

PublicKey represents a public key.

type Secret

type Secret struct {
	ID            string
	EncryptedData []byte
	DecryptedData []byte
}

Secret represents a secret. If []byte data is nil, it means that the data has not been initialized or missing (different from being empty).

type SecretRegistry

type SecretRegistry struct {
	EncryptedSecrets map[string]struct{}
}

SecretRegistry represents the registry of secrets that is used to track information about the actions made on secrets.

Jump to

Keyboard shortcuts

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