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: 7 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 holds the generated doubles of the dependencies of the rotation of the controller's key, for its tests.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAdmitted

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

MockAdmitted is a mock of Admitted interface.

func NewMockAdmitted

func NewMockAdmitted(ctrl *gomock.Controller) *MockAdmitted

NewMockAdmitted creates a new mock instance.

func (*MockAdmitted) EXPECT

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

func (*MockAdmitted) List

func (m *MockAdmitted) List(ctx context.Context) ([]admission.Record, error)

List mocks base method.

type MockAdmittedMockRecorder

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

MockAdmittedMockRecorder is the mock recorder for MockAdmitted.

func (*MockAdmittedMockRecorder) List

func (mr *MockAdmittedMockRecorder) List(ctx any) *gomock.Call

List indicates an expected call of List.

type MockKV

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

MockKV is a mock of KV interface.

func NewMockKV

func NewMockKV(ctrl *gomock.Controller) *MockKV

NewMockKV creates a new mock instance.

func (*MockKV) EXPECT

func (m *MockKV) EXPECT() *MockKVMockRecorder

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

func (*MockKV) KVCreate

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

KVCreate mocks base method.

func (*MockKV) KVGet

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

KVGet mocks base method.

func (*MockKV) KVUpdate

func (m *MockKV) KVUpdate(ctx context.Context, bucket, key string, value []byte, revision uint64) (uint64, error)

KVUpdate mocks base method.

type MockKVMockRecorder

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

MockKVMockRecorder is the mock recorder for MockKV.

func (*MockKVMockRecorder) KVCreate

func (mr *MockKVMockRecorder) KVCreate(ctx, bucket, key, value any) *gomock.Call

KVCreate indicates an expected call of KVCreate.

func (*MockKVMockRecorder) KVGet

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

KVGet indicates an expected call of KVGet.

func (*MockKVMockRecorder) KVUpdate

func (mr *MockKVMockRecorder) KVUpdate(ctx, bucket, key, value, revision any) *gomock.Call

KVUpdate indicates an expected call of KVUpdate.

type MockSeen

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

MockSeen is a mock of Seen interface.

func NewMockSeen

func NewMockSeen(ctrl *gomock.Controller) *MockSeen

NewMockSeen creates a new mock instance.

func (*MockSeen) AgentsLastSeen

func (m *MockSeen) AgentsLastSeen(ctx context.Context) (map[string]time.Time, error)

AgentsLastSeen mocks base method.

func (*MockSeen) EXPECT

func (m *MockSeen) EXPECT() *MockSeenMockRecorder

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

func (*MockSeen) ListAgents

func (m *MockSeen) ListAgents(ctx context.Context) ([]job.AgentInfo, error)

ListAgents mocks base method.

type MockSeenMockRecorder

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

MockSeenMockRecorder is the mock recorder for MockSeen.

func (*MockSeenMockRecorder) AgentsLastSeen

func (mr *MockSeenMockRecorder) AgentsLastSeen(ctx any) *gomock.Call

AgentsLastSeen indicates an expected call of AgentsLastSeen.

func (*MockSeenMockRecorder) ListAgents

func (mr *MockSeenMockRecorder) ListAgents(ctx any) *gomock.Call

ListAgents indicates an expected call of ListAgents.

Jump to

Keyboard shortcuts

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