mocks

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 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 CacheableObject added in v0.18.0

type CacheableObject struct {
	mock.Mock
}

CacheableObject is an autogenerated mock type for the CacheableObject type

func NewCacheableObject added in v0.19.1

func NewCacheableObject(t interface {
	mock.TestingT
	Cleanup(func())
}) *CacheableObject

NewCacheableObject creates a new instance of CacheableObject. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CacheableObject) CacheEncode added in v0.18.0

func (_m *CacheableObject) CacheEncode(id runtime.Identifier, encode func(runtime.Object, io.Writer) error, w io.Writer) error

CacheEncode provides a mock function with given fields: id, encode, w

func (*CacheableObject) GetObject added in v0.18.0

func (_m *CacheableObject) GetObject() runtime.Object

GetObject provides a mock function with given fields:

type NestedObjectDecoder added in v0.18.0

type NestedObjectDecoder struct {
	mock.Mock
}

NestedObjectDecoder is an autogenerated mock type for the NestedObjectDecoder type

func NewNestedObjectDecoder added in v0.19.1

func NewNestedObjectDecoder(t interface {
	mock.TestingT
	Cleanup(func())
}) *NestedObjectDecoder

NewNestedObjectDecoder creates a new instance of NestedObjectDecoder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NestedObjectDecoder) DecodeNestedObjects added in v0.18.0

func (_m *NestedObjectDecoder) DecodeNestedObjects(d runtime.Decoder) error

DecodeNestedObjects provides a mock function with given fields: d

type NestedObjectEncoder added in v0.18.0

type NestedObjectEncoder struct {
	mock.Mock
}

NestedObjectEncoder is an autogenerated mock type for the NestedObjectEncoder type

func NewNestedObjectEncoder added in v0.19.1

func NewNestedObjectEncoder(t interface {
	mock.TestingT
	Cleanup(func())
}) *NestedObjectEncoder

NewNestedObjectEncoder creates a new instance of NestedObjectEncoder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NestedObjectEncoder) EncodeNestedObjects added in v0.18.0

func (_m *NestedObjectEncoder) EncodeNestedObjects(e runtime.Encoder) error

EncodeNestedObjects provides a mock function with given fields: e

type Object

type Object struct {
	mock.Mock
}

Object is an autogenerated mock type for the Object type

func NewObject added in v0.19.1

func NewObject(t interface {
	mock.TestingT
	Cleanup(func())
}) *Object

NewObject creates a new instance of Object. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Object) DeepCopyObject

func (_m *Object) DeepCopyObject() runtime.Object

DeepCopyObject provides a mock function with given fields:

func (*Object) GetObjectKind

func (_m *Object) GetObjectKind() schema.ObjectKind

GetObjectKind provides a mock function with given fields:

type ObjectConvertor added in v0.18.0

type ObjectConvertor struct {
	mock.Mock
}

ObjectConvertor is an autogenerated mock type for the ObjectConvertor type

func NewObjectConvertor added in v0.19.1

func NewObjectConvertor(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObjectConvertor

NewObjectConvertor creates a new instance of ObjectConvertor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ObjectConvertor) Convert added in v0.18.0

func (_m *ObjectConvertor) Convert(in interface{}, out interface{}, context interface{}) error

Convert provides a mock function with given fields: in, out, context

func (*ObjectConvertor) ConvertFieldLabel added in v0.18.0

func (_m *ObjectConvertor) ConvertFieldLabel(gvk schema.GroupVersionKind, label string, value string) (string, string, error)

ConvertFieldLabel provides a mock function with given fields: gvk, label, value

func (*ObjectConvertor) ConvertToVersion added in v0.18.0

func (_m *ObjectConvertor) ConvertToVersion(in runtime.Object, gv runtime.GroupVersioner) (runtime.Object, error)

ConvertToVersion provides a mock function with given fields: in, gv

type ObjectCreater added in v0.18.0

type ObjectCreater struct {
	mock.Mock
}

ObjectCreater is an autogenerated mock type for the ObjectCreater type

func NewObjectCreater added in v0.19.1

func NewObjectCreater(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObjectCreater

NewObjectCreater creates a new instance of ObjectCreater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ObjectCreater) New added in v0.18.0

New provides a mock function with given fields: kind

type ObjectDefaulter added in v0.18.0

type ObjectDefaulter struct {
	mock.Mock
}

ObjectDefaulter is an autogenerated mock type for the ObjectDefaulter type

func NewObjectDefaulter added in v0.19.1

func NewObjectDefaulter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObjectDefaulter

NewObjectDefaulter creates a new instance of ObjectDefaulter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ObjectDefaulter) Default added in v0.18.0

func (_m *ObjectDefaulter) Default(in runtime.Object)

Default provides a mock function with given fields: in

type ObjectTyper added in v0.18.0

type ObjectTyper struct {
	mock.Mock
}

ObjectTyper is an autogenerated mock type for the ObjectTyper type

func NewObjectTyper added in v0.19.1

func NewObjectTyper(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObjectTyper

NewObjectTyper creates a new instance of ObjectTyper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ObjectTyper) ObjectKinds added in v0.18.0

func (_m *ObjectTyper) ObjectKinds(_a0 runtime.Object) ([]schema.GroupVersionKind, bool, error)

ObjectKinds provides a mock function with given fields: _a0

func (*ObjectTyper) Recognizes added in v0.18.0

func (_m *ObjectTyper) Recognizes(gvk schema.GroupVersionKind) bool

Recognizes provides a mock function with given fields: gvk

type ObjectVersioner added in v0.18.0

type ObjectVersioner struct {
	mock.Mock
}

ObjectVersioner is an autogenerated mock type for the ObjectVersioner type

func NewObjectVersioner added in v0.19.1

func NewObjectVersioner(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObjectVersioner

NewObjectVersioner creates a new instance of ObjectVersioner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ObjectVersioner) ConvertToVersion added in v0.18.0

func (_m *ObjectVersioner) ConvertToVersion(in runtime.Object, gv runtime.GroupVersioner) (runtime.Object, error)

ConvertToVersion provides a mock function with given fields: in, gv

type UnstructuredConverter added in v0.18.0

type UnstructuredConverter struct {
	mock.Mock
}

UnstructuredConverter is an autogenerated mock type for the UnstructuredConverter type

func NewUnstructuredConverter added in v0.19.1

func NewUnstructuredConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *UnstructuredConverter

NewUnstructuredConverter creates a new instance of UnstructuredConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*UnstructuredConverter) FromUnstructured added in v0.18.0

func (_m *UnstructuredConverter) FromUnstructured(u map[string]interface{}, obj interface{}) error

FromUnstructured provides a mock function with given fields: u, obj

func (*UnstructuredConverter) ToUnstructured added in v0.18.0

func (_m *UnstructuredConverter) ToUnstructured(obj interface{}) (map[string]interface{}, error)

ToUnstructured provides a mock function with given fields: obj

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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