package
12.0.0+incompatible
Repository: https://github.com/kubernetes/client-go.git
Documentation: pkg.go.dev
# Functions
FilteredBy filters by the given predicate.
GroupVersionResources converts APIResourceLists to the GroupVersionResources.
IsGroupDiscoveryFailedError returns true if the provided error indicates the server was unable to discover a complete list of APIs for the client to use.
MatchesServerVersion queries the server to compares the build version (git hash) of the client with the server's build version.
NewDiscoveryClient returns a new DiscoveryClient for the given RESTClient.
NewDiscoveryClientForConfig creates a new DiscoveryClient for the given config.
NewDiscoveryClientForConfigOrDie creates a new DiscoveryClient for the given config.
ServerPreferredNamespacedResources uses the provided discovery interface to look up preferred namespaced resources.
ServerPreferredResources uses the provided discovery interface to look up preferred resources.
ServerResources uses the provided discovery interface to look up supported resources for all groups and versions.
ServerSupportsVersion returns an error if the server doesn't have the required version.
# Structs
DiscoveryClient implements the functions that discover server-supported API groups, versions and resources.
ErrGroupDiscoveryFailed is returned if one or more API groups fail to load.
SupportsAllVerbs is a predicate matching a resource iff all given verbs are supported.
# Interfaces
CachedDiscoveryInterface is a DiscoveryInterface with cache invalidation and freshness.
DiscoveryInterface holds the methods that discover server-supported API groups, versions and resources.
OpenAPISchemaInterface has a method to retrieve the open API schema.
ResourcePredicate has a method to check if a resource matches a given condition.
ServerGroupsInterface has methods for obtaining supported groups on the API server.
ServerResourcesInterface has methods for obtaining supported resources on the API server.
ServerVersionInterface has a method for retrieving the server's version.
# Type aliases
ResourcePredicateFunc returns true if it matches a resource based on a custom condition.