# Functions
ContextFromIP searches the $KUBECONFIG for a context using a cluster that matches the apiServer.
No description provided by the author
Contexts returns a list of context names.
IPFromContext parses $KUBECONFIG, finds the cluster with the given name and returns the cluster's endpoint.
Kubeconfig returns the merged $KUBECONFIG of the host.
New returns a instance of Kubectl with a correct context already discovered.
No description provided by the author
UnmarshalTable unmarshals a raw CLI table into ptr.
# Variables
ErrorNoHeader occurs when the table lacks an ALL-CAPS header.
ErrorNoMatch occurs when no item matched had the expected value.
# Structs
ApplyOpts allow to specify additional parameter for apply operations.
Cluster is a kubectl cluster.
Config represents a single KUBECONFIG entry (single context + cluster) Omits the arrays of the original schema, to ease using.
Context is a kubectl context.
No description provided by the author
ErrorElementsMismatch occurs when a row has a different count of elements than it's header.
ErrorNotFound means that the requested object is not found on the server.
ErrorNothingReturned means that there was no output returned.
ErrorUnknownResource means that the requested resource type is unknown to the server.
FilterWriter is an io.Writer that discards every message that matches at least one of the regular expressions.
GetByStateOpts allow to specify additional parameters for GetByState function Currently there is just ignoreNotFound parameter which is only useful for GetByState() so we only have GetByStateOpts instead of more generic GetOpts for all get operations.
Info contains metadata about the client and its environment.
Kubectl uses the `kubectl` command to operate on a Kubernetes cluster.
Resource is a Kubernetes API Resource.
# Interfaces
Client for working with Kubernetes.
# Type aliases
DeleteOpts allow to specify additional parameters for delete operations Currently not different from ApplyOpts, but may be required in the future.
ErrorNoCluster means that the cluster that was searched for couldn't be found.
ErrorNoContext means that the context that was searched for couldn't be found.
Resources the Kubernetes API knows.