Documentation ¶
Index ¶
- type ClientInterface
- type Cluster
- func (c *Cluster) Close()
- func (c *Cluster) DefaultNamespace() string
- func (c *Cluster) DiscoveryClient() (discovery.DiscoveryInterface, error)
- func (c *Cluster) DynamicClient() (dynamic.Interface, error)
- func (c *Cluster) InfoClient() (InfoInterface, error)
- func (c *Cluster) KubernetesClient() (kubernetes.Interface, error)
- func (c *Cluster) NamespaceClient() (NamespaceInterface, error)
- func (c *Cluster) Resource(gk schema.GroupKind) (schema.GroupVersionResource, error)
- func (c *Cluster) ResourceExists(gvr schema.GroupVersionResource) bool
- func (c *Cluster) RestClient() (rest.Interface, error)
- func (c *Cluster) RestConfig() *rest.Config
- func (c *Cluster) Version() (string, error)
- type InfoInterface
- type NamespaceInterface
- type RestConfigOptions
- type RestInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInterface ¶
type ClientInterface interface { DefaultNamespace() string ResourceExists(schema.GroupVersionResource) bool Resource(kind schema.GroupKind) (schema.GroupVersionResource, error) KubernetesClient() (kubernetes.Interface, error) DynamicClient() (dynamic.Interface, error) DiscoveryClient() (discovery.DiscoveryInterface, error) NamespaceClient() (NamespaceInterface, error) InfoClient() (InfoInterface, error) Close() RestInterface }
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster is a client for cluster operations
func FromKubeConfig ¶
func FromKubeConfig(ctx context.Context, kubeConfig, contextName string, options RestConfigOptions) (*Cluster, error)
FromKubeConfig creates a Cluster from a kubeConfig.
func (*Cluster) DefaultNamespace ¶
func (*Cluster) DiscoveryClient ¶
func (c *Cluster) DiscoveryClient() (discovery.DiscoveryInterface, error)
func (*Cluster) InfoClient ¶
func (c *Cluster) InfoClient() (InfoInterface, error)
func (*Cluster) KubernetesClient ¶
func (c *Cluster) KubernetesClient() (kubernetes.Interface, error)
func (*Cluster) NamespaceClient ¶
func (c *Cluster) NamespaceClient() (NamespaceInterface, error)
func (*Cluster) ResourceExists ¶
func (c *Cluster) ResourceExists(gvr schema.GroupVersionResource) bool
func (*Cluster) RestConfig ¶
type InfoInterface ¶
InfoInterface provides connection details for a cluster
type NamespaceInterface ¶
type RestConfigOptions ¶
Click to show internal directories.
Click to hide internal directories.