mocks

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 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 Agent added in v0.18.0

type Agent struct {
	mock.Mock
}

Agent is an autogenerated mock type for the Agent type

func NewAgent added in v0.18.0

func NewAgent(t interface {
	mock.TestingT
	Cleanup(func())
}) *Agent

NewAgent creates a new instance of Agent. 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 (*Agent) EXPECT added in v0.18.0

func (_m *Agent) EXPECT() *Agent_Expecter

func (*Agent) GetCA added in v0.18.0

func (_mock *Agent) GetCA() ([]byte, error)

GetCA provides a mock function for the type Agent

func (*Agent) GetCAChain added in v0.18.0

func (_mock *Agent) GetCAChain() ([]byte, error)

GetCAChain provides a mock function for the type Agent

func (*Agent) GetCRL added in v0.18.0

func (_mock *Agent) GetCRL() ([]byte, error)

GetCRL provides a mock function for the type Agent

func (*Agent) Issue added in v0.18.0

func (_mock *Agent) Issue(ttl string, ipAddrs []string, options certs.SubjectOptions) (certs.Certificate, error)

Issue provides a mock function for the type Agent

func (*Agent) ListCerts added in v0.18.0

func (_mock *Agent) ListCerts(pm certs.PageMetadata) (certs.CertificatePage, error)

ListCerts provides a mock function for the type Agent

func (*Agent) OCSP added in v0.18.0

func (_mock *Agent) OCSP(serialNumber string, ocspRequestDER []byte) ([]byte, error)

OCSP provides a mock function for the type Agent

func (*Agent) Renew added in v0.18.0

func (_mock *Agent) Renew(cert certs.Certificate, increment string) (certs.Certificate, error)

Renew provides a mock function for the type Agent

func (*Agent) Revoke added in v0.18.0

func (_mock *Agent) Revoke(serialNumber string) error

Revoke provides a mock function for the type Agent

func (*Agent) SignCSR added in v0.18.0

func (_mock *Agent) SignCSR(csr []byte, ttl string) (certs.Certificate, error)

SignCSR provides a mock function for the type Agent

func (*Agent) View added in v0.18.0

func (_mock *Agent) View(serialNumber string) (certs.Certificate, error)

View provides a mock function for the type Agent

type Agent_Expecter added in v0.18.0

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

func (*Agent_Expecter) GetCA added in v0.18.0

func (_e *Agent_Expecter) GetCA() *Agent_GetCA_Call

GetCA is a helper method to define mock.On call

func (*Agent_Expecter) GetCAChain added in v0.18.0

func (_e *Agent_Expecter) GetCAChain() *Agent_GetCAChain_Call

GetCAChain is a helper method to define mock.On call

func (*Agent_Expecter) GetCRL added in v0.18.0

func (_e *Agent_Expecter) GetCRL() *Agent_GetCRL_Call

GetCRL is a helper method to define mock.On call

func (*Agent_Expecter) Issue added in v0.18.0

func (_e *Agent_Expecter) Issue(ttl interface{}, ipAddrs interface{}, options interface{}) *Agent_Issue_Call

Issue is a helper method to define mock.On call

  • ttl string
  • ipAddrs []string
  • options certs.SubjectOptions

func (*Agent_Expecter) ListCerts added in v0.18.0

func (_e *Agent_Expecter) ListCerts(pm interface{}) *Agent_ListCerts_Call

ListCerts is a helper method to define mock.On call

  • pm certs.PageMetadata

func (*Agent_Expecter) OCSP added in v0.18.0

func (_e *Agent_Expecter) OCSP(serialNumber interface{}, ocspRequestDER interface{}) *Agent_OCSP_Call

OCSP is a helper method to define mock.On call

  • serialNumber string
  • ocspRequestDER []byte

func (*Agent_Expecter) Renew added in v0.18.0

func (_e *Agent_Expecter) Renew(cert interface{}, increment interface{}) *Agent_Renew_Call

Renew is a helper method to define mock.On call

  • cert certs.Certificate
  • increment string

func (*Agent_Expecter) Revoke added in v0.18.0

func (_e *Agent_Expecter) Revoke(serialNumber interface{}) *Agent_Revoke_Call

Revoke is a helper method to define mock.On call

  • serialNumber string

