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) RESTClient() (rest.Interface, error)
- func (c *Cluster) RESTConfig() *rest.Config
- func (c *Cluster) ResetMapper()
- func (c *Cluster) Resource(gk schema.GroupKind) (schema.GroupVersionResource, error)
- func (c *Cluster) ResourceExists(gvr schema.GroupVersionResource) bool
- 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(schema.GroupKind) (schema.GroupVersionResource, error) ResetMapper() KubernetesClient() (kubernetes.Interface, error) DynamicClient() (dynamic.Interface, error) DiscoveryClient() (discovery.DiscoveryInterface, error) NamespaceClient() (NamespaceInterface, error) InfoClient() (InfoInterface, error) Close() RESTInterface }
ClientInterface is a client for cluster operations.
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster is a client for cluster operations
func FromKubeConfig ¶
func FromKubeConfig(ctx context.Context, kubeConfigList, contextName string, initialNamespace string, providedNamespaces []string, options RESTConfigOptions) (*Cluster, error)
FromKubeConfig creates a Cluster from a kubeConfig chain.
func (*Cluster) DefaultNamespace ¶
func (*Cluster) DiscoveryClient ¶
func (c *Cluster) DiscoveryClient() (discovery.DiscoveryInterface, error)
DiscoveryClient returns a DiscoveryClient for the cluster.
func (*Cluster) DynamicClient ¶
DynamicClient returns a dynamic client.
func (*Cluster) InfoClient ¶
func (c *Cluster) InfoClient() (InfoInterface, error)
InfoClient returns an InfoClient for the cluster.
func (*Cluster) KubernetesClient ¶
func (c *Cluster) KubernetesClient() (kubernetes.Interface, error)
KubernetesClient returns a Kubernetes client.
func (*Cluster) NamespaceClient ¶
func (c *Cluster) NamespaceClient() (NamespaceInterface, error)
NamespaceClient returns a namespace client.
func (*Cluster) RESTClient ¶
RESTClient returns a RESTClient for the cluster.
func (*Cluster) RESTConfig ¶
RESTConfig returns configuration for communicating with the cluster.
func (*Cluster) ResetMapper ¶ added in v0.10.0
func (c *Cluster) ResetMapper()
func (*Cluster) ResourceExists ¶
func (c *Cluster) ResourceExists(gvr schema.GroupVersionResource) bool
type InfoInterface ¶
InfoInterface provides connection details for a cluster
type NamespaceInterface ¶
type NamespaceInterface interface { Names() ([]string, error) InitialNamespace() string ProvidedNamespaces() []string HasNamespace(namespace string) bool }
NamespaceInterface is an interface for querying namespace details.