Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector interface { // Request executes a command on the HSM and returns the binary response Request(command *commands.CommandMessage) ([]byte, error) // GetStatus requests the status of the HSM connector (not working for direct USB) GetStatus() (*StatusResponse, error) }
Connector implements a simple request interface with a YubiHSM2
type HTTPConnector ¶
type HTTPConnector struct {
URL string
}
HTTPConnector implements the HTTP based connection with the YubiHSM2 connector
func NewHTTPConnector ¶
func NewHTTPConnector(url string) *HTTPConnector
NewHTTPConnector creates a new instance of HTTPConnector
func (*HTTPConnector) GetStatus ¶
func (c *HTTPConnector) GetStatus() (*StatusResponse, error)
GetStatus requests the status of the HSM connector route /connector/status
func (*HTTPConnector) Request ¶
func (c *HTTPConnector) Request(command *commands.CommandMessage) ([]byte, error)
Request encodes and executes a command on the HSM and returns the binary response
Click to show internal directories.
Click to hide internal directories.