certdeckmocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCollectionRow

type MockCollectionRow struct {
	mock.Mock
}

MockCollectionRow is an autogenerated mock type for the CollectionRow type

func NewMockCollectionRow

func NewMockCollectionRow(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCollectionRow

NewMockCollectionRow creates a new instance of MockCollectionRow. 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 (*MockCollectionRow) Certificates

func (_m *MockCollectionRow) Certificates() []*x509.Certificate

Certificates provides a mock function with no fields

func (*MockCollectionRow) CertificatesBase64

func (_m *MockCollectionRow) CertificatesBase64() []string

CertificatesBase64 provides a mock function with no fields

func (*MockCollectionRow) CertificatesDER

func (_m *MockCollectionRow) CertificatesDER() [][]byte

CertificatesDER provides a mock function with no fields

func (*MockCollectionRow) CertificatesDERInline

func (_m *MockCollectionRow) CertificatesDERInline() []byte

CertificatesDERInline provides a mock function with no fields

func (*MockCollectionRow) CertificatesPEM

func (_m *MockCollectionRow) CertificatesPEM() [][]byte

CertificatesPEM provides a mock function with no fields

func (*MockCollectionRow) CertificatesPEMInline

func (_m *MockCollectionRow) CertificatesPEMInline() []byte

CertificatesPEMInline provides a mock function with no fields

func (*MockCollectionRow) EXPECT

func (*MockCollectionRow) Key

func (_m *MockCollectionRow) Key() crypto.Signer

Key provides a mock function with no fields

func (*MockCollectionRow) KeyDER

func (_m *MockCollectionRow) KeyDER() []byte

KeyDER provides a mock function with no fields

func (*MockCollectionRow) KeyPEM

func (_m *MockCollectionRow) KeyPEM() []byte

KeyPEM provides a mock function with no fields

type MockCollectionRow_CertificatesBase64_Call

type MockCollectionRow_CertificatesBase64_Call struct {
	*mock.Call
}

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

func (*MockCollectionRow_CertificatesBase64_Call) Return

func (*MockCollectionRow_CertificatesBase64_Call) Run

func (*MockCollectionRow_CertificatesBase64_Call) RunAndReturn

type MockCollectionRow_CertificatesDERInline_Call

type MockCollectionRow_CertificatesDERInline_Call struct {
	*mock.Call
}

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

func (*MockCollectionRow_CertificatesDERInline_Call) Return

func (*MockCollectionRow_CertificatesDERInline_Call) Run

func (*MockCollectionRow_CertificatesDERInline_Call) RunAndReturn

type MockCollectionRow_CertificatesDER_Call

type MockCollectionRow_CertificatesDER_Call struct {
	*mock.Call
}

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

func (*MockCollectionRow_CertificatesDER_Call) Return

func (*MockCollectionRow_CertificatesDER_Call) Run

func (*MockCollectionRow_CertificatesDER_Call) RunAndReturn

type MockCollectionRow_CertificatesPEMInline_Call

type MockCollectionRow_CertificatesPEMInline_Call struct {
	*mock.Call
}

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

func (*MockCollectionRow_CertificatesPEMInline_Call) Return

func (*MockCollectionRow_CertificatesPEMInline_Call) Run

func (*MockCollectionRow_CertificatesPEMInline_Call) RunAndReturn

type MockCollectionRow_CertificatesPEM_Call

type MockCollectionRow_CertificatesPEM_Call struct {
	*mock.Call
}

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

func (*MockCollectionRow_CertificatesPEM_Call) Return

func (*MockCollectionRow_CertificatesPEM_Call) Run

func (*MockCollectionRow_CertificatesPEM_Call) RunAndReturn

type MockCollectionRow_Certificates_Call

type MockCollectionRow_Certificates_Call struct {
	*mock.Call
}

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

func (*MockCollectionRow_Certificates_Call) Return

func (*MockCollectionRow_Certificates_Call) Run

func (*MockCollectionRow_Certificates_Call) RunAndReturn

type MockCollectionRow_Expecter

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

func (*MockCollectionRow_Expecter) Certificates

Certificates is a helper method to define mock.On call

func (*MockCollectionRow_Expecter) CertificatesBase64

CertificatesBase64 is a helper method to define mock.On call

func (*MockCollectionRow_Expecter) CertificatesDER

CertificatesDER is a helper method to define mock.On call

func (*MockCollectionRow_Expecter) CertificatesDERInline

CertificatesDERInline is a helper method to define mock.On call

func (*MockCollectionRow_Expecter) CertificatesPEM

CertificatesPEM is a helper method to define mock.On call

func (*MockCollectionRow_Expecter) CertificatesPEMInline

CertificatesPEMInline is a helper method to define mock.On call

func (*MockCollectionRow_Expecter) Key

Key is a helper method to define mock.On call

func (*MockCollectionRow_Expecter) KeyDER

KeyDER is a helper method to define mock.On call

func (*MockCollectionRow_Expecter) KeyPEM

KeyPEM is a helper method to define mock.On call

type MockCollectionRow_KeyDER_Call

type MockCollectionRow_KeyDER_Call struct {
	*mock.Call
}

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

func (*MockCollectionRow_KeyDER_Call) Return

func (*MockCollectionRow_KeyDER_Call) Run

func (*MockCollectionRow_KeyDER_Call) RunAndReturn

func (_c *MockCollectionRow_KeyDER_Call) RunAndReturn(run func() []byte) *MockCollectionRow_KeyDER_Call

type MockCollectionRow_KeyPEM_Call

type MockCollectionRow_KeyPEM_Call struct {
	*mock.Call
}

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

func (*MockCollectionRow_KeyPEM_Call) Return

func (*MockCollectionRow_KeyPEM_Call) Run

func (*MockCollectionRow_KeyPEM_Call) RunAndReturn

func (_c *MockCollectionRow_KeyPEM_Call) RunAndReturn(run func() []byte) *MockCollectionRow_KeyPEM_Call

type MockCollectionRow_Key_Call

type MockCollectionRow_Key_Call struct {
	*mock.Call
}

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

func (*MockCollectionRow_Key_Call) Return

func (*MockCollectionRow_Key_Call) Run

func (*MockCollectionRow_Key_Call) RunAndReturn

type MockCollectionUpdater

type MockCollectionUpdater struct {
	mock.Mock
}

MockCollectionUpdater is an autogenerated mock type for the CertsProvider type

func NewMockCollectionUpdater

func NewMockCollectionUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCollectionUpdater

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

func (*MockCollectionUpdater) ID

func (_m *MockCollectionUpdater) ID() string

ID provides a mock function with no fields

func (*MockCollectionUpdater) Retrieve

Update provides a mock function with no fields

type MockCollectionUpdater_Expecter

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

func (*MockCollectionUpdater_Expecter) ID

ID is a helper method to define mock.On call

func (*MockCollectionUpdater_Expecter) Update

Update is a helper method to define mock.On call

type MockCollectionUpdater_ID_Call

type MockCollectionUpdater_ID_Call struct {
	*mock.Call
}

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

func (*MockCollectionUpdater_ID_Call) Return

func (*MockCollectionUpdater_ID_Call) Run

func (*MockCollectionUpdater_ID_Call) RunAndReturn

type MockCollectionUpdater_Update_Call

type MockCollectionUpdater_Update_Call struct {
	*mock.Call
}

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

func (*MockCollectionUpdater_Update_Call) Return

func (*MockCollectionUpdater_Update_Call) Run

func (*MockCollectionUpdater_Update_Call) RunAndReturn

type MockSerialStore

type MockSerialStore struct {
	mock.Mock
}

MockSerialStore is an autogenerated mock type for the SerialStore type

func NewMockSerialStore

func NewMockSerialStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSerialStore

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

func (*MockSerialStore) Insert

func (_m *MockSerialStore) Insert(ctx context.Context, serial *big.Int) error

Insert provides a mock function with given fields: ctx, serial

type MockSerialStore_Expecter

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

func (*MockSerialStore_Expecter) Insert

func (_e *MockSerialStore_Expecter) Insert(ctx interface{}, serial interface{}) *MockSerialStore_Insert_Call

Insert is a helper method to define mock.On call

  • ctx context.Context
  • serial *big.Int

type MockSerialStore_Insert_Call

type MockSerialStore_Insert_Call struct {
	*mock.Call
}

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

func (*MockSerialStore_Insert_Call) Return

func (*MockSerialStore_Insert_Call) Run

func (*MockSerialStore_Insert_Call) RunAndReturn

type MockSigner

type MockSigner struct {
	mock.Mock
}

MockSigner is an autogenerated mock type for the Signer type

func NewMockSigner

func NewMockSigner(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSigner

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

func (_m *MockSigner) EXPECT() *MockSigner_Expecter

func (*MockSigner) Rotate

func (_m *MockSigner) Rotate(issuers []*x509.Certificate, issuerKey crypto.Signer)

Rotate provides a mock function with given fields: issuers, issuerKey

func (*MockSigner) Sign

func (_m *MockSigner) Sign(ctx context.Context, key interface{}, keyID []byte, template *certdeck.Template) (*x509.Certificate, error)

Sign provides a mock function with given fields: ctx, key, keyID, template

type MockSigner_Expecter

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

func (*MockSigner_Expecter) Rotate

func (_e *MockSigner_Expecter) Rotate(issuers interface{}, issuerKey interface{}) *MockSigner_Rotate_Call

Rotate is a helper method to define mock.On call

  • issuers []*x509.Certificate
  • issuerKey crypto.Signer

func (*MockSigner_Expecter) Sign

func (_e *MockSigner_Expecter) Sign(ctx interface{}, key interface{}, keyID interface{}, template interface{}) *MockSigner_Sign_Call

Sign is a helper method to define mock.On call

  • ctx context.Context
  • key interface{}
  • keyID []byte
  • template *certdeck.Template

type MockSigner_Rotate_Call

type MockSigner_Rotate_Call struct {
	*mock.Call
}

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

func (*MockSigner_Rotate_Call) Return

func (*MockSigner_Rotate_Call) Run

func (_c *MockSigner_Rotate_Call) Run(run func(issuers []*x509.Certificate, issuerKey crypto.Signer)) *MockSigner_Rotate_Call

func (*MockSigner_Rotate_Call) RunAndReturn

type MockSigner_Sign_Call

type MockSigner_Sign_Call struct {
	*mock.Call
}

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

func (*MockSigner_Sign_Call) Return

func (*MockSigner_Sign_Call) Run

func (_c *MockSigner_Sign_Call) Run(run func(ctx context.Context, key interface{}, keyID []byte, template *certdeck.Template)) *MockSigner_Sign_Call

func (*MockSigner_Sign_Call) RunAndReturn

func (_c *MockSigner_Sign_Call) RunAndReturn(run func(context.Context, interface{}, []byte, *certdeck.Template) (*x509.Certificate, error)) *MockSigner_Sign_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