Documentation ¶
Overview ¶
Package projectresource is a generated GoMock package.
Index ¶
- type Mockapi
- func (m *Mockapi[TModel]) Create(arg0 context.Context, arg1 TModel) (TModel, diag.Diagnostics)
- func (m *Mockapi[TModel]) Delete(arg0 context.Context, arg1 TModel) diag.Diagnostics
- func (m *Mockapi[TModel]) EXPECT() *MockapiMockRecorder[TModel]
- func (m *Mockapi[TModel]) EnsureInitialised(arg0 context.Context, arg1 TModel) diag.Diagnostics
- func (m *Mockapi[TModel]) Patch(arg0 context.Context, arg1 TModel) diag.Diagnostics
- func (m *Mockapi[TModel]) Read(arg0 context.Context, arg1 string, arg2 TModel) (bool, TModel, diag.Diagnostics)
- func (m *Mockapi[TModel]) Ready() bool
- func (m *Mockapi[TModel]) WithClient(arg0 serverless.ClientWithResponsesInterface) api[TModel]
- type MockapiMockRecorder
- func (mr *MockapiMockRecorder[TModel]) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockapiMockRecorder[TModel]) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockapiMockRecorder[TModel]) EnsureInitialised(arg0, arg1 any) *gomock.Call
- func (mr *MockapiMockRecorder[TModel]) Patch(arg0, arg1 any) *gomock.Call
- func (mr *MockapiMockRecorder[TModel]) Read(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockapiMockRecorder[TModel]) Ready() *gomock.Call
- func (mr *MockapiMockRecorder[TModel]) WithClient(arg0 any) *gomock.Call
- type MockmodelGetter
- type MockmodelGetterMockRecorder
- type MockmodelHandler
- func (m *MockmodelHandler[T]) EXPECT() *MockmodelHandlerMockRecorder[T]
- func (m *MockmodelHandler[T]) GetID(arg0 T) string
- func (m *MockmodelHandler[T]) Modify(arg0, arg1, arg2 T) T
- func (m *MockmodelHandler[T]) ReadFrom(arg0 context.Context, arg1 modelGetter) (*T, diag.Diagnostics)
- func (m *MockmodelHandler[T]) Schema(arg0 context.Context, arg1 resource.SchemaRequest, ...)
- type MockmodelHandlerMockRecorder
- func (mr *MockmodelHandlerMockRecorder[T]) GetID(arg0 any) *gomock.Call
- func (mr *MockmodelHandlerMockRecorder[T]) Modify(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockmodelHandlerMockRecorder[T]) ReadFrom(arg0, arg1 any) *gomock.Call
- func (mr *MockmodelHandlerMockRecorder[T]) Schema(arg0, arg1, arg2 any) *gomock.Call
- type Resource
- func NewElasticsearchProjectResource() *Resource[resource_elasticsearch_project.ElasticsearchProjectModel]
- func NewObservabilityProjectResource() *Resource[resource_observability_project.ObservabilityProjectModel]
- func NewSecurityProjectResource() *Resource[resource_security_project.SecurityProjectModel]
- func (r *Resource[T]) Configure(ctx context.Context, request resource.ConfigureRequest, ...)
- func (r *Resource[T]) Create(ctx context.Context, request resource.CreateRequest, ...)
- func (r *Resource[T]) Delete(ctx context.Context, request resource.DeleteRequest, ...)
- func (r *Resource[T]) Metadata(ctx context.Context, request resource.MetadataRequest, ...)
- func (r Resource[T]) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r *Resource[T]) Read(ctx context.Context, request resource.ReadRequest, ...)
- func (r *Resource[T]) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *Resource[T]) Update(ctx context.Context, request resource.UpdateRequest, ...)
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]) 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 ¶
func (m *MockmodelGetter) EXPECT() *MockmodelGetterMockRecorder
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.
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 ¶
func (m *MockmodelHandler[T]) EXPECT() *MockmodelHandlerMockRecorder[T]
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 ¶
func (m *MockmodelHandler[T]) Schema(arg0 context.Context, arg1 resource.SchemaRequest, arg2 *resource.SchemaResponse)
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.
type Resource ¶
type Resource[T any] struct { // contains filtered or unexported fields }
func NewElasticsearchProjectResource ¶
func NewElasticsearchProjectResource() *Resource[resource_elasticsearch_project.ElasticsearchProjectModel]
func NewObservabilityProjectResource ¶
func NewObservabilityProjectResource() *Resource[resource_observability_project.ObservabilityProjectModel]
func NewSecurityProjectResource ¶
func NewSecurityProjectResource() *Resource[resource_security_project.SecurityProjectModel]
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 (r Resource[T]) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
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)