mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceService

type ResourceService struct {
	mock.Mock
}

ResourceService is an autogenerated mock type for the ResourceService type

func (*ResourceService) ApplyAction

func (_m *ResourceService) ApplyAction(ctx context.Context, urn string, action module.ActionRequest) (*resource.Resource, error)

ApplyAction provides a mock function with given fields: ctx, urn, action

func (*ResourceService) CreateResource

func (_m *ResourceService) CreateResource(ctx context.Context, res resource.Resource) (*resource.Resource, error)

CreateResource provides a mock function with given fields: ctx, res

func (*ResourceService) DeleteResource

func (_m *ResourceService) DeleteResource(ctx context.Context, urn string) error

DeleteResource provides a mock function with given fields: ctx, urn

func (*ResourceService) EXPECT

func (*ResourceService) GetLog

func (_m *ResourceService) GetLog(ctx context.Context, urn string, filter map[string]string) (<-chan module.LogChunk, error)

GetLog provides a mock function with given fields: ctx, urn, filter

func (*ResourceService) GetResource

func (_m *ResourceService) GetResource(ctx context.Context, urn string) (*resource.Resource, error)

GetResource provides a mock function with given fields: ctx, urn

func (*ResourceService) ListResources

func (_m *ResourceService) ListResources(ctx context.Context, filter resource.Filter) ([]resource.Resource, error)

ListResources provides a mock function with given fields: ctx, filter

func (*ResourceService) UpdateResource

func (_m *ResourceService) UpdateResource(ctx context.Context, urn string, newSpec resource.Spec) (*resource.Resource, error)

UpdateResource provides a mock function with given fields: ctx, urn, newSpec

type ResourceService_ApplyAction_Call

type ResourceService_ApplyAction_Call struct {
	*mock.Call
}

ResourceService_ApplyAction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyAction'

func (*ResourceService_ApplyAction_Call) Return

func (*ResourceService_ApplyAction_Call) Run

type ResourceService_CreateResource_Call

type ResourceService_CreateResource_Call struct {
	*mock.Call
}

ResourceService_CreateResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateResource'

func (*ResourceService_CreateResource_Call) Return

func (*ResourceService_CreateResource_Call) Run

type ResourceService_DeleteResource_Call

type ResourceService_DeleteResource_Call struct {
	*mock.Call
}

ResourceService_DeleteResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteResource'

func (*ResourceService_DeleteResource_Call) Return

func (*ResourceService_DeleteResource_Call) Run

type ResourceService_Expecter

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

func (*ResourceService_Expecter) ApplyAction

func (_e *ResourceService_Expecter) ApplyAction(ctx interface{}, urn interface{}, action interface{}) *ResourceService_ApplyAction_Call

ApplyAction is a helper method to define mock.On call

  • ctx context.Context
  • urn string
  • action module.ActionRequest

func (*ResourceService_Expecter) CreateResource

func (_e *ResourceService_Expecter) CreateResource(ctx interface{}, res interface{}) *ResourceService_CreateResource_Call

CreateResource is a helper method to define mock.On call

  • ctx context.Context
  • res resource.Resource

func (*ResourceService_Expecter) DeleteResource

func (_e *ResourceService_Expecter) DeleteResource(ctx interface{}, urn interface{}) *ResourceService_DeleteResource_Call

DeleteResource is a helper method to define mock.On call

  • ctx context.Context
  • urn string

func (*ResourceService_Expecter) GetLog

func (_e *ResourceService_Expecter) GetLog(ctx interface{}, urn interface{}, filter interface{}) *ResourceService_GetLog_Call

GetLog is a helper method to define mock.On call

  • ctx context.Context
  • urn string
  • filter map[string]string

func (*ResourceService_Expecter) GetResource

func (_e *ResourceService_Expecter) GetResource(ctx interface{}, urn interface{}) *ResourceService_GetResource_Call

GetResource is a helper method to define mock.On call

  • ctx context.Context
  • urn string

func (*ResourceService_Expecter) ListResources

func (_e *ResourceService_Expecter) ListResources(ctx interface{}, filter interface{}) *ResourceService_ListResources_Call

ListResources is a helper method to define mock.On call

  • ctx context.Context
  • filter resource.Filter

func (*ResourceService_Expecter) UpdateResource

func (_e *ResourceService_Expecter) UpdateResource(ctx interface{}, urn interface{}, newSpec interface{}) *ResourceService_UpdateResource_Call

UpdateResource is a helper method to define mock.On call

  • ctx context.Context
  • urn string
  • newSpec resource.Spec

type ResourceService_GetLog_Call

type ResourceService_GetLog_Call struct {
	*mock.Call
}

ResourceService_GetLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLog'

func (*ResourceService_GetLog_Call) Return

func (*ResourceService_GetLog_Call) Run

type ResourceService_GetResource_Call

type ResourceService_GetResource_Call struct {
	*mock.Call
}

ResourceService_GetResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResource'

func (*ResourceService_GetResource_Call) Return

func (*ResourceService_GetResource_Call) Run

type ResourceService_ListResources_Call

type ResourceService_ListResources_Call struct {
	*mock.Call
}

ResourceService_ListResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListResources'

func (*ResourceService_ListResources_Call) Return

func (*ResourceService_ListResources_Call) Run

type ResourceService_UpdateResource_Call

type ResourceService_UpdateResource_Call struct {
	*mock.Call
}

ResourceService_UpdateResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateResource'

func (*ResourceService_UpdateResource_Call) Return

func (*ResourceService_UpdateResource_Call) Run

Jump to

Keyboard shortcuts

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