Documentation ¶
Index ¶
- type Client
- type Clients
- type MockClient
- func (client *MockClient) BindKlog(verbosity int32)
- func (client *MockClient) ClusterName() string
- func (client *MockClient) DynamicClient() dynamic.Interface
- func (client *MockClient) EventRecorder(name string) record.EventRecorder
- func (client *MockClient) InformerFactory() informers.SharedInformerFactory
- func (client *MockClient) KubernetesClient() kubernetes.Interface
- func (client *MockClient) NewInformerFactory(options ...informers.SharedInformerOption) informers.SharedInformerFactory
- type MockClients
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ClusterName() string DynamicClient() dynamic.Interface KubernetesClient() kubernetes.Interface InformerFactory() informers.SharedInformerFactory NewInformerFactory(options ...informers.SharedInformerOption) informers.SharedInformerFactory EventRecorder(name string) record.EventRecorder }
type MockClient ¶
type MockClient struct { Name string Objects []runtime.Object // contains filtered or unexported fields }
func (*MockClient) BindKlog ¶
func (client *MockClient) BindKlog(verbosity int32)
func (*MockClient) ClusterName ¶
func (client *MockClient) ClusterName() string
func (*MockClient) DynamicClient ¶
func (client *MockClient) DynamicClient() dynamic.Interface
func (*MockClient) EventRecorder ¶
func (client *MockClient) EventRecorder(name string) record.EventRecorder
func (*MockClient) InformerFactory ¶
func (client *MockClient) InformerFactory() informers.SharedInformerFactory
func (*MockClient) KubernetesClient ¶
func (client *MockClient) KubernetesClient() kubernetes.Interface
func (*MockClient) NewInformerFactory ¶
func (client *MockClient) NewInformerFactory(options ...informers.SharedInformerOption) informers.SharedInformerFactory
type MockClients ¶
type MockClients struct { TargetClusterName string Clients map[string]*MockClient }
func (*MockClients) Cluster ¶
func (clients *MockClients) Cluster(clusterName string) (Client, error)
func (*MockClients) TargetCluster ¶
func (clients *MockClients) TargetCluster() Client
Directories ¶
Path | Synopsis |
---|---|
Provide connection details to a Kubernetes cluster.
|
Provide connection details to a Kubernetes cluster. |
Cooperative leader election, where a fixed number of controllers can act as the leaders simultaneously.
|
Cooperative leader election, where a fixed number of controllers can act as the leaders simultaneously. |
Click to show internal directories.
Click to hide internal directories.