mocks

package
v0.0.0-...-cc7cbc4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterAssetGroupRepository

type ClusterAssetGroupRepository struct {
	mock.Mock
}

ClusterAssetGroupRepository is an autogenerated mock type for the ClusterAssetGroupRepository type

func (*ClusterAssetGroupRepository) Create

Create provides a mock function with given fields: assetGroup

func (*ClusterAssetGroupRepository) Delete

Delete provides a mock function with given fields: id

func (*ClusterAssetGroupRepository) Get

Get provides a mock function with given fields: id

func (*ClusterAssetGroupRepository) Update

Update provides a mock function with given fields: assetGroup

type ResourceInterface

type ResourceInterface struct {
	mock.Mock
}

ResourceInterface is an autogenerated mock type for the ResourceInterface type

func (*ResourceInterface) Create

func (_m *ResourceInterface) Create(ctx context.Context, obj *unstructured.Unstructured, options v1.CreateOptions, subresources ...string) (*unstructured.Unstructured, error)

Create provides a mock function with given fields: ctx, obj, options, subresources

func (*ResourceInterface) Delete

func (_m *ResourceInterface) Delete(ctx context.Context, name string, opts v1.DeleteOptions, subresources ...string) error

Delete provides a mock function with given fields: ctx, name, opts, subresources

func (*ResourceInterface) Get

func (_m *ResourceInterface) Get(ctx context.Context, name string, opts v1.GetOptions, subresources ...string) (*unstructured.Unstructured, error)

Get provides a mock function with given fields: ctx, name, opts, subresources

func (*ResourceInterface) Update

func (_m *ResourceInterface) Update(ctx context.Context, obj *unstructured.Unstructured, options v1.UpdateOptions, subresources ...string) (*unstructured.Unstructured, error)

Update provides a mock function with given fields: ctx, obj, options, subresources

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) Delete

func (_m *Service) Delete(id string) apperrors.AppError

Delete provides a mock function with given fields: id

func (*Service) Put

func (_m *Service) Put(id string, assets []clusterassetgroup.Asset) apperrors.AppError

Put provides a mock function with given fields: id, assets

Jump to

Keyboard shortcuts

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