Documentation ¶
Index ¶
- Variables
- func AcceptNKey(id string) error
- func ConfigureNats() nats_server.Options
- func DeleteNKey(id string) error
- func DenyNKey(id string) error
- func FetchRootCA(filename string) error
- func GetNKey(id string) (string, error)
- func GetNKeysByType(set string) types.KeySet
- func GetPubNKey(keyType PubKeyType) (string, error)
- func GetSproutID() string
- func IsValidSproutID(id string) bool
- func ListNKeysByType() types.KeysByType
- func LoadRootCA(binary string) error
- func NKeyExists(id string, nkey string) (Registered bool, Matches bool)
- func PutNKey(id string) error
- func RejectNKey(id string, nkey string) error
- func ReloadNKeys() error
- func RootCACached(binary string) bool
- func SetNATSServer(s *nats_server.Server)
- func SetupPKIFarmer()
- func SetupPKISprout()
- func UnacceptNKey(id string, nkey string) error
- type PubKeyType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NatsServer *nats_server.Server NatsOpts *nats_server.Options )
Functions ¶
func AcceptNKey ¶
func ConfigureNats ¶
func ConfigureNats() nats_server.Options
func DeleteNKey ¶
func FetchRootCA ¶ added in v0.0.6
func GetNKeysByType ¶
func GetPubNKey ¶
func GetPubNKey(keyType PubKeyType) (string, error)
func GetSproutID ¶
func GetSproutID() string
func IsValidSproutID ¶
func ListNKeysByType ¶
func ListNKeysByType() types.KeysByType
func LoadRootCA ¶
func RejectNKey ¶
func ReloadNKeys ¶
func ReloadNKeys() error
func RootCACached ¶
func SetNATSServer ¶
func SetNATSServer(s *nats_server.Server)
func SetupPKIFarmer ¶
func SetupPKIFarmer()
func SetupPKISprout ¶
func SetupPKISprout()
func UnacceptNKey ¶
Types ¶
type PubKeyType ¶ added in v0.0.3
type PubKeyType int
const ( SproutPubNKey PubKeyType = iota FarmerPubNKey CliPubNKey )
Click to show internal directories.
Click to hide internal directories.