Documentation ¶
Index ¶
- type Cluster
- func (kc *Cluster) ActualNamespace(namespace string) string
- func (kc *Cluster) AddNamespaceListener(c context.Context, nsListener NamespaceListener)
- 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) WaitForNSSync(c context.Context)
- func (kc *Cluster) WithK8sInterface(c context.Context) context.Context
- type Config
- type KubeConfig
- type NamespaceListener
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) AddNamespaceListener ¶
func (kc *Cluster) AddNamespaceListener(c context.Context, nsListener NamespaceListener)
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) WaitForNSSync ¶
type Config ¶
type Config struct { Namespace string // default cluster namespace. Context string Server string ConfigFlags *genericclioptions.ConfigFlags RestConfig *rest.Config // contains filtered or unexported fields }
func NewInClusterConfig ¶ added in v2.7.0
This represents an inClusterConfig.
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 ¶
func (*Config) GetRestConfig ¶ added in v2.7.0
type KubeConfig ¶ added in v2.7.0
type NamespaceListener ¶
Click to show internal directories.
Click to hide internal directories.