func (*Agent_Expecter) SignCSR added in v0.18.0

func (_e *Agent_Expecter) SignCSR(csr interface{}, ttl interface{}) *Agent_SignCSR_Call

SignCSR is a helper method to define mock.On call

  • csr []byte
  • ttl string

func (*Agent_Expecter) View added in v0.18.0

func (_e *Agent_Expecter) View(serialNumber interface{}) *Agent_View_Call

View is a helper method to define mock.On call

  • serialNumber string

type Agent_GetCAChain_Call added in v0.18.0

type Agent_GetCAChain_Call struct {
	*mock.Call
}

Agent_GetCAChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCAChain'

func (*Agent_GetCAChain_Call) Return added in v0.18.0

func (_c *Agent_GetCAChain_Call) Return(bytes []byte, err error) *Agent_GetCAChain_Call

func (*Agent_GetCAChain_Call) Run added in v0.18.0

func (_c *Agent_GetCAChain_Call) Run(run func()) *Agent_GetCAChain_Call

func (*Agent_GetCAChain_Call) RunAndReturn added in v0.18.0

func (_c *Agent_GetCAChain_Call) RunAndReturn(run func() ([]byte, error)) *Agent_GetCAChain_Call

type Agent_GetCA_Call added in v0.18.0

type Agent_GetCA_Call struct {
	*mock.Call
}

Agent_GetCA_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCA'

func (*Agent_GetCA_Call) Return added in v0.18.0

func (_c *Agent_GetCA_Call) Return(bytes []byte, err error) *Agent_GetCA_Call

func (*Agent_GetCA_Call) Run added in v0.18.0

func (_c *Agent_GetCA_Call) Run(run func()) *Agent_GetCA_Call

func (*Agent_GetCA_Call) RunAndReturn added in v0.18.0

func (_c *Agent_GetCA_Call) RunAndReturn(run func() ([]byte, error)) *Agent_GetCA_Call

type Agent_GetCRL_Call added in v0.18.0

type Agent_GetCRL_Call struct {
	*mock.Call
}

Agent_GetCRL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCRL'

func (*Agent_GetCRL_Call) Return added in v0.18.0

func (_c *Agent_GetCRL_Call) Return(bytes []byte, err error) *Agent_GetCRL_Call

func (*Agent_GetCRL_Call) Run added in v0.18.0

func (_c *Agent_GetCRL_Call) Run(run func()) *Agent_GetCRL_Call

func (*Agent_GetCRL_Call) RunAndReturn added in v0.18.0

func (_c *Agent_GetCRL_Call) RunAndReturn(run func() ([]byte, error)) *Agent_GetCRL_Call

type Agent_Issue_Call added in v0.18.0

type Agent_Issue_Call struct {
	*mock.Call
}

Agent_Issue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Issue'

func (*Agent_Issue_Call) Return added in v0.18.0

func (_c *Agent_Issue_Call) Return(certificate certs.Certificate, err error) *Agent_Issue_Call

func (*Agent_Issue_Call) Run added in v0.18.0

func (_c *Agent_Issue_Call) Run(run func(ttl string, ipAddrs []string, options certs.SubjectOptions)) *Agent_Issue_Call

func (*Agent_Issue_Call) RunAndReturn added in v0.18.0

func (_c *Agent_Issue_Call) RunAndReturn(run func(ttl string, ipAddrs []string, options certs.SubjectOptions) (certs.Certificate, error)) *Agent_Issue_Call

type Agent_ListCerts_Call added in v0.18.0

type Agent_ListCerts_Call struct {
	*mock.Call
}

Agent_ListCerts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCerts'

func (*Agent_ListCerts_Call) Return added in v0.18.0

func (_c *Agent_ListCerts_Call) Return(certificatePage certs.CertificatePage, err error) *Agent_ListCerts_Call

func (*Agent_ListCerts_Call) Run added in v0.18.0

func (*Agent_ListCerts_Call) RunAndReturn added in v0.18.0

type Agent_OCSP_Call added in v0.18.0

type Agent_OCSP_Call struct {
	*mock.Call
}

Agent_OCSP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OCSP'

func (*Agent_OCSP_Call) Return added in v0.18.0

