Documentation ¶
Index ¶
- type Cluster
- func (kc *Cluster) ActualNamespace(namespace string) string
- func (kc *Cluster) FindPodFromSelector(c context.Context, namespace string, selector map[string]string) (k8sapi.Object, error)
- func (kc *Cluster) GetClusterId(ctx context.Context) string
- func (kc *Cluster) GetCurrentNamespaces(forClientAccess bool) []string
- func (kc *Cluster) SetMappedNamespaces(c context.Context, namespaces []string) bool
- func (kc *Cluster) SetNamespaceListener(nsListener func(context.Context))
- func (kc *Cluster) WaitForNSSync(c context.Context)
- func (kc *Cluster) WithK8sInterface(c context.Context) context.Context
- type Config
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { *Config // contains filtered or unexported fields }
Cluster is a Kubernetes cluster reference
func NewCluster ¶
func (*Cluster) ActualNamespace ¶
func (*Cluster) FindPodFromSelector ¶
func (kc *Cluster) FindPodFromSelector(c context.Context, namespace string, selector map[string]string) (k8sapi.Object, error)
FindPodFromSelector returns a pod with the given name-hex-hex
func (*Cluster) GetCurrentNamespaces ¶
GetCurrentNamespaces returns the names of the namespaces that this client is mapping. If the forClientAccess is true, then the namespaces are restricted to those where an intercept can take place, i.e. the namespaces where this client can Watch and get services and deployments.
func (*Cluster) SetMappedNamespaces ¶
func (*Cluster) SetNamespaceListener ¶
func (*Cluster) WaitForNSSync ¶
type Config ¶
type Config struct { Namespace string // default cluster namespace. Context string Server string ConfigFlags *genericclioptions.ConfigFlags // contains filtered or unexported fields }
func (*Config) ContextServiceAndFlagsEqual ¶
ContextServiceAndFlagsEqual determines if this instance is equal to the given instance with respect to context, server, and flag arguments.
func (*Config) GetManagerNamespace ¶
Click to show internal directories.
Click to hide internal directories.