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: 6 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 is a generated GoMock package.

Package mocks provides mock implementations for testing.

Package mocks is a generated GoMock package.

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 MockAuditStreams

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

MockAuditStreams is a mock of auditStreams interface.

func NewMockAuditStreams

func NewMockAuditStreams(ctrl *gomock.Controller) *MockAuditStreams

NewMockAuditStreams creates a new mock instance.

func (*MockAuditStreams) EXPECT

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

func (*MockAuditStreams) Publish

func (m *MockAuditStreams) Publish(ctx context.Context, subject string, data []byte) error

Publish mocks base method.

func (*MockAuditStreams) StreamCreateOrUpdate

func (m *MockAuditStreams) StreamCreateOrUpdate(ctx context.Context, config jetstream.StreamConfig) error

StreamCreateOrUpdate mocks base method.

func (*MockAuditStreams) StreamInfo

func (m *MockAuditStreams) StreamInfo(ctx context.Context, name string) (*jetstream.StreamInfo, error)

StreamInfo mocks base method.

func (*MockAuditStreams) StreamLastMsg

func (m *MockAuditStreams) StreamLastMsg(ctx context.Context, name, subject string) (*jetstream.RawStreamMsg, error)

StreamLastMsg mocks base method.

func (*MockAuditStreams) StreamRead

func (m *MockAuditStreams) StreamRead(ctx context.Context, name string, from uint64, count int) ([]jetstream.Msg, error)

StreamRead mocks base method.

type MockAuditStreamsMockRecorder

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

MockAuditStreamsMockRecorder is the mock recorder for MockAuditStreams.

func (*MockAuditStreamsMockRecorder) Publish

func (mr *MockAuditStreamsMockRecorder) Publish(ctx, subject, data any) *gomock.Call

Publish indicates an expected call of Publish.

func (*MockAuditStreamsMockRecorder) StreamCreateOrUpdate

func (mr *MockAuditStreamsMockRecorder) StreamCreateOrUpdate(ctx, config any) *gomock.Call

StreamCreateOrUpdate indicates an expected call of StreamCreateOrUpdate.

func (*MockAuditStreamsMockRecorder) StreamInfo

func (mr *MockAuditStreamsMockRecorder) StreamInfo(ctx, name any) *gomock.Call

StreamInfo indicates an expected call of StreamInfo.

func (*MockAuditStreamsMockRecorder) StreamLastMsg

func (mr *MockAuditStreamsMockRecorder) StreamLastMsg(ctx, name, subject any) *gomock.Call

StreamLastMsg indicates an expected call of StreamLastMsg.

func (*MockAuditStreamsMockRecorder) StreamRead

func (mr *MockAuditStreamsMockRecorder) StreamRead(ctx, name, from, count any) *gomock.Call

StreamRead indicates an expected call of StreamRead.

type MockFileBuckets

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

MockFileBuckets is a mock of fileBuckets interface.

func NewMockFileBuckets

func NewMockFileBuckets(ctrl *gomock.Controller) *MockFileBuckets

NewMockFileBuckets creates a new mock instance.

func (*MockFileBuckets) EXPECT

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

func (*MockFileBuckets) KVGet

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

KVGet mocks base method.

func (*MockFileBuckets) KVKeys

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

KVKeys mocks base method.

func (*MockFileBuckets) KVStatus

func (m *MockFileBuckets) KVStatus(ctx context.Context, bucket string) (jetstream.KeyValueStatus, error)

KVStatus mocks base method.

func (*MockFileBuckets) ObjectDelete

func (m *MockFileBuckets) ObjectDelete(ctx context.Context, bucket, name string) error

ObjectDelete mocks base method.

func (*MockFileBuckets) ObjectGetBytes

func (m *MockFileBuckets) ObjectGetBytes(ctx context.Context, bucket, name string) ([]byte, error)

ObjectGetBytes mocks base method.

func (*MockFileBuckets) ObjectInfo

func (m *MockFileBuckets) ObjectInfo(ctx context.Context, bucket, name string) (*jetstream.ObjectInfo, error)

ObjectInfo mocks base method.

func (*MockFileBuckets) ObjectList

func (m *MockFileBuckets) ObjectList(ctx context.Context, bucket string) ([]*jetstream.ObjectInfo, error)

