latest

package
v3.7.57-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package latest defines the default output serializations that code should use and imports the required schemas. It also ensures all previously known and supported API versions are available for conversion. Consumers may import this package in lieu of importing individual versions.

Index

Constants

This section is empty.

Variables

View Source
var OldestVersion = schema.GroupVersion{Group: "", Version: "v1"}

OldestVersion is the string that represents the oldest server version supported, for client code that wants to hardcode the lowest common denominator.

View Source
var Version = schema.GroupVersion{Group: "", Version: "v1"}

Version is the string that represents the current external default version.

View Source
var Versions = []schema.GroupVersion{
	{Group: "authorization.openshift.io", Version: "v1"},
	{Group: "build.openshift.io", Version: "v1"},
	{Group: "apps.openshift.io", Version: "v1"},
	{Group: "template.openshift.io", Version: "v1"},
	{Group: "image.openshift.io", Version: "v1"},
	{Group: "project.openshift.io", Version: "v1"},
	{Group: "user.openshift.io", Version: "v1"},
	{Group: "oauth.openshift.io", Version: "v1"},
	{Group: "network.openshift.io", Version: "v1"},
	{Group: "route.openshift.io", Version: "v1"},
	{Group: "quota.openshift.io", Version: "v1"},
	{Group: "security.openshift.io", Version: "v1"},
	{Group: "", Version: "v1"},
}

Versions is the list of versions that are recognized in code. The order provided may be assumed to be most preferred to least preferred, and clients may choose to prefer the earlier items in the list over the latter items when presented with a set of versions to choose.

Functions

func IsKindInAnyOriginGroup added in v1.1.2

func IsKindInAnyOriginGroup(kind string) bool

IsKindInAnyOriginGroup returns true if OpenShift owns the kind described in any apiVersion. TODO: this may not work once we divide builds/deployments/images into their own API groups

func IsOriginAPIGroup

func IsOriginAPIGroup(groupName string) bool

IsOriginAPIGroup returns true if the provided group name belongs to Origin API.

func OriginKind added in v0.2.1

func OriginKind(gvk schema.GroupVersionKind) bool

OriginKind returns true if OpenShift owns the GroupVersionKind.

func OriginLegacyKind

func OriginLegacyKind(gvk schema.GroupVersionKind) bool

OriginLegacyKind returns true for OriginKinds which are not in their own api group.

Types

This section is empty.

Jump to

Keyboard shortcuts

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