mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 6 Imported by: 0

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

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

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.

func (*MockNATSSubscriberMockRecorder) Subscribe

func (mr *MockNATSSubscriberMockRecorder) Subscribe(subj, cb any) *gomock.Call

Subscribe indicates an expected call of Subscribe.

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

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.

Jump to

Keyboard shortcuts

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