Documentation ¶
Index ¶
- type Clientset
- type FakeDiscovery
- func (c *FakeDiscovery) ServerGroups() (*unversioned.APIGroupList, error)
- func (c *FakeDiscovery) ServerResources() (map[string]*unversioned.APIResourceList, error)
- func (c *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*unversioned.APIResourceList, error)
- func (c *FakeDiscovery) ServerVersion() (*version.Info, error)
- func (c *FakeDiscovery) SwaggerSchema(version unversioned.GroupVersion) (*swagger.ApiDeclaration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clientset ¶
Clientset implements clientset.Interface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func NewSimpleClientset ¶
Clientset returns a clientset that will respond with the provided objects
func (*Clientset) Discovery ¶
func (c *Clientset) Discovery() unversioned.DiscoveryInterface
func (*Clientset) Extensions ¶
func (c *Clientset) Extensions() extensions_unversioned.ExtensionsInterface
func (*Clientset) Legacy ¶
func (c *Clientset) Legacy() legacy_unversioned.LegacyInterface
type FakeDiscovery ¶
func (*FakeDiscovery) ServerGroups ¶
func (c *FakeDiscovery) ServerGroups() (*unversioned.APIGroupList, error)
func (*FakeDiscovery) ServerResources ¶
func (c *FakeDiscovery) ServerResources() (map[string]*unversioned.APIResourceList, error)
func (*FakeDiscovery) ServerResourcesForGroupVersion ¶
func (c *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*unversioned.APIResourceList, error)
func (*FakeDiscovery) ServerVersion ¶
func (c *FakeDiscovery) ServerVersion() (*version.Info, error)
func (*FakeDiscovery) SwaggerSchema ¶
func (c *FakeDiscovery) SwaggerSchema(version unversioned.GroupVersion) (*swagger.ApiDeclaration, error)
Click to show internal directories.
Click to hide internal directories.