client-go: k8s.io/client-go/discovery/fake Index | Files

package fake

import "k8s.io/client-go/discovery/fake"

Index

Package Files

discovery.go

type FakeDiscovery Uses

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 Uses

func (c *FakeDiscovery) OpenAPISchema() (*openapi_v2.Document, error)

func (*FakeDiscovery) RESTClient Uses

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

func (*FakeDiscovery) ServerGroups Uses

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

func (*FakeDiscovery) ServerPreferredNamespacedResources Uses

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

func (*FakeDiscovery) ServerPreferredResources Uses

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

func (*FakeDiscovery) ServerResources Uses

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

func (*FakeDiscovery) ServerResourcesForGroupVersion Uses

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

func (*FakeDiscovery) ServerVersion Uses

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

Package fake imports 8 packages (graph) and is imported by 126 packages. Updated 2018-03-17. Refresh now. Tools for package owners.