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 ¶ 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.