Documentation ¶
Index ¶
- type Controller
- func (c Controller) CreateCACertificate(engineName string) error
- func (c Controller) CreateRole(engineName, roleName string) error
- func (c Controller) EnableSSHEngine(path string) error
- func (c Controller) GetCACertificate(engineName string) (string, error)
- func (c Controller) Sign(engineName, roleName string, publicKey []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
API vault.APIInterface
}
Controller is main struct of Vault.
func NewController ¶
func NewController(api vault.APIInterface) *Controller
NewController is a factory to create a Controller.
func (Controller) CreateCACertificate ¶
func (c Controller) CreateCACertificate(engineName string) error
CreateCACertificate creates CA certificate in ssh engine.
func (Controller) CreateRole ¶
func (c Controller) CreateRole(engineName, roleName string) error
CreateRole creates a role in ssh engine.
func (Controller) EnableSSHEngine ¶
func (c Controller) EnableSSHEngine(path string) error
EnableSSHEngine enables SSH engine with a path.
func (Controller) GetCACertificate ¶
func (c Controller) GetCACertificate(engineName string) (string, error)
GetCACertificate gets CA certificate from ssh engine.
Click to show internal directories.
Click to hide internal directories.