registered

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2016 License: 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 added in v0.3.0

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 added in v0.3.0

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

EnabledVersions returns all enabled versions.

func EnabledVersionsForGroup added in v0.3.0

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

EnabledVersionsForGroup returns all enabled versions for a group.

func IsAllowedVersion added in v0.3.0

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 added in v0.3.0

func IsEnabledVersion(v unversioned.GroupVersion) bool

IsEnabledVersion returns if a version is enabled.

func IsRegisteredVersion added in v0.3.0

func IsRegisteredVersion(v unversioned.GroupVersion) bool

IsRegisteredVersion returns if a version is registered.

func RegisterVersions added in v0.3.0

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 added in v0.3.0

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

RegisteredVersionsForGroup returns all registered versions for a group.

func ValidateEnvRequestedVersions added in v0.3.0

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