func (_c *Agent_OCSP_Call) Return(bytes []byte, err error) *Agent_OCSP_Call

func (*Agent_OCSP_Call) Run added in v0.18.0

func (_c *Agent_OCSP_Call) Run(run func(serialNumber string, ocspRequestDER []byte)) *Agent_OCSP_Call

func (*Agent_OCSP_Call) RunAndReturn added in v0.18.0

func (_c *Agent_OCSP_Call) RunAndReturn(run func(serialNumber string, ocspRequestDER []byte) ([]byte, error)) *Agent_OCSP_Call

type Agent_Renew_Call added in v0.18.0

type Agent_Renew_Call struct {
	*mock.Call
}

Agent_Renew_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Renew'

func (*Agent_Renew_Call) Return added in v0.18.0

func (_c *Agent_Renew_Call) Return(certificate certs.Certificate, err error) *Agent_Renew_Call

func (*Agent_Renew_Call) Run added in v0.18.0

func (_c *Agent_Renew_Call) Run(run func(cert certs.Certificate, increment string)) *Agent_Renew_Call

func (*Agent_Renew_Call) RunAndReturn added in v0.18.0

func (_c *Agent_Renew_Call) RunAndReturn(run func(cert certs.Certificate, increment string) (certs.Certificate, error)) *Agent_Renew_Call

type Agent_Revoke_Call added in v0.18.0

type Agent_Revoke_Call struct {
	*mock.Call
}

Agent_Revoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Revoke'

func (*Agent_Revoke_Call) Return added in v0.18.0

func (_c *Agent_Revoke_Call) Return(err error) *Agent_Revoke_Call

func (*Agent_Revoke_Call) Run added in v0.18.0

func (_c *Agent_Revoke_Call) Run(run func(serialNumber string)) *Agent_Revoke_Call

func (*Agent_Revoke_Call) RunAndReturn added in v0.18.0

func (_c *Agent_Revoke_Call) RunAndReturn(run func(serialNumber string) error) *Agent_Revoke_Call

type Agent_SignCSR_Call added in v0.18.0

type Agent_SignCSR_Call struct {
	*mock.Call
}

Agent_SignCSR_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignCSR'

func (*Agent_SignCSR_Call) Return added in v0.18.0

func (_c *Agent_SignCSR_Call) Return(certificate certs.Certificate, err error) *Agent_SignCSR_Call

func (*Agent_SignCSR_Call) Run added in v0.18.0

func (_c *Agent_SignCSR_Call) Run(run func(csr []byte, ttl string)) *Agent_SignCSR_Call

func (*Agent_SignCSR_Call) RunAndReturn added in v0.18.0

func (_c *Agent_SignCSR_Call) RunAndReturn(run func(csr []byte, ttl string) (certs.Certificate, error)) *Agent_SignCSR_Call

type Agent_View_Call added in v0.18.0

type Agent_View_Call struct {
	*mock.Call
}

Agent_View_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'View'

func (*Agent_View_Call) Return added in v0.18.0

func (_c *Agent_View_Call) Return(certificate certs.Certificate, err error) *Agent_View_Call

func (*Agent_View_Call) Run added in v0.18.0

func (_c *Agent_View_Call) Run(run func(serialNumber string)) *Agent_View_Call

func (*Agent_View_Call) RunAndReturn added in v0.18.0

func (_c *Agent_View_Call) RunAndReturn(run func(serialNumber string) (certs.Certificate, error)) *Agent_View_Call

type MockCertsServiceClient

type MockCertsServiceClient struct {
	mock.Mock
}

MockCertsServiceClient is an autogenerated mock type for the CertsServiceClient type

func NewMockCertsServiceClient

func NewMockCertsServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCertsServiceClient

NewMockCertsServiceClient creates a new instance of MockCertsServiceClient. 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 (*MockCertsServiceClient) EXPECT

func (*MockCertsServiceClient) GetEntityID

func (_mock *MockCertsServiceClient) GetEntityID(ctx context.Context, in *certs.EntityReq, opts ...grpc.CallOption) (*certs.EntityRes, error)

GetEntityID provides a mock function for the type MockCertsServiceClient

func (*MockCertsServiceClient) RevokeCerts

