secret

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package secret contains functions for handling secrets, like public/private keys stored outside of goiardi.

Index

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
}

Jump to

Keyboard shortcuts

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