keybrokermock

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package keybrokermock implements no-op mocks for the keys package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RSAPublicKeyMock

type RSAPublicKeyMock struct {
	// contains filtered or unexported fields
}

RSAPublicKeyMock defines the implementation for brokering an RSA public key during testing

func MockRSAPublicKey

func MockRSAPublicKey(key rsa.PublicKey) *RSAPublicKeyMock

MockRSAPublicKey resolves any source and returns a mocked RSAPublicKeyCopier and Renewer

func (*RSAPublicKeyMock) Close

func (b *RSAPublicKeyMock) Close()

Close is a no-op

func (*RSAPublicKeyMock) Copy

func (b *RSAPublicKeyMock) Copy() rsa.PublicKey

Copy returns a shallow copy o the RSA public key

func (*RSAPublicKeyMock) Renew

func (b *RSAPublicKeyMock) Renew()

Renew is a no-op

Jump to

Keyboard shortcuts

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