Documentation ¶
Overview ¶
Package secret contains functions for handling secrets, like public/private keys stored outside of goiardi.
Index ¶
- Constants
- func ConfigureSecretStore() error
- func DeletePasswdHash(c ActorKeyer) error
- func DeletePublicKey(c ActorKeyer) error
- func GetPasswdHash(c ActorKeyer) (string, error)
- func GetPublicKey(c ActorKeyer) (string, error)
- func GetSigningKey(path string) (*rsa.PrivateKey, error)
- func SetPasswdHash(c ActorKeyer, hash string) error
- func SetPublicKey(c ActorKeyer, pubKey string) error
- type ActorKeyer
Constants ¶
View Source
const MaxStaleAgeSeconds = 3600 // configurable later, but make it an hour for
View Source
const StaleTryAgainSeconds = 60 // try stale values again in a minute
now
Variables ¶
This section is empty.
Functions ¶
func ConfigureSecretStore ¶
func ConfigureSecretStore() error
func DeletePasswdHash ¶
func DeletePasswdHash(c ActorKeyer) error
func DeletePublicKey ¶
func DeletePublicKey(c ActorKeyer) error
func GetPasswdHash ¶
func GetPasswdHash(c ActorKeyer) (string, error)
func GetPublicKey ¶
func GetPublicKey(c ActorKeyer) (string, error)
func GetSigningKey ¶
func GetSigningKey(path string) (*rsa.PrivateKey, error)
func SetPasswdHash ¶
func SetPasswdHash(c ActorKeyer, hash string) error
func SetPublicKey ¶
func SetPublicKey(c ActorKeyer, pubKey string) error
Types ¶
type ActorKeyer ¶
type ActorKeyer interface { PublicKey() string SetPublicKey(interface{}) error util.GoiardiObj }
Click to show internal directories.
Click to hide internal directories.