projectresource

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package projectresource 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[TModel any] struct {
	// contains filtered or unexported fields
}

Mockapi is a mock of api interface.

func NewMockapi

func NewMockapi[TModel any](ctrl *gomock.Controller) *Mockapi[TModel]

NewMockapi creates a new mock instance.

func (*Mockapi[TModel]) Create

func (m *Mockapi[TModel]) Create(arg0 context.Context, arg1 TModel) (TModel, diag.Diagnostics)

Create mocks base method.

func (*Mockapi[TModel]) Delete

func (m *Mockapi[TModel]) Delete(arg0 context.Context, arg1 TModel) diag.Diagnostics

Delete mocks base method.

func (*Mockapi[TModel]) EXPECT

func (m *Mockapi[TModel]) EXPECT() *MockapiMockRecorder[TModel]

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

func (*Mockapi[TModel]) EnsureInitialised

func (m *Mockapi[TModel]) EnsureInitialised(arg0 context.Context, arg1 TModel) diag.Diagnostics

EnsureInitialised mocks base method.

func (*Mockapi[TModel]) Patch

func (m *Mockapi[TModel]) Patch(arg0 context.Context, arg1 TModel) diag.Diagnostics

Patch mocks base method.

func (*Mockapi[TModel]) Read

func (m *Mockapi[TModel]) Read(arg0 context.Context, arg1 string, arg2 TModel) (bool, TModel, diag.Diagnostics)

Read mocks base method.

func (*Mockapi[TModel]) Ready

func (m *Mockapi[TModel]) Ready() bool

Ready mocks base method.

func (*Mockapi[TModel]) WithClient

func (m *Mockapi[TModel]) WithClient(arg0 serverless.ClientWithResponsesInterface) api[TModel]

WithClient mocks base method.

type MockapiMockRecorder

type MockapiMockRecorder[TModel any] struct {
	// contains filtered or unexported fields
}

MockapiMockRecorder is the mock recorder for Mockapi.

func (*MockapiMockRecorder[TModel]) Create

func (mr *MockapiMockRecorder[TModel]) Create(arg0, arg1 any) *gomock.Call

Create indicates an expected call of Create.

func (*MockapiMockRecorder[TModel]) Delete

func (mr *MockapiMockRecorder[TModel]) Delete(arg0, arg1 any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockapiMockRecorder[TModel]) EnsureInitialised

func (mr *MockapiMockRecorder[TModel]) EnsureInitialised(arg0, arg1 any) *gomock.Call

EnsureInitialised indicates an expected call of EnsureInitialised.

func (*MockapiMockRecorder[TModel]) Patch

func (mr *MockapiMockRecorder[TModel]) Patch(arg0, arg1 any) *gomock.Call

Patch indicates an expected call of Patch.

func (*MockapiMockRecorder[TModel]) Read

func (mr *MockapiMockRecorder[TModel]) Read(arg0, arg1, arg2 any) *gomock.Call

Read indicates an expected call of Read.

func (*MockapiMockRecorder[TModel]) Ready

func (mr *MockapiMockRecorder[TModel]) Ready() *gomock.Call

Ready indicates an expected call of Ready.

func (*MockapiMockRecorder[TModel]) WithClient

func (mr *MockapiMockRecorder[TModel]) WithClient(arg0 any) *gomock.Call

WithClient indicates an expected call of WithClient.

type MockmodelGetter

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

MockmodelGetter is a mock of modelGetter interface.

func NewMockmodelGetter

func NewMockmodelGetter(ctrl *gomock.Controller) *MockmodelGetter

NewMockmodelGetter creates a new mock instance.

func (*MockmodelGetter) EXPECT

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

func (*MockmodelGetter) Get

func (m *MockmodelGetter) Get(ctx context.Context, target any) diag.Diagnostics

Get mocks base method.

type MockmodelGetterMockRecorder

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

MockmodelGetterMockRecorder is the mock recorder for MockmodelGetter.

func (*MockmodelGetterMockRecorder) Get

func (mr *MockmodelGetterMockRecorder) Get(ctx, target any) *gomock.Call

Get indicates an expected call of Get.

type MockmodelHandler

type MockmodelHandler[T any] struct {
	// contains filtered or unexported fields
}

MockmodelHandler is a mock of modelHandler interface.

func NewMockmodelHandler

func NewMockmodelHandler[T any](ctrl *gomock.Controller) *MockmodelHandler[T]

NewMockmodelHandler creates a new mock instance.

func (*MockmodelHandler[T]) EXPECT

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

func (*MockmodelHandler[T]) GetID

func (m *MockmodelHandler[T]) GetID(arg0 T) string

GetID mocks base method.

func (*MockmodelHandler[T]) Modify

func (m *MockmodelHandler[T]) Modify(arg0, arg1, arg2 T) T

Modify mocks base method.

func (*MockmodelHandler[T]) ReadFrom

func (m *MockmodelHandler[T]) ReadFrom(arg0 context.Context, arg1 modelGetter) (*T, diag.Diagnostics)

ReadFrom mocks base method.

func (*MockmodelHandler[T]) Schema

Schema mocks base method.

type MockmodelHandlerMockRecorder

type MockmodelHandlerMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockmodelHandlerMockRecorder is the mock recorder for MockmodelHandler.

func (*MockmodelHandlerMockRecorder[T]) GetID

func (mr *MockmodelHandlerMockRecorder[T]) GetID(arg0 any) *gomock.Call

GetID indicates an expected call of GetID.

func (*MockmodelHandlerMockRecorder[T]) Modify

func (mr *MockmodelHandlerMockRecorder[T]) Modify(arg0, arg1, arg2 any) *gomock.Call

Modify indicates an expected call of Modify.

func (*MockmodelHandlerMockRecorder[T]) ReadFrom

func (mr *MockmodelHandlerMockRecorder[T]) ReadFrom(arg0, arg1 any) *gomock.Call

ReadFrom indicates an expected call of ReadFrom.

func (*MockmodelHandlerMockRecorder[T]) Schema

func (mr *MockmodelHandlerMockRecorder[T]) Schema(arg0, arg1, arg2 any) *gomock.Call

Schema indicates an expected call of Schema.

type Resource

type Resource[T any] struct {
	// contains filtered or unexported fields
}

func (*Resource[T]) Configure

func (r *Resource[T]) Configure(ctx context.Context, request resource.ConfigureRequest, response *resource.ConfigureResponse)

func (*Resource[T]) Create

func (r *Resource[T]) Create(ctx context.Context, request resource.CreateRequest, response *resource.CreateResponse)

func (*Resource[T]) Delete

func (r *Resource[T]) Delete(ctx context.Context, request resource.DeleteRequest, response *resource.DeleteResponse)

func (*Resource[T]) Metadata

func (r *Resource[T]) Metadata(ctx context.Context, request resource.MetadataRequest, response *resource.MetadataResponse)

func (Resource[T]) ModifyPlan

func (*Resource[T]) Read

func (r *Resource[T]) Read(ctx context.Context, request resource.ReadRequest, response *resource.ReadResponse)

func (*Resource[T]) Schema

func (r *Resource[T]) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)

func (*Resource[T]) Update

func (r *Resource[T]) Update(ctx context.Context, request resource.UpdateRequest, response *resource.UpdateResponse)

Jump to

Keyboard shortcuts

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