kubernetesk8s.io/kubernetes/pkg/api/testapi Index | Files

package testapi

import "k8s.io/kubernetes/pkg/api/testapi"

Package testapi provides a helper for retrieving the KUBE_API_VERSION environment variable.

Index

Functions

func Codec

func Codec() runtime.Codec

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

func Converter

func Converter() runtime.ObjectConvertor

Converter returns the api.Scheme for the API version to test against, as set by the KUBE_API_VERSION env var.

func MetadataAccessor

func MetadataAccessor() meta.MetadataAccessor

MetadataAccessor returns the MetadataAccessor for the API version to test against, as set by the KUBE_API_VERSION env var.

func SelfLink(resource, name string) string

SelfLink returns a self link that will appear to be for the version Version(). 'resource' should be the resource path, e.g. "pods" for the Pod type. 'name' should be empty for lists.

func Version

func Version() string

Version returns the API version to test against, as set by the KUBE_API_VERSION env var.

Source Files

testapi.go

Version
v0.9.3
Published
Jan 30, 2015
Platform
windows/amd64
Imports
5 packages
Last checked
1 minute ago

Tools for package owners.