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
func (b *ECDSAPublicKeyMock) Copy() ecdsa.PublicKey
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) Copy ¶
func (b *RSAPublicKeyMock) Copy() rsa.PublicKey
Copy returns a shallow copy o the RSA public key
Click to show internal directories.
Click to hide internal directories.