testutils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package testutils provides specialized resources for use with unit testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeClientset added in v0.4.0

func NewFakeClientset(objs ...runtime.Object) k8s.Interface

NewFakeClientset creates a new instance of a fake Kubernetes clientset

func NewFakeDynamic added in v0.2.0

func NewFakeDynamic(objs ...runtime.Object) (*dynamicfake.FakeDynamicClient, error)

NewFakeDynamic creates a new instance of a fake dynamic client with a default scheme

Types

type FakeRESTMapper added in v0.3.0

type FakeRESTMapper struct {
	meta.RESTMapper
}

FakeRESTMapper provides a basic RESTMapper for use with testing

func (*FakeRESTMapper) RESTMapping added in v0.3.0

func (f *FakeRESTMapper) RESTMapping(gk schema.GroupKind, _ ...string) (*meta.RESTMapping, error)

RESTMapping provides information needed to deal with supported REST resources

Jump to

Keyboard shortcuts

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