Documentation
¶
Index ¶
- type K8sSession
- func (s *K8sSession) QueryNamespace(ctx context.Context, namespace string) (*corev1.Namespace, error)
- func (s *K8sSession) QueryNetPolList(ctx context.Context, namespace string) (*nwv1.NetworkPolicyList, error)
- func (s *K8sSession) QueryPod(ctx context.Context, namespace string, podName string) (*corev1.Pod, error)
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 (*K8sSession) QueryNetPolList ¶
func (s *K8sSession) QueryNetPolList(ctx context.Context, namespace string) (*nwv1.NetworkPolicyList, error)
Click to show internal directories.
Click to hide internal directories.