Documentation ¶
Index ¶
- func HasListAndWatchVerbs(apiResource metav1.APIResource) bool
- type DynamicDiscoveryInterface
- type DynamicDiscoveryManager
- func (c *DynamicDiscoveryManager) AttachAllCustomResourcesToSyncResources(resources []clusterv1alpha2.ClusterGroupResources) []clusterv1alpha2.ClusterGroupResources
- func (c *DynamicDiscoveryManager) GetAPIResourceAndVersions(resource schema.GroupResource) (*metav1.APIResource, []string)
- func (c *DynamicDiscoveryManager) GetAllResourcesAsSyncResources() []clusterv1alpha2.ClusterGroupResources
- func (c *DynamicDiscoveryManager) GetAndFetchServerVersion() (version.Info, error)
- func (c *DynamicDiscoveryManager) GetGroupResourcesAsSyncResources(group string) *clusterv1alpha2.ClusterGroupResources
- func (c *DynamicDiscoveryManager) GetGroupType(group string) GroupType
- func (c *DynamicDiscoveryManager) Prepare(cfg interface{})
- func (c *DynamicDiscoveryManager) ServerVersion() version.Info
- func (c *DynamicDiscoveryManager) Start(stopCh <-chan struct{})
- func (c *DynamicDiscoveryManager) WatchAggregatorResourceTypes(watch bool)
- func (c *DynamicDiscoveryManager) WatchServerVersion(watch bool)
- type GroupType
- type PrepareConfig
- type ResourcesInterface
- type ServerVersionInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasListAndWatchVerbs ¶
func HasListAndWatchVerbs(apiResource metav1.APIResource) bool
Types ¶
type DynamicDiscoveryInterface ¶
type DynamicDiscoveryInterface interface { ServerVersionInterface ResourcesInterface Prepare(c interface{}) Start(stopCh <-chan struct{}) WatchServerVersion(watch bool) WatchAggregatorResourceTypes(watch bool) }
type DynamicDiscoveryManager ¶
type DynamicDiscoveryManager struct {
// contains filtered or unexported fields
}
func NewDynamicDiscoveryManager ¶
func NewDynamicDiscoveryManager(name string, config *rest.Config) (*DynamicDiscoveryManager, error)
func (*DynamicDiscoveryManager) AttachAllCustomResourcesToSyncResources ¶
func (c *DynamicDiscoveryManager) AttachAllCustomResourcesToSyncResources(resources []clusterv1alpha2.ClusterGroupResources) []clusterv1alpha2.ClusterGroupResources
func (*DynamicDiscoveryManager) GetAPIResourceAndVersions ¶
func (c *DynamicDiscoveryManager) GetAPIResourceAndVersions(resource schema.GroupResource) (*metav1.APIResource, []string)
func (*DynamicDiscoveryManager) GetAllResourcesAsSyncResources ¶
func (c *DynamicDiscoveryManager) GetAllResourcesAsSyncResources() []clusterv1alpha2.ClusterGroupResources
func (*DynamicDiscoveryManager) GetAndFetchServerVersion ¶
func (c *DynamicDiscoveryManager) GetAndFetchServerVersion() (version.Info, error)
func (*DynamicDiscoveryManager) GetGroupResourcesAsSyncResources ¶
func (c *DynamicDiscoveryManager) GetGroupResourcesAsSyncResources(group string) *clusterv1alpha2.ClusterGroupResources
func (*DynamicDiscoveryManager) GetGroupType ¶
func (c *DynamicDiscoveryManager) GetGroupType(group string) GroupType
func (*DynamicDiscoveryManager) Prepare ¶
func (c *DynamicDiscoveryManager) Prepare(cfg interface{})
func (*DynamicDiscoveryManager) ServerVersion ¶
func (c *DynamicDiscoveryManager) ServerVersion() version.Info
func (*DynamicDiscoveryManager) Start ¶
func (c *DynamicDiscoveryManager) Start(stopCh <-chan struct{})
func (*DynamicDiscoveryManager) WatchAggregatorResourceTypes ¶
func (c *DynamicDiscoveryManager) WatchAggregatorResourceTypes(watch bool)
func (*DynamicDiscoveryManager) WatchServerVersion ¶
func (c *DynamicDiscoveryManager) WatchServerVersion(watch bool)
type PrepareConfig ¶
type PrepareConfig struct { ResourceMutationHandler func() AfterStartFunc func(stopCh <-chan struct{}) }
type ResourcesInterface ¶
type ResourcesInterface interface { GetGroupType(group string) GroupType GetAPIResourceAndVersions(resource schema.GroupResource) (*metav1.APIResource, []string) GetAllResourcesAsSyncResources() []clusterv1alpha2.ClusterGroupResources GetGroupResourcesAsSyncResources(group string) *clusterv1alpha2.ClusterGroupResources AttachAllCustomResourcesToSyncResources(resources []clusterv1alpha2.ClusterGroupResources) []clusterv1alpha2.ClusterGroupResources }
Click to show internal directories.
Click to hide internal directories.