mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) (*admission.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 MockKVStore

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

MockKVStore is a mock of KVStore interface.

func NewMockKVStore

func NewMockKVStore(ctrl *gomock.Controller) *MockKVStore

NewMockKVStore creates a new mock instance.

func (*MockKVStore) EXPECT

func (m *MockKVStore) EXPECT() *MockKVStoreMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockKVStore) KVDelete

func (m *MockKVStore) KVDelete(ctx context.Context, bucket, key string) error

KVDelete mocks base method.

func (*MockKVStore) KVGet

func (m *MockKVStore) KVGet(ctx context.Context, bucket, key string) (jetstream.KeyValueEntry, error)

KVGet mocks base method.

func (*MockKVStore) KVKeys

func (m *MockKVStore) KVKeys(ctx context.Context, bucket string, filters ...string) ([]string, error)

KVKeys mocks base method.

func (*MockKVStore) KVPut

func (m *MockKVStore) KVPut(ctx context.Context, bucket, key string, value []byte) (uint64, error)

KVPut mocks base method.

type MockKVStoreMockRecorder

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

MockKVStoreMockRecorder is the mock recorder for MockKVStore.

func (*MockKVStoreMockRecorder) KVDelete

func (mr *MockKVStoreMockRecorder) KVDelete(ctx, bucket, key any) *gomock.Call

KVDelete indicates an expected call of KVDelete.

func (*MockKVStoreMockRecorder) KVGet

func (mr *MockKVStoreMockRecorder) KVGet(ctx, bucket, key any) *gomock.Call

KVGet indicates an expected call of KVGet.

func (*MockKVStoreMockRecorder) KVKeys

func (mr *MockKVStoreMockRecorder) KVKeys(ctx, bucket any, filters ...any) *gomock.Call

KVKeys indicates an expected call of KVKeys.

func (*MockKVStoreMockRecorder) KVPut

func (mr *MockKVStoreMockRecorder) KVPut(ctx, bucket, key, value any) *gomock.Call

KVPut indicates an expected call of KVPut.

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(ctx context.Context, subject string, data []byte) error

PublishCore mocks base method.

func (*MockNATSSubscriber) Subscribe

func (m *MockNATSSubscriber) Subscribe(ctx context.Context, subject string, handler client.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(ctx, subject, data any) *gomock.Call

PublishCore indicates an expected call of PublishCore.

func (*MockNATSSubscriberMockRecorder) Subscribe

func (mr *MockNATSSubscriberMockRecorder) Subscribe(ctx, subject, handler 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