discovery

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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 GroupType

type GroupType int
const (
	KubeResource GroupType = iota
	CustomResource
	AggregatorResource
	UnknownResource
)

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
}

type ServerVersionInterface

type ServerVersionInterface interface {
	ServerVersion() version.Info
	GetAndFetchServerVersion() (version.Info, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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