registered

package
v0.0.0-...-58e98f8 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2016 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package to keep track of API Versions that should be registered in api.Scheme.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableVersions

func EnableVersions(versions ...unversioned.GroupVersion) error

EnableVersions add the versions to the enabledVersions. The caller of this function is responsible to add the version to 'latest' and 'Scheme'.

func EnabledVersions

func EnabledVersions() (ret []unversioned.GroupVersion)

EnabledVersions returns all enabled versions.

func EnabledVersionsForGroup

func EnabledVersionsForGroup(group string) (ret []unversioned.GroupVersion)

EnabledVersionsForGroup returns all enabled versions for a group.

func IsAllowedVersion

func IsAllowedVersion(v unversioned.GroupVersion) bool

IsAllowedVersion returns if the version is allowed by the KUBE_API_VERSIONS environment variable. If the environment variable is empty, then it always returns true.

func IsEnabledVersion

func IsEnabledVersion(v unversioned.GroupVersion) bool

IsEnabledVersion returns if a version is enabled.

func IsRegisteredVersion

func IsRegisteredVersion(v unversioned.GroupVersion) bool

IsRegisteredVersion returns if a version is registered.

func RegisterVersions

func RegisterVersions(versions ...unversioned.GroupVersion)

RegisterVersions add the versions the registeredVersions.

func RegisteredVersions

func RegisteredVersions() (ret []unversioned.GroupVersion)

RegisteredVersions returns all registered versions.

func RegisteredVersionsForGroup

func RegisteredVersionsForGroup(group string) (ret []unversioned.GroupVersion)

RegisteredVersionsForGroup returns all registered versions for a group.

func ValidateEnvRequestedVersions

func ValidateEnvRequestedVersions() []unversioned.GroupVersion

ValidateEnvRequestedVersions returns a list of versions that are requested in the KUBE_API_VERSIONS environment variable, but not enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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