func (_mock *MockCertsServiceClient) RevokeCerts(ctx context.Context, in *certs.RevokeReq, opts ...grpc.CallOption) (*emptypb.Empty, error)

RevokeCerts provides a mock function for the type MockCertsServiceClient

type MockCertsServiceClient_Expecter

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

func (*MockCertsServiceClient_Expecter) GetEntityID

func (_e *MockCertsServiceClient_Expecter) GetEntityID(ctx interface{}, in interface{}, opts ...interface{}) *MockCertsServiceClient_GetEntityID_Call

GetEntityID is a helper method to define mock.On call

  • ctx context.Context
  • in *certs.EntityReq
  • opts ...grpc.CallOption

func (*MockCertsServiceClient_Expecter) RevokeCerts

func (_e *MockCertsServiceClient_Expecter) RevokeCerts(ctx interface{}, in interface{}, opts ...interface{}) *MockCertsServiceClient_RevokeCerts_Call

RevokeCerts is a helper method to define mock.On call

  • ctx context.Context
  • in *certs.RevokeReq
  • opts ...grpc.CallOption

type MockCertsServiceClient_GetEntityID_Call

type MockCertsServiceClient_GetEntityID_Call struct {
	*mock.Call
}

MockCertsServiceClient_GetEntityID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntityID'

func (*MockCertsServiceClient_GetEntityID_Call) Return

func (*MockCertsServiceClient_GetEntityID_Call) Run

func (*MockCertsServiceClient_GetEntityID_Call) RunAndReturn

type MockCertsServiceClient_RevokeCerts_Call

type MockCertsServiceClient_RevokeCerts_Call struct {
	*mock.Call
}

MockCertsServiceClient_RevokeCerts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeCerts'

func (*MockCertsServiceClient_RevokeCerts_Call) Return

func (*MockCertsServiceClient_RevokeCerts_Call) Run

func (*MockCertsServiceClient_RevokeCerts_Call) RunAndReturn

type Repository added in v0.18.0

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository added in v0.18.0

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) EXPECT added in v0.18.0

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) GetEntityIDBySerial added in v0.18.0

func (_mock *Repository) GetEntityIDBySerial(ctx context.Context, serialNumber string) (string, error)

GetEntityIDBySerial provides a mock function for the type Repository

func (*Repository) ListCertsByEntityID added in v0.18.0

func (_mock *Repository) ListCertsByEntityID(ctx context.Context, entityID string) ([]string, error)

ListCertsByEntityID provides a mock function for the type Repository

func (*Repository) RemoveCertEntityMapping added in v0.18.0

func (_mock *Repository) RemoveCertEntityMapping(ctx context.Context, serialNumber string) error

RemoveCertEntityMapping provides a mock function for the type Repository

func (*Repository) SaveCertEntityMapping added in v0.18.0

func (_mock *Repository) SaveCertEntityMapping(ctx context.Context, serialNumber string, entityID string) error

SaveCertEntityMapping provides a mock function for the type Repository

type Repository_Expecter added in v0.18.0

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

func (*Repository_Expecter) GetEntityIDBySerial added in v0.18.0

func (_e *Repository_Expecter) GetEntityIDBySerial(ctx interface{}, serialNumber interface{}) *Repository_GetEntityIDBySerial_Call

GetEntityIDBySerial is a helper method to define mock.On call

  • ctx context.Context
  • serialNumber string

func (*Repository_Expecter) ListCertsByEntityID added in v0.18.0

func (_e *Repository_Expecter) ListCertsByEntityID(ctx interface{}, entityID interface{}) *Repository_ListCertsByEntityID_Call

ListCertsByEntityID is a helper method to define mock.On call

  • ctx context.Context
  • entityID string

func (*Repository_Expecter) RemoveCertEntityMapping added in v0.18.0

func (_e *Repository_Expecter) RemoveCertEntityMapping(ctx interface{}, serialNumber interface{}) *Repository_RemoveCertEntityMapping_Call

RemoveCertEntityMapping is a helper method to define mock.On call

  • ctx context.Context
  • serialNumber string

func (*Repository_Expecter) SaveCertEntityMapping added in v0.18.0

func (_e *Repository_Expecter) SaveCertEntityMapping(ctx interface{}, serialNumber interface{}, entityID interface{}) *Repository_SaveCertEntityMapping_Call

