k8s

package
v0.0.0-...-070373f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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 Clients

type Clients interface {
	TargetCluster() Client
	Cluster(name string) (Client, error)
}

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.

Jump to

Keyboard shortcuts

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