Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedDiscoveryClient ¶
type CachedDiscoveryClient struct {
discovery.DiscoveryInterface
}
func (*CachedDiscoveryClient) Fresh ¶
func (c *CachedDiscoveryClient) Fresh() bool
Fresh returns true if no cached data was used that had been retrieved before the instantiation.
func (*CachedDiscoveryClient) Invalidate ¶
func (c *CachedDiscoveryClient) Invalidate()
Invalidate enforces that no cached data is used in the future that is older than the current time.
type ClientPool ¶ added in v0.2.0
type ClientPool interface { // ClientForGroupVersionKind returns a client configured for the specified groupVersionKind. // Kind may be empty. ClientForGroupVersionKind(schema.GroupVersionKind) (dynamic.Interface, error) }
ClientPool manages a pool of dynamic clients.
type DynamicClient ¶
type DynamicClient struct {
CoreDynamic, ScDynamic ClientPool
Mapper, ScMapper Mapper
}
func NewClient ¶
func NewClient(config, scConfig *rest.Config, clientset kubernetes.Interface, scClient scClientset.Interface) *DynamicClient
func (*DynamicClient) ForGVK ¶
func (c *DynamicClient) ForGVK(gvk schema.GroupVersionKind, namespace string) (dynamic.ResourceInterface, error)
Click to show internal directories.
Click to hide internal directories.