ObjectList mocks base method.

func (*MockFileBuckets) ObjectPut

func (m *MockFileBuckets) ObjectPut(ctx context.Context, bucket string, meta jetstream.ObjectMeta, reader io.Reader) (*jetstream.ObjectInfo, error)

ObjectPut mocks base method.

func (*MockFileBuckets) ObjectPutBytes

func (m *MockFileBuckets) ObjectPutBytes(ctx context.Context, bucket, name string, data []byte) (*jetstream.ObjectInfo, error)

ObjectPutBytes mocks base method.

func (*MockFileBuckets) ObjectStoreCreateOrUpdate

func (m *MockFileBuckets) ObjectStoreCreateOrUpdate(ctx context.Context, config jetstream.ObjectStoreConfig) error

ObjectStoreCreateOrUpdate mocks base method.

type MockFileBucketsMockRecorder

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

MockFileBucketsMockRecorder is the mock recorder for MockFileBuckets.

func (*MockFileBucketsMockRecorder) KVGet

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

KVGet indicates an expected call of KVGet.

func (*MockFileBucketsMockRecorder) KVKeys

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

KVKeys indicates an expected call of KVKeys.

func (*MockFileBucketsMockRecorder) KVStatus

func (mr *MockFileBucketsMockRecorder) KVStatus(ctx, bucket any) *gomock.Call

KVStatus indicates an expected call of KVStatus.

func (*MockFileBucketsMockRecorder) ObjectDelete

func (mr *MockFileBucketsMockRecorder) ObjectDelete(ctx, bucket, name any) *gomock.Call

ObjectDelete indicates an expected call of ObjectDelete.

func (*MockFileBucketsMockRecorder) ObjectGetBytes

func (mr *MockFileBucketsMockRecorder) ObjectGetBytes(ctx, bucket, name any) *gomock.Call

ObjectGetBytes indicates an expected call of ObjectGetBytes.

func (*MockFileBucketsMockRecorder) ObjectInfo

func (mr *MockFileBucketsMockRecorder) ObjectInfo(ctx, bucket, name any) *gomock.Call

ObjectInfo indicates an expected call of ObjectInfo.

func (*MockFileBucketsMockRecorder) ObjectList

func (mr *MockFileBucketsMockRecorder) ObjectList(ctx, bucket any) *gomock.Call

ObjectList indicates an expected call of ObjectList.

func (*MockFileBucketsMockRecorder) ObjectPut

func (mr *MockFileBucketsMockRecorder) ObjectPut(ctx, bucket, meta, reader any) *gomock.Call

ObjectPut indicates an expected call of ObjectPut.

func (*MockFileBucketsMockRecorder) ObjectPutBytes

func (mr *MockFileBucketsMockRecorder) ObjectPutBytes(ctx, bucket, name, data any) *gomock.Call

ObjectPutBytes indicates an expected call of ObjectPutBytes.

func (*MockFileBucketsMockRecorder) ObjectStoreCreateOrUpdate

func (mr *MockFileBucketsMockRecorder) ObjectStoreCreateOrUpdate(ctx, config any) *gomock.Call

ObjectStoreCreateOrUpdate indicates an expected call of ObjectStoreCreateOrUpdate.

type MockKeyValueStatus

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

MockKeyValueStatus is a mock of KeyValueStatus interface.

func NewMockKeyValueStatus

func NewMockKeyValueStatus(ctrl *gomock.Controller) *MockKeyValueStatus

NewMockKeyValueStatus creates a new mock instance.

func (*MockKeyValueStatus) BackingStore

func (m *MockKeyValueStatus) BackingStore() string

BackingStore mocks base method.

func (*MockKeyValueStatus) Bucket

func (m *MockKeyValueStatus) Bucket() string

Bucket mocks base method.

func (*MockKeyValueStatus) Bytes

func (m *MockKeyValueStatus) Bytes() uint64

Bytes mocks base method.

func (*MockKeyValueStatus) Config

Config mocks base method.

func (*MockKeyValueStatus) EXPECT

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

func (*MockKeyValueStatus) History

func (m *MockKeyValueStatus) History() int64

History mocks base method.

