secrets

package
v0.0.0-...-db8f46d Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(log logr.Logger, mount, prefix string, c *vault.Client) *Store

func (*Store) ReadAccountJWT

func (s *Store) ReadAccountJWT(subject string) (*jwt.AccountClaims, error)

func (*Store) ReadAccountSeed

func (s *Store) ReadAccountSeed(pubKey string) (nkeys.KeyPair, error)

func (*Store) ReadJWT

func (s *Store) ReadJWT(subject string) (jwt.Claims, error)

func (*Store) ReadJWTLiteral

func (s *Store) ReadJWTLiteral(subject string) (string, error)

func (*Store) ReadOperatorJWT

func (s *Store) ReadOperatorJWT(subject string) (*jwt.OperatorClaims, error)

func (*Store) ReadOperatorSeed

func (s *Store) ReadOperatorSeed(pubKey string) (nkeys.KeyPair, error)

func (*Store) ReadUserJWT

func (s *Store) ReadUserJWT(subject string) (*jwt.UserClaims, error)

func (*Store) ReadUserSeed

func (s *Store) ReadUserSeed(pubKey string) (nkeys.KeyPair, error)

func (*Store) WriteAccountJWT

func (s *Store) WriteAccountJWT(claims *jwt.AccountClaims, operatorPubKey string) error

func (*Store) WriteAccountSeed

func (s *Store) WriteAccountSeed(kp nkeys.KeyPair) error

func (*Store) WriteAppCreds

func (s *Store) WriteAppCreds(appName string, creds []byte) error

func (*Store) WriteOperatorJWT

func (s *Store) WriteOperatorJWT(claims *jwt.OperatorClaims, operatorPubKey string) error

func (*Store) WriteOperatorSeed

func (s *Store) WriteOperatorSeed(kp nkeys.KeyPair) error

func (*Store) WriteUserJWT

func (s *Store) WriteUserJWT(claims *jwt.UserClaims, accountPubKey string) error

func (*Store) WriteUserSeed

func (s *Store) WriteUserSeed(kp nkeys.KeyPair) error

Jump to

Keyboard shortcuts

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