fake

package
v0.0.0-...-123e828 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2019 License: GPL-3.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDiscovery

type FakeDiscovery struct {
	*testing.Fake
	FakedServerVersion *version.Info
}

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)

func (*FakeDiscovery) RESTClient

func (c *FakeDiscovery) RESTClient() restclient.Interface

func (*FakeDiscovery) ServerGroups

func (c *FakeDiscovery) ServerGroups() (*metav1.APIGroupList, error)

func (*FakeDiscovery) ServerPreferredNamespacedResources

func (c *FakeDiscovery) ServerPreferredNamespacedResources() ([]*metav1.APIResourceList, error)

func (*FakeDiscovery) ServerPreferredResources

func (c *FakeDiscovery) ServerPreferredResources() ([]*metav1.APIResourceList, error)

func (*FakeDiscovery) ServerResources

func (c *FakeDiscovery) ServerResources() ([]*metav1.APIResourceList, error)

func (*FakeDiscovery) ServerResourcesForGroupVersion

func (c *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)

func (*FakeDiscovery) ServerVersion

func (c *FakeDiscovery) ServerVersion() (*version.Info, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL