fakes

package
v0.0.0-...-2e1b0dd Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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(arg0 *types.APIRequest, arg1 *types.APISchema, arg2 string) error

CanAction mocks base method.

func (*MockAccessControl) CanCreate

func (m *MockAccessControl) CanCreate(arg0 *types.APIRequest, arg1 *types.APISchema) error

CanCreate mocks base method.

func (*MockAccessControl) CanDelete

func (m *MockAccessControl) CanDelete(arg0 *types.APIRequest, arg1 types.APIObject, arg2 *types.APISchema) error

CanDelete mocks base method.

func (*MockAccessControl) CanDo

func (m *MockAccessControl) CanDo(arg0 *types.APIRequest, arg1, arg2, arg3, arg4 string) error

CanDo mocks base method.

func (*MockAccessControl) CanGet

func (m *MockAccessControl) CanGet(arg0 *types.APIRequest, arg1 *types.APISchema) error

CanGet mocks base method.

func (*MockAccessControl) CanList

func (m *MockAccessControl) CanList(arg0 *types.APIRequest, arg1 *types.APISchema) error

CanList mocks base method.

func (*MockAccessControl) CanUpdate

func (m *MockAccessControl) CanUpdate(arg0 *types.APIRequest, arg1 types.APIObject, arg2 *types.APISchema) error

CanUpdate mocks base method.

func (*MockAccessControl) CanWatch

func (m *MockAccessControl) CanWatch(arg0 *types.APIRequest, arg1 *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(arg0, arg1, arg2 interface{}) *gomock.Call

CanAction indicates an expected call of CanAction.

func (*MockAccessControlMockRecorder) CanCreate

func (mr *MockAccessControlMockRecorder) CanCreate(arg0, arg1 interface{}) *gomock.Call

CanCreate indicates an expected call of CanCreate.

func (*MockAccessControlMockRecorder) CanDelete

func (mr *MockAccessControlMockRecorder) CanDelete(arg0, arg1, arg2 interface{}) *gomock.Call

CanDelete indicates an expected call of CanDelete.

func (*MockAccessControlMockRecorder) CanDo

func (mr *MockAccessControlMockRecorder) CanDo(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

CanDo indicates an expected call of CanDo.

func (*MockAccessControlMockRecorder) CanGet

func (mr *MockAccessControlMockRecorder) CanGet(arg0, arg1 interface{}) *gomock.Call

CanGet indicates an expected call of CanGet.

func (*MockAccessControlMockRecorder) CanList

func (mr *MockAccessControlMockRecorder) CanList(arg0, arg1 interface{}) *gomock.Call

CanList indicates an expected call of CanList.

func (*MockAccessControlMockRecorder) CanUpdate

func (mr *MockAccessControlMockRecorder) CanUpdate(arg0, arg1, arg2 interface{}) *gomock.Call

CanUpdate indicates an expected call of CanUpdate.

func (*MockAccessControlMockRecorder) CanWatch

func (mr *MockAccessControlMockRecorder) CanWatch(arg0, arg1 interface{}) *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(arg0 *types.APIRequest, arg1 int, arg2 types.APIObject)

Write mocks base method.

func (*MockResponseWriter) WriteList

func (m *MockResponseWriter) WriteList(arg0 *types.APIRequest, arg1 int, arg2 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(arg0, arg1, arg2 interface{}) *gomock.Call

Write indicates an expected call of Write.

func (*MockResponseWriterMockRecorder) WriteList

func (mr *MockResponseWriterMockRecorder) WriteList(arg0, arg1, arg2 interface{}) *gomock.Call

WriteList indicates an expected call of WriteList.

Jump to

Keyboard shortcuts

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