fakes

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 4 Imported by: ? 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 fakes is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyHandler

type DummyHandler struct {
}

func (*DummyHandler) ServeHTTP

func (d *DummyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DummyHandlerWithWrite

type DummyHandlerWithWrite struct {
	DummyHandler
	// contains filtered or unexported fields
}

func NewDummyHandlerWithWrite

func NewDummyHandlerWithWrite(h http.Handler) *DummyHandlerWithWrite

func (*DummyHandlerWithWrite) ServeHTTP

type DummyWriter

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

All other writers will attempt additional unnecessary logic Implements http.responseWriter and io.Writer

func NewDummyWriter

func NewDummyWriter() *DummyWriter

func (*DummyWriter) Buffer

func (d *DummyWriter) Buffer() []byte

func (*DummyWriter) Header

func (d *DummyWriter) Header() http.Header

func (*DummyWriter) Write

func (d *DummyWriter) Write(p []byte) (n int, err error)

func (*DummyWriter) WriteHeader

func (d *DummyWriter) WriteHeader(int)

type MockAccessControl

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

MockAccessControl is a mock of AccessControl interface.

func NewMockAccessControl

func NewMockAccessControl(ctrl *gomock.Controller) *MockAccessControl

NewMockAccessControl creates a new mock instance.

func (*MockAccessControl) CanAction

func (m *MockAccessControl) CanAction(apiOp *types.APIRequest, schema *types.APISchema, name string) error

CanAction mocks base method.

func (*MockAccessControl) CanCreate

func (m *MockAccessControl) CanCreate(apiOp *types.APIRequest, schema *types.APISchema) error

CanCreate mocks base method.

func (*MockAccessControl) CanDelete

func (m *MockAccessControl) CanDelete(apiOp *types.APIRequest, obj types.APIObject, schema *types.APISchema) error

CanDelete mocks base method.

func (*MockAccessControl) CanDo

func (m *MockAccessControl) CanDo(apiOp *types.APIRequest, resource, verb, namespace, name string) error

CanDo mocks base method.

func (*MockAccessControl) CanGet

func (m *MockAccessControl) CanGet(apiOp *types.APIRequest, schema *types.APISchema) error

CanGet mocks base method.

func (*MockAccessControl) CanList

func (m *MockAccessControl) CanList(apiOp *types.APIRequest, schema *types.APISchema) error

CanList mocks base method.

func (*MockAccessControl) CanPatch added in v0.4.2

func (m *MockAccessControl) CanPatch(apiOp *types.APIRequest, obj types.APIObject, schema *types.APISchema) error

CanPatch mocks base method.

func (*MockAccessControl) CanUpdate

func (m *MockAccessControl) CanUpdate(apiOp *types.APIRequest, obj types.APIObject, schema *types.APISchema) error

CanUpdate mocks base method.

func (*MockAccessControl) CanWatch

func (m *MockAccessControl) CanWatch(apiOp *types.APIRequest, schema *types.APISchema) error

CanWatch mocks base method.

func (*MockAccessControl) EXPECT

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

type MockAccessControlMockRecorder

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

MockAccessControlMockRecorder is the mock recorder for MockAccessControl.

func (*MockAccessControlMockRecorder) CanAction

func (mr *MockAccessControlMockRecorder) CanAction(apiOp, schema, name any) *gomock.Call

CanAction indicates an expected call of CanAction.

func (*MockAccessControlMockRecorder) CanCreate

func (mr *MockAccessControlMockRecorder) CanCreate(apiOp, schema any) *gomock.Call

CanCreate indicates an expected call of CanCreate.

func (*MockAccessControlMockRecorder) CanDelete

func (mr *MockAccessControlMockRecorder) CanDelete(apiOp, obj, schema any) *gomock.Call

CanDelete indicates an expected call of CanDelete.

func (*MockAccessControlMockRecorder) CanDo

func (mr *MockAccessControlMockRecorder) CanDo(apiOp, resource, verb, namespace, name any) *gomock.Call

CanDo indicates an expected call of CanDo.

func (*MockAccessControlMockRecorder) CanGet

func (mr *MockAccessControlMockRecorder) CanGet(apiOp, schema any) *gomock.Call

CanGet indicates an expected call of CanGet.

func (*MockAccessControlMockRecorder) CanList

func (mr *MockAccessControlMockRecorder) CanList(apiOp, schema any) *gomock.Call

CanList indicates an expected call of CanList.

func (*MockAccessControlMockRecorder) CanPatch added in v0.4.2

func (mr *MockAccessControlMockRecorder) CanPatch(apiOp, obj, schema any) *gomock.Call

CanPatch indicates an expected call of CanPatch.

func (*MockAccessControlMockRecorder) CanUpdate

func (mr *MockAccessControlMockRecorder) CanUpdate(apiOp, obj, schema any) *gomock.Call

CanUpdate indicates an expected call of CanUpdate.

func (*MockAccessControlMockRecorder) CanWatch

func (mr *MockAccessControlMockRecorder) CanWatch(apiOp, schema any) *gomock.Call

CanWatch indicates an expected call of CanWatch.

type MockResponseWriter

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

MockResponseWriter is a mock of ResponseWriter interface.

func NewMockResponseWriter

func NewMockResponseWriter(ctrl *gomock.Controller) *MockResponseWriter

NewMockResponseWriter creates a new mock instance.

func (*MockResponseWriter) EXPECT

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

func (*MockResponseWriter) Write

func (m *MockResponseWriter) Write(apiOp *types.APIRequest, code int, obj types.APIObject)

Write mocks base method.

func (*MockResponseWriter) WriteList

func (m *MockResponseWriter) WriteList(apiOp *types.APIRequest, code int, obj types.APIObjectList)

WriteList mocks base method.

type MockResponseWriterMockRecorder

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

MockResponseWriterMockRecorder is the mock recorder for MockResponseWriter.

func (*MockResponseWriterMockRecorder) Write

func (mr *MockResponseWriterMockRecorder) Write(apiOp, code, obj any) *gomock.Call

Write indicates an expected call of Write.

func (*MockResponseWriterMockRecorder) WriteList

func (mr *MockResponseWriterMockRecorder) WriteList(apiOp, code, obj any) *gomock.Call

WriteList indicates an expected call of WriteList.

type MockStore added in v0.4.2

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

MockStore is a mock of Store interface.

func NewMockStore added in v0.4.2

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) ByID added in v0.4.2