SaveCertEntityMapping is a helper method to define mock.On call

  • ctx context.Context
  • serialNumber string
  • entityID string

type Repository_GetEntityIDBySerial_Call added in v0.18.0

type Repository_GetEntityIDBySerial_Call struct {
	*mock.Call
}

Repository_GetEntityIDBySerial_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntityIDBySerial'

func (*Repository_GetEntityIDBySerial_Call) Return added in v0.18.0

func (*Repository_GetEntityIDBySerial_Call) Run added in v0.18.0

func (*Repository_GetEntityIDBySerial_Call) RunAndReturn added in v0.18.0

type Repository_ListCertsByEntityID_Call added in v0.18.0

type Repository_ListCertsByEntityID_Call struct {
	*mock.Call
}

Repository_ListCertsByEntityID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCertsByEntityID'

func (*Repository_ListCertsByEntityID_Call) Return added in v0.18.0

func (*Repository_ListCertsByEntityID_Call) Run added in v0.18.0

func (*Repository_ListCertsByEntityID_Call) RunAndReturn added in v0.18.0

type Repository_RemoveCertEntityMapping_Call added in v0.18.0

type Repository_RemoveCertEntityMapping_Call struct {
	*mock.Call
}

Repository_RemoveCertEntityMapping_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveCertEntityMapping'

func (*Repository_RemoveCertEntityMapping_Call) Return added in v0.18.0

func (*Repository_RemoveCertEntityMapping_Call) Run added in v0.18.0

func (*Repository_RemoveCertEntityMapping_Call) RunAndReturn added in v0.18.0

type Repository_SaveCertEntityMapping_Call added in v0.18.0

type Repository_SaveCertEntityMapping_Call struct {
	*mock.Call
}

Repository_SaveCertEntityMapping_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveCertEntityMapping'

func (*Repository_SaveCertEntityMapping_Call) Return added in v0.18.0

func (*Repository_SaveCertEntityMapping_Call) Run added in v0.18.0

func (*Repository_SaveCertEntityMapping_Call) RunAndReturn added in v0.18.0

func (_c *Repository_SaveCertEntityMapping_Call) RunAndReturn(run func(ctx context.Context, serialNumber string, entityID string) error) *Repository_SaveCertEntityMapping_Call

type Service added in v0.18.0

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService added in v0.18.0

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) EXPECT added in v0.18.0

func (_m *Service) EXPECT() *Service_Expecter

func (*Service) GenerateCRL added in v0.18.0

func (_mock *Service) GenerateCRL(ctx context.Context) ([]byte, error)

GenerateCRL provides a mock function for the type Service

func (*Service) GetEntityID added in v0.18.0

func (_mock *Service) GetEntityID(ctx context.Context, serialNumber string) (string, error)

GetEntityID provides a mock function for the type Service

func (*Service) IssueCert added in v0.18.0

func (_mock *Service) IssueCert(ctx context.Context, session authn.Session, entityID string, ttl string, ipAddrs []string, option certs.SubjectOptions) (certs.Certificate, error)

IssueCert provides a mock function for the type Service

func (*Service) IssueFromCSR added in v0.18.0

func (_mock *Service) IssueFromCSR(ctx context.Context, session authn.Session, entityID string, ttl string, csr certs.CSR) (certs.Certificate, error)

IssueFromCSR provides a mock function for the type Service

func (*Service) IssueFromCSRInternal added in v0.18.0

func (_mock *Service) IssueFromCSRInternal(ctx context.Context, entityID string, ttl string, csr certs.CSR) (certs.Certificate, error)

IssueFromCSRInternal provides a mock function for the type Service

func (*Service) ListCerts added in v0.18.0

func (_mock *Service) ListCerts(ctx context.Context, session authn.Session, pm certs.PageMetadata) (certs.CertificatePage, error)

ListCerts provides a mock function for the type Service

func (*Service) OCSP added in v0.18.0

func (_mock *Service) OCSP(ctx context.Context, serialNumber string, ocspRequestDER []byte) ([]byte, error)

OCSP provides a mock function for the type Service

func (*Service) RenewCert added in v0.18.0

func (_mock *Service) RenewCert(ctx context.Context, session authn.Session, serialNumber string) (certs.Certificate, error)

