Documentation ¶
Index ¶
- type FakeKeyCertBundle
- func (b *FakeKeyCertBundle) GetAll() (cert *x509.Certificate, privKey *crypto.PrivateKey, ...)
- func (b *FakeKeyCertBundle) GetAllPem() (certBytes, privKeyBytes, certChainBytes, rootCertBytes []byte)
- func (b *FakeKeyCertBundle) VerifyAndSetAll(certBytes, privKeyBytes, certChainBytes, rootCertBytes []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeKeyCertBundle ¶
type FakeKeyCertBundle struct { CertBytes []byte Cert *x509.Certificate PrivKeyBytes []byte PrivKey *crypto.PrivateKey CertChainBytes []byte RootCertBytes []byte ReturnErr error }
FakeKeyCertBundle is a mocked KeyCertBundle for testing.
func (*FakeKeyCertBundle) GetAll ¶
func (b *FakeKeyCertBundle) GetAll() (cert *x509.Certificate, privKey *crypto.PrivateKey, certChainBytes, rootCertBytes []byte)
GetAll returns all key/cert in KeyCertBundle together. Getting all values together avoids inconsistancy.
func (*FakeKeyCertBundle) GetAllPem ¶
func (b *FakeKeyCertBundle) GetAllPem() (certBytes, privKeyBytes, certChainBytes, rootCertBytes []byte)
GetAllPem returns all key/cert PEMs in KeyCertBundle together. Getting all values together avoids inconsistancy.
func (*FakeKeyCertBundle) VerifyAndSetAll ¶
func (b *FakeKeyCertBundle) VerifyAndSetAll(certBytes, privKeyBytes, certChainBytes, rootCertBytes []byte) error
VerifyAndSetAll verifies the key/certs, and sets all key/certs in KeyCertBundle together. Setting all values together avoids inconsistancy.
Click to show internal directories.
Click to hide internal directories.