nkey

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountPath

func AccountPath(mount string, operator string, account string) string

func AccountSigningKeyPath

func AccountSigningKeyPath(mount string, operator string, account string, key string) string

func DeleteAccountSigningKey

func DeleteAccountSigningKey(c *vault.Client, operator string, account string, key string) error

func DeleteOperatorSigningKey

func DeleteOperatorSigningKey(c *vault.Client, operator string, key string) error

func GetSeedFromSecret

func GetSeedFromSecret(namespace string, name string, key string) (string, error)

func OperatorPath

func OperatorPath(mount string, operator string) string

func OperatorSigningKeyPath

func OperatorSigningKeyPath(mount string, operator string, key string) string

func ReadAccount

func ReadAccount(c *vault.Client, operator string, account string) (*natsbackend.NkeyData, error)

func ReadAccountSigningKey

func ReadAccountSigningKey(c *vault.Client, operator string, account string, key string) (*natsbackend.NkeyParameters, bool, error)

func ReadOperator

func ReadOperator(c *vault.Client, operator string) (*natsbackend.NkeyData, error)

func ReadOperatorSigningKey

func ReadOperatorSigningKey(c *vault.Client, operator string, key string) (*natsbackend.NkeyParameters, bool, error)

func ReadUser

func ReadUser(c *vault.Client, operator string, account string, user string) (*natsbackend.NkeyData, error)

func UserPath

func UserPath(mount string, operator string, account string, user string) string

func WriteAccountSigningKey

func WriteAccountSigningKey(c *vault.Client, operator string, account string, key string, params *v1alpha1.AccountSigningKeyParameters) error

func WriteOperatorSigningKey

func WriteOperatorSigningKey(c *vault.Client, operator string, key string, params *v1alpha1.OperatorSigningKeyParameters) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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