RenewCert provides a mock function for the type Service

func (*Service) RetrieveCAChain added in v0.18.0

func (_mock *Service) RetrieveCAChain(ctx context.Context) (certs.Certificate, error)

RetrieveCAChain provides a mock function for the type Service

func (*Service) RevokeAll added in v0.18.0

func (_mock *Service) RevokeAll(ctx context.Context, session authn.Session, entityID string) error

RevokeAll provides a mock function for the type Service

func (*Service) RevokeBySerial added in v0.18.0

func (_mock *Service) RevokeBySerial(ctx context.Context, session authn.Session, serialNumber string) error

RevokeBySerial provides a mock function for the type Service

func (*Service) ViewCert added in v0.18.0

func (_mock *Service) ViewCert(ctx context.Context, session authn.Session, serialNumber string) (certs.Certificate, error)

ViewCert provides a mock function for the type Service

type Service_Expecter added in v0.18.0

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

func (*Service_Expecter) GenerateCRL added in v0.18.0

func (_e *Service_Expecter) GenerateCRL(ctx interface{}) *Service_GenerateCRL_Call

GenerateCRL is a helper method to define mock.On call

  • ctx context.Context

func (*Service_Expecter) GetEntityID added in v0.18.0

func (_e *Service_Expecter) GetEntityID(ctx interface{}, serialNumber interface{}) *Service_GetEntityID_Call

GetEntityID is a helper method to define mock.On call

  • ctx context.Context
  • serialNumber string

func (*Service_Expecter) IssueCert added in v0.18.0

func (_e *Service_Expecter) IssueCert(ctx interface{}, session interface{}, entityID interface{}, ttl interface{}, ipAddrs interface{}, option interface{}) *Service_IssueCert_Call

IssueCert is a helper method to define mock.On call

  • ctx context.Context
  • session authn.Session
  • entityID string
  • ttl string
  • ipAddrs []string
  • option certs.SubjectOptions

func (*Service_Expecter) IssueFromCSR added in v0.18.0

func (_e *Service_Expecter) IssueFromCSR(ctx interface{}, session interface{}, entityID interface{}, ttl interface{}, csr interface{}) *Service_IssueFromCSR_Call

IssueFromCSR is a helper method to define mock.On call

  • ctx context.Context
  • session authn.Session
  • entityID string
  • ttl string
  • csr certs.CSR

func (*Service_Expecter) IssueFromCSRInternal added in v0.18.0

func (_e *Service_Expecter) IssueFromCSRInternal(ctx interface{}, entityID interface{}, ttl interface{}, csr interface{}) *Service_IssueFromCSRInternal_Call

IssueFromCSRInternal is a helper method to define mock.On call

  • ctx context.Context
  • entityID string
  • ttl string
  • csr certs.CSR

func (*Service_Expecter) ListCerts added in v0.18.0

func (_e *Service_Expecter) ListCerts(ctx interface{}, session interface{}, pm interface{}) *Service_ListCerts_Call

ListCerts is a helper method to define mock.On call

  • ctx context.Context
  • session authn.Session
  • pm certs.PageMetadata

func (*Service_Expecter) OCSP added in v0.18.0

func (_e *Service_Expecter) OCSP(ctx interface{}, serialNumber interface{}, ocspRequestDER interface{}) *Service_OCSP_Call

OCSP is a helper method to define mock.On call

  • ctx context.Context
  • serialNumber string
  • ocspRequestDER []byte

func (*Service_Expecter) RenewCert added in v0.18.0

func (_e *Service_Expecter) RenewCert(ctx interface{}, session interface{}, serialNumber interface{}) *Service_RenewCert_Call

RenewCert is a helper method to define mock.On call

  • ctx context.Context
  • session authn.Session
  • serialNumber string

func (*Service_Expecter) RetrieveCAChain added in v0.18.0

func (_e *Service_Expecter) RetrieveCAChain(ctx interface{}) *Service_RetrieveCAChain_Call

RetrieveCAChain is a helper method to define mock.On call

  • ctx context.Context

func (*Service_Expecter) RevokeAll added in v0.18.0

func (_e *Service_Expecter) RevokeAll(ctx interface{}, session interface{}, entityID interface{}) *Service_RevokeAll_Call

