Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks provides generated mock implementations for testing.
Index ¶
- type MockAgentKeyStore
- type MockAgentKeyStoreMockRecorder
- type MockKVStore
- func (m *MockKVStore) EXPECT() *MockKVStoreMockRecorder
- func (m *MockKVStore) KVDelete(ctx context.Context, bucket, key string) error
- func (m *MockKVStore) KVGet(ctx context.Context, bucket, key string) (jetstream.KeyValueEntry, error)
- func (m *MockKVStore) KVKeys(ctx context.Context, bucket string, filters ...string) ([]string, error)
- func (m *MockKVStore) KVPut(ctx context.Context, bucket, key string, value []byte) (uint64, error)
- type MockKVStoreMockRecorder
- func (mr *MockKVStoreMockRecorder) KVDelete(ctx, bucket, key any) *gomock.Call
- func (mr *MockKVStoreMockRecorder) KVGet(ctx, bucket, key any) *gomock.Call
- func (mr *MockKVStoreMockRecorder) KVKeys(ctx, bucket any, filters ...any) *gomock.Call
- func (mr *MockKVStoreMockRecorder) KVPut(ctx, bucket, key, value any) *gomock.Call
- type MockNATSSubscriber
- type MockNATSSubscriberMockRecorder
- type MockPKIProvider
- type MockPKIProviderMockRecorder
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) (*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.
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.
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 ¶
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.
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.