func (m *MockStore) ByID(apiOp *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)

ByID mocks base method.

func (*MockStore) Create added in v0.4.2

func (m *MockStore) Create(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject) (types.APIObject, error)

Create mocks base method.

func (*MockStore) Delete added in v0.4.2

func (m *MockStore) Delete(apiOp *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)

Delete mocks base method.

func (*MockStore) EXPECT added in v0.4.2

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) List added in v0.4.2

func (m *MockStore) List(apiOp *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)

List mocks base method.

func (*MockStore) Update added in v0.4.2

func (m *MockStore) Update(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject, id string) (types.APIObject, error)

Update mocks base method.

func (*MockStore) Watch added in v0.4.2

func (m *MockStore) Watch(apiOp *types.APIRequest, schema *types.APISchema, w types.WatchRequest) (chan types.APIEvent, error)

Watch mocks base method.

type MockStoreMockRecorder added in v0.4.2

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) ByID added in v0.4.2

func (mr *MockStoreMockRecorder) ByID(apiOp, schema, id any) *gomock.Call

ByID indicates an expected call of ByID.

func (*MockStoreMockRecorder) Create added in v0.4.2

func (mr *MockStoreMockRecorder) Create(apiOp, schema, data any) *gomock.Call

Create indicates an expected call of Create.

func (*MockStoreMockRecorder) Delete added in v0.4.2

