mocks

package
v0.0.0-...-6a1c4ee Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 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 ResourceApplier

type ResourceApplier struct {
	mock.Mock
}

ResourceApplier is an autogenerated mock type for the ResourceApplier type

func (*ResourceApplier) Apply

func (_m *ResourceApplier) Apply(resource *unstructured.Unstructured) error

Apply provides a mock function with given fields: resource

type ResourceManager

type ResourceManager struct {
	mock.Mock
}

ResourceManager is an autogenerated mock type for the ResourceManager type

func (*ResourceManager) CreateResource

func (_m *ResourceManager) CreateResource(resource *unstructured.Unstructured, gvk schema.GroupVersionKind, opts v1.CreateOptions) error

CreateResource provides a mock function with given fields: resource, gvk, opts

func (*ResourceManager) DeleteCollectionOfResources

func (_m *ResourceManager) DeleteCollectionOfResources(gvk schema.GroupVersionKind, opts v1.DeleteOptions, listOps v1.ListOptions) error

DeleteCollectionOfResources provides a mock function with given fields: gvk, opts, listOps

func (*ResourceManager) GetResource

func (_m *ResourceManager) GetResource(resourceName string, gvk schema.GroupVersionKind, opts v1.GetOptions) (*unstructured.Unstructured, error)

GetResource provides a mock function with given fields: resourceName, gvk, opts

func (*ResourceManager) UpdateResource

UpdateResource provides a mock function with given fields: resource, gvk, opts

type ResourceParser

type ResourceParser struct {
	mock.Mock
}

ResourceParser is an autogenerated mock type for the ResourceParser type

func (*ResourceParser) ParseFile

func (_m *ResourceParser) ParseFile(path string) (*unstructured.Unstructured, error)

ParseUnstructuredResourceFrom provides a mock function with given fields: path

Jump to

Keyboard shortcuts

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