Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(path string, init *InitConfig, seal *SealConfig) (*sys.Vault, []sys.UnsealKey, error)
Init initializes a stateful KES deployment within the given path using the InitConfig and SealConfig.
It returns an initialized Vault and a set of UnsealKeys to unseal the Vault in the future.
func Open ¶
Open returns a new Vault that reads its initial and seal configuration from config files within the given path.
func WriteInitConfig ¶
func WriteInitConfig(filename string, config *InitConfig) error
WriteInitConfig writes the YAML representation of the given InitConfig to a file.
Types ¶
type InitConfig ¶
type InitConfig struct { Version string Address yml.String PrivateKey yml.String Certificate yml.String Password yml.String VerifyClientCerts yml.Bool ProxyIdentities []yml.Identity ProxyClientCert yml.String }
InitConfig contains the initial configuration for a stateful KES deployment.
func ReadInitConfig ¶
func ReadInitConfig(filename string) (*InitConfig, error)
ReadInitConfig reads and parses the InitConfig YAML representation from the given file.
Click to show internal directories.
Click to hide internal directories.