dynamicmapper

package
v0.0.0-...-4b56dc5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 17 Imported by: 1

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
}

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) ServerGroupsAndResources

func (c *FakeDiscovery) ServerGroupsAndResources() ([]*metav1.APIGroup, []*metav1.APIResourceList, 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)

func (*FakeDiscovery) SwaggerSchema

func (c *FakeDiscovery) SwaggerSchema(version schema.GroupVersion) (*swagger.ApiDeclaration, error)

type RegeneratingDiscoveryRESTMapper

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

RengeneratingDiscoveryRESTMapper is a RESTMapper which Regenerates its cache of mappings periodically. It functions by recreating a normal discovery RESTMapper at the specified interval. We don't refresh automatically on cache misses, since we get called on every label, plenty of which will be unrelated to Kubernetes resources.

func NewRESTMapper

func NewRESTMapper(discoveryClient discovery.DiscoveryInterface, refreshInterval time.Duration) (*RegeneratingDiscoveryRESTMapper, error)

func (*RegeneratingDiscoveryRESTMapper) KindFor

func (*RegeneratingDiscoveryRESTMapper) KindsFor

func (*RegeneratingDiscoveryRESTMapper) RESTMapping

func (m *RegeneratingDiscoveryRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)

func (*RegeneratingDiscoveryRESTMapper) RESTMappings

func (m *RegeneratingDiscoveryRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)

func (*RegeneratingDiscoveryRESTMapper) RegenerateMappings

func (m *RegeneratingDiscoveryRESTMapper) RegenerateMappings() error

func (*RegeneratingDiscoveryRESTMapper) ResourceFor

func (*RegeneratingDiscoveryRESTMapper) ResourceSingularizer

func (m *RegeneratingDiscoveryRESTMapper) ResourceSingularizer(resource string) (singular string, err error)

func (*RegeneratingDiscoveryRESTMapper) ResourcesFor

func (*RegeneratingDiscoveryRESTMapper) RunUntil

func (m *RegeneratingDiscoveryRESTMapper) RunUntil(stop <-chan struct{})

RunUtil runs the mapping refresher until the given stop channel is closed.

Jump to

Keyboard shortcuts

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