func (*MockKeyValueStatus) IsCompressed

func (m *MockKeyValueStatus) IsCompressed() bool

IsCompressed mocks base method.

func (*MockKeyValueStatus) LimitMarkerTTL

func (m *MockKeyValueStatus) LimitMarkerTTL() time.Duration

LimitMarkerTTL mocks base method.

func (*MockKeyValueStatus) Metadata

func (m *MockKeyValueStatus) Metadata() map[string]string

Metadata mocks base method.

func (*MockKeyValueStatus) TTL

func (m *MockKeyValueStatus) TTL() time.Duration

TTL mocks base method.

func (*MockKeyValueStatus) Values

func (m *MockKeyValueStatus) Values() uint64

Values mocks base method.

type MockKeyValueStatusMockRecorder

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

MockKeyValueStatusMockRecorder is the mock recorder for MockKeyValueStatus.

func (*MockKeyValueStatusMockRecorder) BackingStore

func (mr *MockKeyValueStatusMockRecorder) BackingStore() *gomock.Call

BackingStore indicates an expected call of BackingStore.

func (*MockKeyValueStatusMockRecorder) Bucket

Bucket indicates an expected call of Bucket.

func (*MockKeyValueStatusMockRecorder) Bytes

Bytes indicates an expected call of Bytes.

func (*MockKeyValueStatusMockRecorder) Config

Config indicates an expected call of Config.

func (*MockKeyValueStatusMockRecorder) History

History indicates an expected call of History.

func (*MockKeyValueStatusMockRecorder) IsCompressed

func (mr *MockKeyValueStatusMockRecorder) IsCompressed() *gomock.Call

IsCompressed indicates an expected call of IsCompressed.

func (*MockKeyValueStatusMockRecorder) LimitMarkerTTL

func (mr *MockKeyValueStatusMockRecorder) LimitMarkerTTL() *gomock.Call

LimitMarkerTTL indicates an expected call of LimitMarkerTTL.

func (*MockKeyValueStatusMockRecorder) Metadata

func (mr *MockKeyValueStatusMockRecorder) Metadata() *gomock.Call

Metadata indicates an expected call of Metadata.

func (*MockKeyValueStatusMockRecorder) TTL

TTL indicates an expected call of TTL.

func (*MockKeyValueStatusMockRecorder) Values

Values indicates an expected call of Values.

type MockNATSStatus

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

MockNATSStatus is a mock of natsStatus interface.

func NewMockNATSStatus

func NewMockNATSStatus(ctrl *gomock.Controller) *MockNATSStatus

NewMockNATSStatus creates a new mock instance.

func (*MockNATSStatus) ConnectedServerVersion

func (m *MockNATSStatus) ConnectedServerVersion() string

ConnectedServerVersion mocks base method.

func (*MockNATSStatus) ConnectedURL

func (m *MockNATSStatus) ConnectedURL() string

ConnectedURL mocks base method.

func (*MockNATSStatus) EXPECT

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

func (*MockNATSStatus) KVGet

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

KVGet mocks base method.

func (*MockNATSStatus) KVKeys

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

KVKeys mocks base method.

func (*MockNATSStatus) KVStatus

func (m *MockNATSStatus) KVStatus(ctx context.Context, bucket string) (jetstream.KeyValueStatus, error)

KVStatus mocks base method.

func (*MockNATSStatus) ObjectStoreStatus

func (m *MockNATSStatus) ObjectStoreStatus(ctx context.Context, bucket string) (jetstream.ObjectStoreStatus, error)

ObjectStoreStatus mocks base method.

func (*MockNATSStatus) StreamInfo

func (m *MockNATSStatus) StreamInfo(ctx context.Context, name string) (*jetstream.StreamInfo, error)

StreamInfo mocks base method.

type MockNATSStatusMockRecorder

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

MockNATSStatusMockRecorder is the mock recorder for MockNATSStatus.

func (*MockNATSStatusMockRecorder) ConnectedServerVersion

func (mr *MockNATSStatusMockRecorder) ConnectedServerVersion() *gomock.Call

ConnectedServerVersion indicates an expected call of ConnectedServerVersion.

func (*MockNATSStatusMockRecorder) ConnectedURL

