Documentation ¶
Index ¶
- Variables
- func APIResourceForGVK(client discovery.DiscoveryInterface, input schema.GroupVersionKind) (metav1.APIResource, error)
- func CheckAPIVersion(client discovery.DiscoveryInterface, constraint string) (bool, error)
- func DetectResource(restmapper *DefaultRESTMapper, obj interface{}) (schema.GroupVersionResource, error)
- func FilterAPISubResources(resources []metav1.APIResource) []metav1.APIResource
- func FilterSubResources(resources []schema.GroupVersionResource) []schema.GroupVersionResource
- func GetBaseVersion(client discovery.DiscoveryInterface) (string, error)
- func GetVersion(client discovery.DiscoveryInterface) (string, error)
- func IsDefaultSupportedVersion(kc kubernetes.Interface) error
- func IsPreferredAPIResource(client discovery.DiscoveryInterface, groupVersion, kind string) bool
- func IsSupportedVersion(kc kubernetes.Interface, constraint string, ...) error
- func ResourceForGVK(client discovery.DiscoveryInterface, input schema.GroupVersionKind) (schema.GroupVersionResource, error)
- type AmbiguousResourceError
- type DefaultRESTMapper
- func (m *DefaultRESTMapper) AddSpecific(kind schema.GroupVersionKind, plural, singular schema.GroupVersionResource)
- func (m *DefaultRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error)
- func (m *DefaultRESTMapper) KindsFor(input schema.GroupVersionResource) ([]schema.GroupVersionKind, error)
- func (m *DefaultRESTMapper) ResourceFor(resource schema.GroupVersionResource) (schema.GroupVersionResource, error)
- func (m *DefaultRESTMapper) ResourceForKind(input schema.GroupVersionKind) (schema.GroupVersionResource, error)
- func (m *DefaultRESTMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error)
- func (m *DefaultRESTMapper) ResourcesForKind(input schema.GroupVersionKind) ([]schema.GroupVersionResource, error)
- type KnownBug
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultConstraint = ">= 1.9.0" DefaultBlackListedVersions map[string]error DefaultBlackListedMultiMasterVersions = map[string]error{ "1.9.0": err62649_K1_9, "1.9.1": err62649_K1_9, "1.9.2": err62649_K1_9, "1.9.3": err62649_K1_9, "1.9.4": err62649_K1_9, "1.9.5": err62649_K1_9, "1.9.6": err62649_K1_9, "1.9.7": err62649_K1_9, "1.10.0": err62649_K1_10, "1.10.1": err62649_K1_10, } )
Functions ¶
func APIResourceForGVK ¶
func APIResourceForGVK(client discovery.DiscoveryInterface, input schema.GroupVersionKind) (metav1.APIResource, error)
func CheckAPIVersion ¶
func CheckAPIVersion(client discovery.DiscoveryInterface, constraint string) (bool, error)
func DetectResource ¶
func DetectResource(restmapper *DefaultRESTMapper, obj interface{}) (schema.GroupVersionResource, error)
func FilterAPISubResources ¶
func FilterAPISubResources(resources []metav1.APIResource) []metav1.APIResource
func FilterSubResources ¶
func FilterSubResources(resources []schema.GroupVersionResource) []schema.GroupVersionResource
func GetBaseVersion ¶
func GetBaseVersion(client discovery.DiscoveryInterface) (string, error)
func GetVersion ¶
func GetVersion(client discovery.DiscoveryInterface) (string, error)
func IsDefaultSupportedVersion ¶
func IsDefaultSupportedVersion(kc kubernetes.Interface) error
func IsPreferredAPIResource ¶
func IsPreferredAPIResource(client discovery.DiscoveryInterface, groupVersion, kind string) bool
func IsSupportedVersion ¶
func ResourceForGVK ¶
func ResourceForGVK(client discovery.DiscoveryInterface, input schema.GroupVersionKind) (schema.GroupVersionResource, error)
Types ¶
type AmbiguousResourceError ¶
type AmbiguousResourceError struct { PartialResource schema.GroupVersionKind MatchingResources []schema.GroupVersionResource MatchingKinds []schema.GroupVersionKind }
AmbiguousResourceError is returned if the RESTMapper finds multiple matches for a resource
func (*AmbiguousResourceError) Error ¶
func (e *AmbiguousResourceError) Error() string
type DefaultRESTMapper ¶
type DefaultRESTMapper struct {
// contains filtered or unexported fields
}
func LoadRestMapper ¶
func LoadRestMapper(client discovery.DiscoveryInterface) (*DefaultRESTMapper, error)
func NewDefaultRESTMapper ¶
func NewDefaultRESTMapper(defaultGroupVersions []schema.GroupVersion) *DefaultRESTMapper
func (*DefaultRESTMapper) AddSpecific ¶
func (m *DefaultRESTMapper) AddSpecific(kind schema.GroupVersionKind, plural, singular schema.GroupVersionResource)
func (*DefaultRESTMapper) KindFor ¶
func (m *DefaultRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error)
func (*DefaultRESTMapper) KindsFor ¶
func (m *DefaultRESTMapper) KindsFor(input schema.GroupVersionResource) ([]schema.GroupVersionKind, error)
func (*DefaultRESTMapper) ResourceFor ¶
func (m *DefaultRESTMapper) ResourceFor(resource schema.GroupVersionResource) (schema.GroupVersionResource, error)
func (*DefaultRESTMapper) ResourceForKind ¶
func (m *DefaultRESTMapper) ResourceForKind(input schema.GroupVersionKind) (schema.GroupVersionResource, error)
func (*DefaultRESTMapper) ResourcesFor ¶
func (m *DefaultRESTMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error)
func (*DefaultRESTMapper) ResourcesForKind ¶
func (m *DefaultRESTMapper) ResourcesForKind(input schema.GroupVersionKind) ([]schema.GroupVersionResource, error)
Click to show internal directories.
Click to hide internal directories.