Documentation ¶
Overview ¶
Package capi contains capi util helpers specific to Theila.
Index ¶
- Variables
- type Proxy
- func (k *Proxy) CheckClusterAvailable() error
- func (k *Proxy) CurrentNamespace() (string, error)
- func (k *Proxy) GetConfig() (*rest.Config, error)
- func (k *Proxy) GetContexts(string) ([]string, error)
- func (k *Proxy) GetResourceNames(groupVersion, kind string, options []client.ListOption, prefix string) ([]string, error)
- func (k *Proxy) ListResources(labels map[string]string, namespaces ...string) ([]unstructured.Unstructured, error)
- func (k *Proxy) NewClient() (client.Client, error)
- func (k *Proxy) ValidateKubernetesMaxVersion() error
- func (k *Proxy) ValidateKubernetesVersion() error
Constants ¶
This section is empty.
Variables ¶
View Source
var Scheme = runtime.NewScheme()
Scheme for CAPI kubernetes client.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy custom implementation of clusterapi proxy that allows getting kubeconfig from memory.
func (*Proxy) CheckClusterAvailable ¶
CheckClusterAvailable implements proxy interface.
func (*Proxy) CurrentNamespace ¶
CurrentNamespace implements cluster.Proxy interface.
func (*Proxy) GetContexts ¶
GetContexts implements cluster.Proxy interface.
func (*Proxy) GetResourceNames ¶
func (k *Proxy) GetResourceNames(groupVersion, kind string, options []client.ListOption, prefix string) ([]string, error)
GetResourceNames returns the list of resource names which begin with prefix.
func (*Proxy) ListResources ¶
func (k *Proxy) ListResources(labels map[string]string, namespaces ...string) ([]unstructured.Unstructured, error)
ListResources implements cluster.Proxy interface.
func (*Proxy) ValidateKubernetesMaxVersion ¶
ValidateKubernetesMaxVersion implements cluster.Proxy interface.
func (*Proxy) ValidateKubernetesVersion ¶
ValidateKubernetesVersion implements cluster.Proxy interface.
Click to show internal directories.
Click to hide internal directories.