kprovider

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyProvider

type KeyProvider interface {
	LoadPublicKey(uid string, keyPair string) (*rsa.PublicKey, error)
}

func NewLocalFileSystemKProvider

func NewLocalFileSystemKProvider(path string) KeyProvider

type LocalFileSystemKProvider

type LocalFileSystemKProvider struct {
	FileSystem afero.Fs
	Path       string
}

func (LocalFileSystemKProvider) LoadPublicKey

func (w LocalFileSystemKProvider) LoadPublicKey(uid string, keyPair string) (*rsa.PublicKey, error)

Jump to

Keyboard shortcuts

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