RevokeAll is a helper method to define mock.On call

  • ctx context.Context
  • session authn.Session
  • entityID string

func (*Service_Expecter) RevokeBySerial added in v0.18.0

func (_e *Service_Expecter) RevokeBySerial(ctx interface{}, session interface{}, serialNumber interface{}) *Service_RevokeBySerial_Call

RevokeBySerial is a helper method to define mock.On call

  • ctx context.Context
  • session authn.Session
  • serialNumber string

func (*Service_Expecter) ViewCert added in v0.18.0

func (_e *Service_Expecter) ViewCert(ctx interface{}, session interface{}, serialNumber interface{}) *Service_ViewCert_Call

ViewCert is a helper method to define mock.On call

  • ctx context.Context
  • session authn.Session
  • serialNumber string

type Service_GenerateCRL_Call added in v0.18.0

type Service_GenerateCRL_Call struct {
	*mock.Call
}

Service_GenerateCRL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateCRL'

func (*Service_GenerateCRL_Call) Return added in v0.18.0

func (_c *Service_GenerateCRL_Call) Return(bytes []byte, err error) *Service_GenerateCRL_Call

func (*Service_GenerateCRL_Call) Run added in v0.18.0

func (*Service_GenerateCRL_Call) RunAndReturn added in v0.18.0

func (_c *Service_GenerateCRL_Call) RunAndReturn(run func(ctx context.Context) ([]byte, error)) *Service_GenerateCRL_Call

type Service_GetEntityID_Call added in v0.18.0

type Service_GetEntityID_Call struct {
	*mock.Call
}

Service_GetEntityID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntityID'

func (*Service_GetEntityID_Call) Return added in v0.18.0

func (*Service_GetEntityID_Call) Run added in v0.18.0

func (_c *Service_GetEntityID_Call) Run(run func(ctx context.Context, serialNumber string)) *Service_GetEntityID_Call

func (*Service_GetEntityID_Call) RunAndReturn added in v0.18.0

func (_c *Service_GetEntityID_Call) RunAndReturn(run func(ctx context.Context, serialNumber string) (string, error)) *Service_GetEntityID_Call

type Service_IssueCert_Call added in v0.18.0

type Service_IssueCert_Call struct {
	*mock.Call
}

Service_IssueCert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IssueCert'

func (*Service_IssueCert_Call) Return added in v0.18.0

func (*Service_IssueCert_Call) Run added in v0.18.0

func (_c *Service_IssueCert_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, ttl string, ipAddrs []string, option certs.SubjectOptions)) *Service_IssueCert_Call

func (*Service_IssueCert_Call) RunAndReturn added in v0.18.0

func (_c *Service_IssueCert_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, ttl string, ipAddrs []string, option certs.SubjectOptions) (certs.Certificate, error)) *Service_IssueCert_Call

type Service_IssueFromCSRInternal_Call added in v0.18.0

type Service_IssueFromCSRInternal_Call struct {
	*mock.Call
}

Service_IssueFromCSRInternal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IssueFromCSRInternal'

func (*Service_IssueFromCSRInternal_Call) Return added in v0.18.0

func (*Service_IssueFromCSRInternal_Call) Run added in v0.18.0

func (*Service_IssueFromCSRInternal_Call) RunAndReturn added in v0.18.0

type Service_IssueFromCSR_Call added in v0.18.0

type Service_IssueFromCSR_Call struct {
	*mock.Call
}

Service_IssueFromCSR_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IssueFromCSR'

func (*Service_IssueFromCSR_Call) Return added in v0.18.0

func (*Service_IssueFromCSR_Call) Run added in v0.18.0

func (_c *Service_IssueFromCSR_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, ttl string, csr certs.CSR)) *Service_IssueFromCSR_Call

func (*Service_IssueFromCSR_Call) RunAndReturn added in v0.18.0

func (_c *Service_IssueFromCSR_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, ttl string, csr certs.CSR) (certs.Certificate, error)) *Service_IssueFromCSR_Call

type Service_ListCerts_Call added in v0.18.0

type Service_ListCerts_Call struct {
	*mock.Call
}

Service_ListCerts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCerts'

func (*Service_ListCerts_Call) Return added in v0.18.0

