Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentVariableKProvider ¶
type EnvironmentVariableKProvider struct {
Environment m2mams.Environment
}
func (EnvironmentVariableKProvider) LoadKeyUid ¶
func (w EnvironmentVariableKProvider) LoadKeyUid(context string, keyPair string) (string, error)
func (EnvironmentVariableKProvider) LoadPrivateKey ¶
func (w EnvironmentVariableKProvider) LoadPrivateKey(context string, keyPair string) (*rsa.PrivateKey, error)
type KeyProvider ¶
type KeyProvider interface { LoadPrivateKey(context string, keyPair string) (*rsa.PrivateKey, error) LoadKeyUid(context string, keyPair string) (string, error) }
func NewEnvironmentVariableKProvider ¶
func NewEnvironmentVariableKProvider() KeyProvider
func NewLocalFileSystemKProvider ¶
func NewLocalFileSystemKProvider() KeyProvider
type LocalFileSystemKProvider ¶
func (LocalFileSystemKProvider) LoadKeyUid ¶
func (w LocalFileSystemKProvider) LoadKeyUid(context string, keyPair string) (string, error)
func (LocalFileSystemKProvider) LoadPrivateKey ¶
func (w LocalFileSystemKProvider) LoadPrivateKey(context string, keyPair string) (*rsa.PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.