kprovider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

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) LoadPrivateKey

func (w EnvironmentVariableKProvider) LoadPrivateKey(_ string, context string, keyPair string) (*rsa.PrivateKey, error)

type KeyProvider

type KeyProvider interface {
	LoadPrivateKey(uid string, context string, keyPair string) (*rsa.PrivateKey, error)
}

func NewEnvironmentVariableKProvider

func NewEnvironmentVariableKProvider() KeyProvider

func NewLocalFileSystemKProvider

func NewLocalFileSystemKProvider() KeyProvider

type LocalFileSystemKProvider

type LocalFileSystemKProvider struct {
	FileSystem afero.Fs
}

func (LocalFileSystemKProvider) LoadPrivateKey

func (w LocalFileSystemKProvider) LoadPrivateKey(uid string, context string, keyPair string) (*rsa.PrivateKey, error)

Jump to

Keyboard shortcuts

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