func (_c *Service_ListCerts_Call) Return(certificatePage certs.CertificatePage, err error) *Service_ListCerts_Call

func (*Service_ListCerts_Call) Run added in v0.18.0

func (*Service_ListCerts_Call) RunAndReturn added in v0.18.0

type Service_OCSP_Call added in v0.18.0

type Service_OCSP_Call struct {
	*mock.Call
}

Service_OCSP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OCSP'

func (*Service_OCSP_Call) Return added in v0.18.0

func (_c *Service_OCSP_Call) Return(bytes []byte, err error) *Service_OCSP_Call

func (*Service_OCSP_Call) Run added in v0.18.0

func (_c *Service_OCSP_Call) Run(run func(ctx context.Context, serialNumber string, ocspRequestDER []byte)) *Service_OCSP_Call

func (*Service_OCSP_Call) RunAndReturn added in v0.18.0

func (_c *Service_OCSP_Call) RunAndReturn(run func(ctx context.Context, serialNumber string, ocspRequestDER []byte) ([]byte, error)) *Service_OCSP_Call

type Service_RenewCert_Call added in v0.18.0

type Service_RenewCert_Call struct {
	*mock.Call
}

Service_RenewCert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenewCert'

func (*Service_RenewCert_Call) Return added in v0.18.0

func (*Service_RenewCert_Call) Run added in v0.18.0

func (_c *Service_RenewCert_Call) Run(run func(ctx context.Context, session authn.Session, serialNumber string)) *Service_RenewCert_Call

func (*Service_RenewCert_Call) RunAndReturn added in v0.18.0

func (_c *Service_RenewCert_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, serialNumber string) (certs.Certificate, error)) *Service_RenewCert_Call

type Service_RetrieveCAChain_Call added in v0.18.0

type Service_RetrieveCAChain_Call struct {
	*mock.Call
}

Service_RetrieveCAChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveCAChain'

func (*Service_RetrieveCAChain_Call) Return added in v0.18.0

func (*Service_RetrieveCAChain_Call) Run added in v0.18.0

func (*Service_RetrieveCAChain_Call) RunAndReturn added in v0.18.0

type Service_RevokeAll_Call added in v0.18.0

type Service_RevokeAll_Call struct {
	*mock.Call
}

Service_RevokeAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeAll'

func (*Service_RevokeAll_Call) Return added in v0.18.0

func (*Service_RevokeAll_Call) Run added in v0.18.0

func (_c *Service_RevokeAll_Call) Run(run func(ctx context.Context, session authn.Session, entityID string)) *Service_RevokeAll_Call

func (*Service_RevokeAll_Call) RunAndReturn added in v0.18.0

func (_c *Service_RevokeAll_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string) error) *Service_RevokeAll_Call

type Service_RevokeBySerial_Call added in v0.18.0

type Service_RevokeBySerial_Call struct {
	*mock.Call
}

Service_RevokeBySerial_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeBySerial'

func (*Service_RevokeBySerial_Call) Return added in v0.18.0

func (*Service_RevokeBySerial_Call) Run added in v0.18.0

func (_c *Service_RevokeBySerial_Call) Run(run func(ctx context.Context, session authn.Session, serialNumber string)) *Service_RevokeBySerial_Call

func (*Service_RevokeBySerial_Call) RunAndReturn added in v0.18.0

func (_c *Service_RevokeBySerial_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, serialNumber string) error) *Service_RevokeBySerial_Call

type Service_ViewCert_Call added in v0.18.0

type Service_ViewCert_Call struct {
	*mock.Call
}

Service_ViewCert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ViewCert'

func (*Service_ViewCert_Call) Return added in v0.18.0

func (_c *Service_ViewCert_Call) Return(certificate certs.Certificate, err error) *Service_ViewCert_Call

func (*Service_ViewCert_Call) Run added in v0.18.0

func (_c *Service_ViewCert_Call) Run(run func(ctx context.Context, session authn.Session, serialNumber string)) *Service_ViewCert_Call

func (*Service_ViewCert_Call) RunAndReturn added in v0.18.0

func (_c *Service_ViewCert_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, serialNumber string) (certs.Certificate, error)) *Service_ViewCert_Call

Jump to

Keyboard shortcuts

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