Documentation ¶
Index ¶
- Variables
- func FilterPodList(pods []v1.Pod, query filter.Filter) []v1.Pod
- func NewConfigLoader(kubeconfig, context string) clientcmd.ClientConfig
- type ConfigLookup
- type ConfigLookups
- type ExecOptions
- type KubeClient
- func (client KubeClient) ConfigMaps() v1.ConfigMapInterface
- func (client KubeClient) Exec(ctx context.Context, opt ExecOptions) error
- func (client KubeClient) GetNamespacedPods(ctx context.Context) (*v1.PodList, error)
- func (client KubeClient) GetPodsFiltered(ctx context.Context, queries filter.Filter) ([]v1.Pod, error)
- func (client KubeClient) Jobs() batchv1.JobInterface
- func (client *KubeClient) MinServerVersion(wantMajor, wantMinor int) (bool, error)
- func (client KubeClient) Namespaces() v1.NamespaceInterface
- func (client KubeClient) NetworkPolicies() networkingv1.NetworkPolicyInterface
- func (client KubeClient) Pods() v1.PodInterface
- func (client KubeClient) Secrets() v1.SecretInterface
- type LookupEnv
- type LookupNop
- type LookupVolumeSecret
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoEnvNames = errors.New("dialect does not contain any env names") ErrEnvNoExist = errors.New("env is not set") ErrSecretDoesNotHaveKey = errors.New("secret does not have key") ErrConfigMapDoesNotHaveKey = errors.New("config map does not have key") )
View Source
var ErrInvalidVersion = errors.New("invalid version")
View Source
var ErrNoPods = errors.New("no pods in namespace")
View Source
var ErrPodNotFound = errors.New("no pods with matching label")
View Source
var ErrVolumeNoExist = errors.New("volume does not exist")
Functions ¶
func FilterPodList ¶ added in v1.8.0
func NewConfigLoader ¶ added in v1.4.3
func NewConfigLoader(kubeconfig, context string) clientcmd.ClientConfig
Types ¶
type ConfigLookup ¶ added in v1.12.0
type ConfigLookups ¶ added in v1.12.0
type ConfigLookups []ConfigLookup
func (ConfigLookups) Search ¶ added in v1.12.0
func (c ConfigLookups) Search(ctx context.Context, client KubeClient, pod corev1.Pod) (string, error)
type ExecOptions ¶ added in v1.7.0
type KubeClient ¶
type KubeClient struct { ClientSet kubernetes.Interface ClientConfig *rest.Config Discovery *discovery.DiscoveryClient Context string Namespace string }
func NewClient ¶
func NewClient(kubeconfig, context, namespace string) (KubeClient, error)
func NewClientFromCmd ¶
func NewClientFromCmd(cmd *cobra.Command) (KubeClient, error)
func (KubeClient) ConfigMaps ¶ added in v1.7.0
func (client KubeClient) ConfigMaps() v1.ConfigMapInterface
func (KubeClient) Exec ¶
func (client KubeClient) Exec(ctx context.Context, opt ExecOptions) error
func (KubeClient) GetNamespacedPods ¶
func (KubeClient) GetPodsFiltered ¶
func (KubeClient) Jobs ¶ added in v1.7.0
func (client KubeClient) Jobs() batchv1.JobInterface
func (*KubeClient) MinServerVersion ¶ added in v1.6.7
func (client *KubeClient) MinServerVersion(wantMajor, wantMinor int) (bool, error)
func (KubeClient) Namespaces ¶
func (client KubeClient) Namespaces() v1.NamespaceInterface
func (KubeClient) NetworkPolicies ¶ added in v1.12.0
func (client KubeClient) NetworkPolicies() networkingv1.NetworkPolicyInterface
func (KubeClient) Pods ¶
func (client KubeClient) Pods() v1.PodInterface
func (KubeClient) Secrets ¶
func (client KubeClient) Secrets() v1.SecretInterface
type LookupVolumeSecret ¶ added in v1.12.0
func (LookupVolumeSecret) GetValue ¶ added in v1.12.0
func (f LookupVolumeSecret) GetValue(ctx context.Context, client KubeClient, pod corev1.Pod) (string, error)
Click to show internal directories.
Click to hide internal directories.