apimock

package
v1.5.6 Latest Latest
Warning

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

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

Documentation

Overview

Package apimock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPI

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

MockAPI is a mock of API interface.

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) Create

func (m *MockAPI) Create(arg0 context.Context, arg1 types.Object, arg2 ...types.CreateOption) error

Create mocks base method.

func (*MockAPI) Destroy

func (m *MockAPI) Destroy(arg0 context.Context, arg1 types.IdentifiedObject, arg2 ...types.DestroyOption) error

Destroy mocks base method.

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

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

func (*MockAPI) Get

func (m *MockAPI) Get(arg0 context.Context, arg1 types.IdentifiedObject, arg2 ...types.GetOption) error

Get mocks base method.

func (*MockAPI) List

func (m *MockAPI) List(arg0 context.Context, arg1 types.FilterObject, arg2 ...types.ListOption) error

List mocks base method.

func (*MockAPI) Update

func (m *MockAPI) Update(arg0 context.Context, arg1 types.IdentifiedObject, arg2 ...types.UpdateOption) error

Update mocks base method.

type MockAPIMockRecorder

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

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) Create

func (mr *MockAPIMockRecorder) Create(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockAPIMockRecorder) Destroy

func (mr *MockAPIMockRecorder) Destroy(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockAPIMockRecorder) Get

func (mr *MockAPIMockRecorder) Get(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockAPIMockRecorder) List

func (mr *MockAPIMockRecorder) List(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockAPIMockRecorder) Update

func (mr *MockAPIMockRecorder) Update(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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