keybrokermock

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 2 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 ECDSAPublicKeyMock added in v0.21.3

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

ECDSAPublicKeyMock defines the implementation for brokering an ECDSA public key during testing

func MockECDSAPublicKey added in v0.21.3

func MockECDSAPublicKey(key *ecdsa.PublicKey) *ECDSAPublicKeyMock

MockECDSAPublicKey resolves any source and returns a mocked ECDSAPublicKey Copier and Renewer

func (*ECDSAPublicKeyMock) Close added in v0.21.3

func (b *ECDSAPublicKeyMock) Close()

Close is a no-op

func (*ECDSAPublicKeyMock) Copy added in v0.21.3

Copy returns a shallow copy o the ECDSA public key

func (*ECDSAPublicKeyMock) Renew added in v0.21.3

func (b *ECDSAPublicKeyMock) Renew()

Renew is a no-op

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 RSAPublicKey Copier 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