Documentation
¶
Index ¶
- Constants
- type API
- func (a API) CreateCACertificate(engineName string) error
- func (a API) CreateRole(engineName, roleName string) error
- func (a API) EnableSSHEngine(engineName string) error
- func (a API) GetCACertificate(engineName string) (string, error)
- func (a API) SealStatus() (api.SealStatusResponse, error)
- func (a API) Sign(engineName, roleName, publicKey string) (string, error)
- func (a API) Unseal(shard string) (api.SealStatusResponse, error)
Constants ¶
View Source
const ( // SSHEngineDefaultName Default engine name. SSHEngineDefaultName = "ssh-test" // SSHEngineDefaultRoleName Default role name. SSHEngineDefaultRoleName = "general" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is main struct of Vault.
func (API) CreateCACertificate ¶
CreateCACertificate creates CA certificate in ssh engine.
func (API) CreateRole ¶
CreateRole creates a role in ssh engine.
func (API) EnableSSHEngine ¶
EnableSSHEngine enables SSH engine with a path.
func (API) GetCACertificate ¶
GetCACertificate gets CA certificate from ssh engine.
func (API) SealStatus ¶
func (a API) SealStatus() (api.SealStatusResponse, error)
SealStatus returns status of seal.
Click to show internal directories.
Click to hide internal directories.