Versions in this module Expand all Collapse all v0 v0.14.3 Sep 30, 2021 Changes in this version + var DefaultClient = k8sClient + var ErrNoReadableKubeConfig = errors.New("unable to open kubeconfig file") + func DecodeResource(b []byte) (k8s.Resource, error) + func EncodeResource(resource k8s.Resource) ([]byte, error) + func GetAllResources(clientset kubernetes.Interface, options ClientOptions) []k8s.Resource + func GetCronJobs(clientset kubernetes.Interface, options ClientOptions) []k8s.Resource + func GetDaemonSets(clientset kubernetes.Interface, options ClientOptions) []k8s.Resource + func GetDeployments(clientset kubernetes.Interface, options ClientOptions) []k8s.Resource + func GetKubernetesVersion(clientset kubernetes.Interface) (*version.Info, error) + func GetNamespaces(clientset kubernetes.Interface, options ClientOptions) []k8s.Resource + func GetNetworkPolicies(clientset kubernetes.Interface, options ClientOptions) []k8s.Resource + func GetPodTemplates(clientset kubernetes.Interface, options ClientOptions) []k8s.Resource + func GetPods(clientset kubernetes.Interface, options ClientOptions) []k8s.Resource + func GetReplicationControllers(clientset kubernetes.Interface, options ClientOptions) []k8s.Resource + func GetServiceAccounts(clientset kubernetes.Interface, options ClientOptions) []k8s.Resource + func GetServices(clientset kubernetes.Interface, option ClientOptions) []k8s.Resource + func GetStatefulSets(clientset kubernetes.Interface, options ClientOptions) []k8s.Resource + func IsRunningInCluster(client Client) bool + func NewKubeClientCluster(client Client) (*kubernetes.Clientset, error) + func NewKubeClientLocal(configPath string) (*kubernetes.Clientset, error) + type Client interface + InClusterConfig func() (*rest.Config, error) + type ClientOptions struct + Namespace string