mocks

package
v0.0.0-...-7aca128 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateUtility

type CertificateUtility struct {
	mock.Mock
}

CertificateUtility is an autogenerated mock type for the CertificateUtility type

func NewCertificateUtility

func NewCertificateUtility(t interface {
	mock.TestingT
	Cleanup(func())
}) *CertificateUtility

NewCertificateUtility creates a new instance of CertificateUtility. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CertificateUtility) AddCertificateHeaderAndFooter

func (_m *CertificateUtility) AddCertificateHeaderAndFooter(crtRaw []byte) []byte

AddCertificateHeaderAndFooter provides a mock function with given fields: crtRaw

func (*CertificateUtility) CheckCSRValues

CheckCSRValues provides a mock function with given fields: csr, subject

func (*CertificateUtility) LoadCSR

func (_m *CertificateUtility) LoadCSR(encodedData []byte) (*x509.CertificateRequest, apperrors.AppError)

LoadCSR provides a mock function with given fields: encodedData

func (*CertificateUtility) LoadCert

func (_m *CertificateUtility) LoadCert(encodedData []byte) (*x509.Certificate, apperrors.AppError)

LoadCert provides a mock function with given fields: encodedData

func (*CertificateUtility) LoadKey

func (_m *CertificateUtility) LoadKey(encodedData []byte) (*rsa.PrivateKey, apperrors.AppError)

LoadKey provides a mock function with given fields: encodedData

func (*CertificateUtility) SignCSR

SignCSR provides a mock function with given fields: caCrt, csr, caKey

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Service) SignCSR

SignCSR provides a mock function with given fields: ctx, encodedCSR, subject

Jump to

Keyboard shortcuts

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