apimachinery: k8s.io/apimachinery/pkg/api/apitesting Index | Files | Directories

package apitesting

import "k8s.io/apimachinery/pkg/api/apitesting"

Index

Package Files

codec.go

func SchemeForInstallOrDie Uses

func SchemeForInstallOrDie(installFns ...InstallOrDieFunc) (*runtime.Scheme, runtimeserializer.CodecFactory)

SchemeForInstallOrDie builds a simple test scheme and codecfactory pair for easy unit testing from higher level install methods

func SchemeForOrDie Uses

func SchemeForOrDie(installFns ...InstallFunc) (*runtime.Scheme, runtimeserializer.CodecFactory)

SchemeForOrDie builds a simple test scheme and codecfactory pair for easy unit testing from the bare registration methods.

func TestCodec Uses

func TestCodec(codecs runtimeserializer.CodecFactory, gvs ...schema.GroupVersion) runtime.Codec

TestCodec returns the codec for the API version to test against, as set by the KUBE_TEST_API_TYPE env var.

func TestStorageCodec Uses

func TestStorageCodec(codecs runtimeserializer.CodecFactory, gvs ...schema.GroupVersion) runtime.Codec

TestStorageCodec returns the codec for the API version to test against used in storage, as set by the KUBE_TEST_API_STORAGE_TYPE env var.

type InstallFunc Uses

type InstallFunc func(scheme *runtime.Scheme) error

InstallFunc mirrors install functions that can return an error

type InstallOrDieFunc Uses

type InstallOrDieFunc func(scheme *runtime.Scheme)

InstallOrDieFunc mirrors install functions that require success

Directories

PathSynopsis
fuzzer
naming
roundtrip

Package apitesting imports 7 packages (graph) and is imported by 25 packages. Updated 2019-06-10. Refresh now. Tools for package owners.