k8s

package
v0.0.0-...-ed96a3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sSession

type K8sSession struct {
	// contains filtered or unexported fields
}

func NewSession

func NewSession(kubeconfig string) (*K8sSession, error)

func (*K8sSession) QueryNamespace

func (s *K8sSession) QueryNamespace(ctx context.Context, namespace string) (*corev1.Namespace, error)

func (*K8sSession) QueryNetPolList

func (s *K8sSession) QueryNetPolList(ctx context.Context, namespace string) (*nwv1.NetworkPolicyList, error)

func (*K8sSession) QueryPod

func (s *K8sSession) QueryPod(ctx context.Context, namespace string, podName string) (*corev1.Pod, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL