Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultClusterStatePollInterval is the default interval for polling cluster state changes DefaultClusterStatePollInterval = 30 * time.Second // DefaultClusterStateDebounceWindow is the default debounce window for cluster state changes DefaultClusterStateDebounceWindow = 5 * time.Second )
View Source
const ( // DefaultKubeconfigDebounceWindow is the default debounce window for kubeconfig file changes DefaultKubeconfigDebounceWindow = 100 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterState ¶
type ClusterState struct {
// contains filtered or unexported fields
}
ClusterState monitors cluster state changes and triggers debounced reloads
func NewClusterState ¶
func NewClusterState(discoveryClient discovery.CachedDiscoveryInterface) *ClusterState
func (*ClusterState) Watch ¶
func (w *ClusterState) Watch(onChange func() error)
Watch starts a background watcher that periodically polls for cluster state changes and triggers a debounced reload when changes are detected. It can only be called once per ClusterState instance.
type Kubeconfig ¶
type Kubeconfig struct {
clientcmd.ClientConfig
// contains filtered or unexported fields
}
func NewKubeconfig ¶
func NewKubeconfig(clientConfig clientcmd.ClientConfig) *Kubeconfig
func (*Kubeconfig) Watch ¶
func (w *Kubeconfig) Watch(onChange func() error)
Watch starts a background watcher that monitors kubeconfig file changes and triggers a debounced reload when changes are detected. It can only be called once per Kubeconfig instance.
Click to show internal directories.
Click to hide internal directories.