...

Package fake

Overview ▾

type FakeDiscovery

type FakeDiscovery struct {
    *fake.FakeDiscovery
    // contains filtered or unexported fields
}

func NewFakeDiscovery

func NewFakeDiscovery() *FakeDiscovery

NewFakeDiscovery returns a FakeDiscovery instance

func (*FakeDiscovery) AddResourceList

func (c *FakeDiscovery) AddResourceList(key string, are *metav1.APIResourceList)

AddResourceList appends a resource to the APIResourceList

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 returns the server version information of the FakeDiscovery client instance

type ResourceMapEntry

type ResourceMapEntry struct {
    // contains filtered or unexported fields
}