func (mr *MockStoreMockRecorder) Delete(apiOp, schema, id any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockStoreMockRecorder) List added in v0.4.2

func (mr *MockStoreMockRecorder) List(apiOp, schema any) *gomock.Call

List indicates an expected call of List.

func (*MockStoreMockRecorder) Update added in v0.4.2

func (mr *MockStoreMockRecorder) Update(apiOp, schema, data, id any) *gomock.Call

Update indicates an expected call of Update.

func (*MockStoreMockRecorder) Watch added in v0.4.2

func (mr *MockStoreMockRecorder) Watch(apiOp, schema, w any) *gomock.Call

Watch indicates an expected call of Watch.

type MockURLBuilder added in v0.4.2

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

MockURLBuilder is a mock of URLBuilder interface.

func NewMockURLBuilder added in v0.4.2

func NewMockURLBuilder(ctrl *gomock.Controller) *MockURLBuilder

NewMockURLBuilder creates a new mock instance.

func (*MockURLBuilder) Action added in v0.4.2

func (m *MockURLBuilder) Action(schema *types.APISchema, id, action string) string

Action mocks base method.

func (*MockURLBuilder) Collection added in v0.4.2

func (m *MockURLBuilder) Collection(schema *types.APISchema) string

Collection mocks base method.

func (*MockURLBuilder) CollectionAction added in v0.4.2

func (m *MockURLBuilder) CollectionAction(schema *types.APISchema, action string) string

CollectionAction mocks base method.

func (*MockURLBuilder) Current added in v0.4.2

func (m *MockURLBuilder) Current() string

Current mocks base method.

func (*MockURLBuilder) EXPECT added in v0.4.2

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

func (m *MockURLBuilder) Link(schema *types.APISchema, id, linkName string) string

Link mocks base method.

func (*MockURLBuilder) Marker added in v0.4.2

func (m *MockURLBuilder) Marker(marker string) string

Marker mocks base method.

func (*MockURLBuilder) RelativeToRoot added in v0.4.2

func (m *MockURLBuilder) RelativeToRoot(path string) string

RelativeToRoot mocks base method.

func (m *MockURLBuilder) ResourceLink(schema *types.APISchema, id string) string

ResourceLink mocks base method.

type MockURLBuilderMockRecorder added in v0.4.2

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

MockURLBuilderMockRecorder is the mock recorder for MockURLBuilder.

func (*MockURLBuilderMockRecorder) Action added in v0.4.2

func (mr *MockURLBuilderMockRecorder) Action(schema, id, action any) *gomock.Call

Action indicates an expected call of Action.

func (*MockURLBuilderMockRecorder) Collection added in v0.4.2

func (mr *MockURLBuilderMockRecorder) Collection(schema any) *gomock.Call

Collection indicates an expected call of Collection.

func (*MockURLBuilderMockRecorder) CollectionAction added in v0.4.2

func (mr *MockURLBuilderMockRecorder) CollectionAction(schema, action any) *gomock.Call

CollectionAction indicates an expected call of CollectionAction.

func (*MockURLBuilderMockRecorder) Current added in v0.4.2

func (mr *MockURLBuilderMockRecorder) Current() *gomock.Call

Current indicates an expected call of Current.

func (mr *MockURLBuilderMockRecorder) Link(schema, id, linkName any) *gomock.Call

Link indicates an expected call of Link.

func (*MockURLBuilderMockRecorder) Marker added in v0.4.2

func (mr *MockURLBuilderMockRecorder) Marker(marker any) *gomock.Call

Marker indicates an expected call of Marker.

func (*MockURLBuilderMockRecorder) RelativeToRoot added in v0.4.2

func (mr *MockURLBuilderMockRecorder) RelativeToRoot(path any) *gomock.Call

RelativeToRoot indicates an expected call of RelativeToRoot.

func (mr *MockURLBuilderMockRecorder) ResourceLink(schema, id any) *gomock.Call

ResourceLink indicates an expected call of ResourceLink.

Jump to

Keyboard shortcuts

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