Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks provides generated mock implementations for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAgentKeyStore ¶
type MockAgentKeyStore struct {
// contains filtered or unexported fields
}
MockAgentKeyStore is a mock of AgentKeyStore interface.
func NewMockAgentKeyStore ¶
func NewMockAgentKeyStore(ctrl *gomock.Controller) *MockAgentKeyStore
NewMockAgentKeyStore creates a new mock instance.
func (*MockAgentKeyStore) EXPECT ¶
func (m *MockAgentKeyStore) EXPECT() *MockAgentKeyStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAgentKeyStore) LookupAgentKey ¶
func (m *MockAgentKeyStore) LookupAgentKey(ctx context.Context, machineID string) (*enrollment.AcceptedAgent, error)
LookupAgentKey mocks base method.
type MockAgentKeyStoreMockRecorder ¶
type MockAgentKeyStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockAgentKeyStoreMockRecorder is the mock recorder for MockAgentKeyStore.
func (*MockAgentKeyStoreMockRecorder) LookupAgentKey ¶
func (mr *MockAgentKeyStoreMockRecorder) LookupAgentKey(ctx, machineID any) *gomock.Call
LookupAgentKey indicates an expected call of LookupAgentKey.
type MockNATSSubscriber ¶
type MockNATSSubscriber struct {
// contains filtered or unexported fields
}
MockNATSSubscriber is a mock of NATSSubscriber interface.
func NewMockNATSSubscriber ¶
func NewMockNATSSubscriber(ctrl *gomock.Controller) *MockNATSSubscriber
NewMockNATSSubscriber creates a new mock instance.
func (*MockNATSSubscriber) EXPECT ¶
func (m *MockNATSSubscriber) EXPECT() *MockNATSSubscriberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNATSSubscriber) PublishCore ¶
func (m *MockNATSSubscriber) PublishCore(subj string, data []byte) error
PublishCore mocks base method.
func (*MockNATSSubscriber) Subscribe ¶
func (m *MockNATSSubscriber) Subscribe(subj string, cb nats.MsgHandler) (*nats.Subscription, error)
Subscribe mocks base method.
type MockNATSSubscriberMockRecorder ¶
type MockNATSSubscriberMockRecorder struct {
// contains filtered or unexported fields
}
MockNATSSubscriberMockRecorder is the mock recorder for MockNATSSubscriber.
func (*MockNATSSubscriberMockRecorder) PublishCore ¶
func (mr *MockNATSSubscriberMockRecorder) PublishCore(subj, data any) *gomock.Call
PublishCore indicates an expected call of PublishCore.
type MockPKIProvider ¶
type MockPKIProvider struct {
// contains filtered or unexported fields
}
MockPKIProvider is a mock of PKIProvider interface.
func NewMockPKIProvider ¶
func NewMockPKIProvider(ctrl *gomock.Controller) *MockPKIProvider
NewMockPKIProvider creates a new mock instance.
func (*MockPKIProvider) EXPECT ¶
func (m *MockPKIProvider) EXPECT() *MockPKIProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPKIProvider) PublicKey ¶
func (m *MockPKIProvider) PublicKey() ed25519.PublicKey
PublicKey mocks base method.
type MockPKIProviderMockRecorder ¶
type MockPKIProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockPKIProviderMockRecorder is the mock recorder for MockPKIProvider.
func (*MockPKIProviderMockRecorder) PublicKey ¶
func (mr *MockPKIProviderMockRecorder) PublicKey() *gomock.Call
PublicKey indicates an expected call of PublicKey.