Documentation ¶
Overview ¶
Package to keep track of API Versions that should be registered in api.Scheme.
Index ¶
- func EnableVersions(versions ...unversioned.GroupVersion) error
- func EnabledVersions() (ret []unversioned.GroupVersion)
- func EnabledVersionsForGroup(group string) (ret []unversioned.GroupVersion)
- func IsAllowedVersion(v unversioned.GroupVersion) bool
- func IsEnabledVersion(v unversioned.GroupVersion) bool
- func IsRegisteredVersion(v unversioned.GroupVersion) bool
- func RegisterVersions(versions ...unversioned.GroupVersion)
- func RegisteredVersions() (ret []unversioned.GroupVersion)
- func RegisteredVersionsForGroup(group string) (ret []unversioned.GroupVersion)
- func ValidateEnvRequestedVersions() []unversioned.GroupVersion
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.