controller

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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.

func (Controller) Sign

func (c Controller) Sign(engineName, roleName string, publicKey []byte) (string, error)

Sign signs given public key with SSH engine and role.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL