Versions in this module Expand all Collapse all v1 v1.31.0 Feb 23, 2024 v1.30.0 Nov 28, 2023 Changes in this version + const DefaultConfigFile + func XORBase64(a, b string) ([]byte, error) + func XORBytes(a, b []byte) ([]byte, error) + type Config struct + InitRootToken string + PreFlightChecks bool + SecretShares int + SecretThreshold int + StoreRootToken bool + type KVService interface + Get func(key string) ([]byte, error) + Set func(key string, value []byte) error + type Vault interface + Active func() (bool, error) + Configure func(config map[string]interface{}) error + Init func() error + Leader func() (bool, error) + LeaderAddress func() (string, error) + RaftInitialized func() (bool, error) + RaftJoin func(string) error + Sealed func() (bool, error) + Unseal func() error + func New(k KVService, cl *api.Client, config Config) (Vault, error)