Documentation ¶
Index ¶
- Constants
- Variables
- type K8sResourceWatcher
- func (w *K8sResourceWatcher) Init(properties *runtime.RawExtension, eh eventhandler.EventHandler) error
- func (w *K8sResourceWatcher) New() sourcetypes.Source
- func (w *K8sResourceWatcher) Parse(properties *runtime.RawExtension) (*types.Config, error)
- func (w *K8sResourceWatcher) Run(ctx context.Context) error
- func (w *K8sResourceWatcher) Singleton() bool
- func (w *K8sResourceWatcher) Type() string
- type MultiClustersGetter
Constants ¶
View Source
const ( // TypeClusterGateway . TypeClusterGateway string = "cluster-gateway" // TypeClusterGatewaySecret . TypeClusterGatewaySecret string = "cluster-gateway-secret" )
Variables ¶
View Source
var ( // MultiClusterConfigType . MultiClusterConfigType string )
Functions ¶
This section is empty.
Types ¶
type K8sResourceWatcher ¶
type K8sResourceWatcher struct {
// contains filtered or unexported fields
}
K8sResourceWatcher watches k8s resources.
func (*K8sResourceWatcher) Init ¶
func (w *K8sResourceWatcher) Init(properties *runtime.RawExtension, eh eventhandler.EventHandler) error
Init .
func (*K8sResourceWatcher) Parse ¶
func (w *K8sResourceWatcher) Parse(properties *runtime.RawExtension) (*types.Config, error)
Parse .
func (*K8sResourceWatcher) Singleton ¶ added in v0.1.1
func (w *K8sResourceWatcher) Singleton() bool
Singleton .
type MultiClustersGetter ¶
type MultiClustersGetter interface {
GetDynamicClientAndMapper(ctx context.Context, cluster string) (dynamic.Interface, meta.RESTMapper, error)
}
MultiClustersGetter .
func NewMultiClustersGetter ¶
func NewMultiClustersGetter(typ string) (MultiClustersGetter, error)
NewMultiClustersGetter new a MultiClustersGetter
Click to show internal directories.
Click to hide internal directories.