testapi

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

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

Go to latest
Published: Nov 27, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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