Documentation ¶
Index ¶
- func WithSchemes(fns ...func(s *runtime.Scheme) error)
- type Client
- type InternalClient
- func (c *InternalClient) Cache() cache.Cache
- func (c *InternalClient) CacheDiscovery() discovery.CachedDiscoveryInterface
- func (c *InternalClient) ClientSet() kubernetes.Interface
- func (c *InternalClient) Direct() client.Client
- func (c *InternalClient) Discovery() discovery.DiscoveryInterface
- func (c *InternalClient) Metrics() versioned.Interface
- func (c *InternalClient) RESTMapper() meta.RESTMapper
- func (c *InternalClient) RefreshCacheDiscovery()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithSchemes ¶
WithSchemes allow add extensions scheme to client
Types ¶
type Client ¶
type Client interface { Cache() cache.Cache Direct() client.Client // todo: aggregate to versioned Metrics() versioned.Interface ClientSet() kubernetes.Interface Discovery() discovery.DiscoveryInterface CacheDiscovery() discovery.CachedDiscoveryInterface RESTMapper() meta.RESTMapper }
Client retrieves k8s resource with cache or not
type InternalClient ¶
type InternalClient struct {
// contains filtered or unexported fields
}
func (*InternalClient) Cache ¶
func (c *InternalClient) Cache() cache.Cache
func (*InternalClient) CacheDiscovery ¶ added in v1.7.6
func (c *InternalClient) CacheDiscovery() discovery.CachedDiscoveryInterface
func (*InternalClient) ClientSet ¶
func (c *InternalClient) ClientSet() kubernetes.Interface
func (*InternalClient) Direct ¶
func (c *InternalClient) Direct() client.Client
func (*InternalClient) Discovery ¶
func (c *InternalClient) Discovery() discovery.DiscoveryInterface
func (*InternalClient) Metrics ¶
func (c *InternalClient) Metrics() versioned.Interface
func (*InternalClient) RESTMapper ¶
func (c *InternalClient) RESTMapper() meta.RESTMapper
func (*InternalClient) RefreshCacheDiscovery ¶ added in v1.9.0
func (c *InternalClient) RefreshCacheDiscovery()
RefreshCacheDiscovery refresh cache discovery
Click to show internal directories.
Click to hide internal directories.