func (mr *MockNATSStatusMockRecorder) ConnectedURL() *gomock.Call

ConnectedURL indicates an expected call of ConnectedURL.

func (*MockNATSStatusMockRecorder) KVGet

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

KVGet indicates an expected call of KVGet.

func (*MockNATSStatusMockRecorder) KVKeys

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

KVKeys indicates an expected call of KVKeys.

func (*MockNATSStatusMockRecorder) KVStatus

func (mr *MockNATSStatusMockRecorder) KVStatus(ctx, bucket any) *gomock.Call

KVStatus indicates an expected call of KVStatus.

func (*MockNATSStatusMockRecorder) ObjectStoreStatus

func (mr *MockNATSStatusMockRecorder) ObjectStoreStatus(ctx, bucket any) *gomock.Call

ObjectStoreStatus indicates an expected call of ObjectStoreStatus.

func (*MockNATSStatusMockRecorder) StreamInfo

func (mr *MockNATSStatusMockRecorder) StreamInfo(ctx, name any) *gomock.Call

StreamInfo indicates an expected call of StreamInfo.

type MockObjectStoreStatus

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

MockObjectStoreStatus is a mock of ObjectStoreStatus interface.

func NewMockObjectStoreStatus

func NewMockObjectStoreStatus(ctrl *gomock.Controller) *MockObjectStoreStatus

NewMockObjectStoreStatus creates a new mock instance.

func (*MockObjectStoreStatus) BackingStore

func (m *MockObjectStoreStatus) BackingStore() string

BackingStore mocks base method.

func (*MockObjectStoreStatus) Bucket

func (m *MockObjectStoreStatus) Bucket() string

Bucket mocks base method.

func (*MockObjectStoreStatus) Description

func (m *MockObjectStoreStatus) Description() string

Description mocks base method.

func (*MockObjectStoreStatus) EXPECT

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

func (*MockObjectStoreStatus) IsCompressed

func (m *MockObjectStoreStatus) IsCompressed() bool

IsCompressed mocks base method.

func (*MockObjectStoreStatus) Metadata

func (m *MockObjectStoreStatus) Metadata() map[string]string

Metadata mocks base method.

func (*MockObjectStoreStatus) Replicas

func (m *MockObjectStoreStatus) Replicas() int

Replicas mocks base method.

func (*MockObjectStoreStatus) Sealed

func (m *MockObjectStoreStatus) Sealed() bool

Sealed mocks base method.

func (*MockObjectStoreStatus) Size

func (m *MockObjectStoreStatus) Size() uint64

Size mocks base method.

func (*MockObjectStoreStatus) Storage

Storage mocks base method.

func (*MockObjectStoreStatus) TTL

TTL mocks base method.

type MockObjectStoreStatusMockRecorder

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

MockObjectStoreStatusMockRecorder is the mock recorder for MockObjectStoreStatus.

func (*MockObjectStoreStatusMockRecorder) BackingStore

func (mr *MockObjectStoreStatusMockRecorder) BackingStore() *gomock.Call

BackingStore indicates an expected call of BackingStore.

func (*MockObjectStoreStatusMockRecorder) Bucket

Bucket indicates an expected call of Bucket.

func (*MockObjectStoreStatusMockRecorder) Description

func (mr *MockObjectStoreStatusMockRecorder) Description() *gomock.Call

Description indicates an expected call of Description.

func (*MockObjectStoreStatusMockRecorder) IsCompressed

func (mr *MockObjectStoreStatusMockRecorder) IsCompressed() *gomock.Call

IsCompressed indicates an expected call of IsCompressed.

func (*MockObjectStoreStatusMockRecorder) Metadata

Metadata indicates an expected call of Metadata.

func (*MockObjectStoreStatusMockRecorder) Replicas

Replicas indicates an expected call of Replicas.

func (*MockObjectStoreStatusMockRecorder) Sealed

Sealed indicates an expected call of Sealed.

func (*MockObjectStoreStatusMockRecorder) Size

Size indicates an expected call of Size.

func (*MockObjectStoreStatusMockRecorder) Storage

Storage indicates an expected call of Storage.

func (*MockObjectStoreStatusMockRecorder) TTL

TTL indicates an expected call of TTL.

Jump to

Keyboard shortcuts

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