Documentation ¶
Index ¶
- type FakeDiscovery
- func (c *FakeDiscovery) OpenAPISchema() (*openapi_v2.Document, error)
- func (c *FakeDiscovery) OpenAPIV3() openapi.Client
- func (c *FakeDiscovery) RESTClient() restclient.Interface
- func (c *FakeDiscovery) ServerGroups() (*metav1.APIGroupList, error)
- func (c *FakeDiscovery) ServerGroupsAndResources() ([]*metav1.APIGroup, []*metav1.APIResourceList, error)
- func (c *FakeDiscovery) ServerPreferredNamespacedResources() ([]*metav1.APIResourceList, error)
- func (c *FakeDiscovery) ServerPreferredResources() ([]*metav1.APIResourceList, error)
- func (c *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)
- func (c *FakeDiscovery) ServerVersion() (*version.Info, error)
- func (c *FakeDiscovery) WithLegacy() discovery.DiscoveryInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDiscovery ¶
FakeDiscovery implements discovery.DiscoveryInterface and sometimes calls testing.Fake.Invoke with an action, but doesn't respect the return value if any. There is a way to fake static values like ServerVersion by using the Faked... fields on the struct.
func (*FakeDiscovery) OpenAPISchema ¶
func (c *FakeDiscovery) OpenAPISchema() (*openapi_v2.Document, error)
OpenAPISchema retrieves and parses the swagger API schema the server supports.
func (*FakeDiscovery) OpenAPIV3 ¶ added in v0.24.0
func (c *FakeDiscovery) OpenAPIV3() openapi.Client
func (*FakeDiscovery) RESTClient ¶
func (c *FakeDiscovery) RESTClient() restclient.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeDiscovery) ServerGroups ¶
func (c *FakeDiscovery) ServerGroups() (*metav1.APIGroupList, error)
ServerGroups returns the supported groups, with information like supported versions and the preferred version.
func (*FakeDiscovery) ServerGroupsAndResources ¶
func (c *FakeDiscovery) ServerGroupsAndResources() ([]*metav1.APIGroup, []*metav1.APIResourceList, error)
ServerGroupsAndResources returns the supported groups and resources for all groups and versions.
func (*FakeDiscovery) ServerPreferredNamespacedResources ¶
func (c *FakeDiscovery) ServerPreferredNamespacedResources() ([]*metav1.APIResourceList, error)
ServerPreferredNamespacedResources returns the supported namespaced resources with the version preferred by the server.
func (*FakeDiscovery) ServerPreferredResources ¶
func (c *FakeDiscovery) ServerPreferredResources() ([]*metav1.APIResourceList, error)
ServerPreferredResources returns the supported resources with the version preferred by the server.
func (*FakeDiscovery) ServerResourcesForGroupVersion ¶
func (c *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)
ServerResourcesForGroupVersion returns the supported resources for a group and version.
func (*FakeDiscovery) ServerVersion ¶
func (c *FakeDiscovery) ServerVersion() (*version.Info, error)
ServerVersion retrieves and parses the server's version.
func (*FakeDiscovery) WithLegacy ¶ added in v0.26.0
func (c *FakeDiscovery) WithLegacy() discovery.DiscoveryInterface