Documentation ¶
Index ¶
- Variables
- func GetContainerPortList(podObj *corev1.Pod) []corev1.ContainerPort
- func IsSystemNs(nsObj *corev1.Namespace) bool
- type Cache
- type GenericCache
- type Input
- type InputType
- type LabelAppendOperation
- type Namespace
- type NpmPod
- func (n *NpmPod) AppendContainerPorts(podObj *corev1.Pod)
- func (n *NpmPod) AppendLabels(newPod map[string]string, clear LabelAppendOperation)
- func (n *NpmPod) IP() string
- func (n *NpmPod) NamespaceString() string
- func (n *NpmPod) NoUpdate(podObj *corev1.Pod) bool
- func (n *NpmPod) RemoveContainerPorts()
- func (n *NpmPod) RemoveLabelsWithKey(key string)
- func (n *NpmPod) UpdateNpmPodAttributes(podObj *corev1.Pod)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSetNotExist = errors.New("set does not exists") ErrInvalidIPAddress = errors.New("invalid ipaddress, no equivalent pod found") ErrInvalidInput = errors.New("invalid input") ErrSetType = errors.New("invalid set type") )
error type
Functions ¶
func GetContainerPortList ¶
func GetContainerPortList(podObj *corev1.Pod) []corev1.ContainerPort
func IsSystemNs ¶
Types ¶
type Cache ¶
type Cache struct { NodeName string NsMap map[string]*Namespace PodMap map[string]*NpmPod SetMap map[string]string ListMap map[string]string // not used in NPMV2 }
func (*Cache) GetListMap ¶
func (*Cache) GetNamespaceLabel ¶
type GenericCache ¶
type InputType ¶
type InputType int32
InputType indicates allowed typle for source and destination input
func GetInputType ¶
GetInputType returns the type of the input for GetNetworkTuple.
type LabelAppendOperation ¶
type LabelAppendOperation bool
const ( ClearExistingLabels LabelAppendOperation = true AppendToExistingLabels LabelAppendOperation = false )
type Namespace ¶
func (*Namespace) AppendLabels ¶
func (nsObj *Namespace) AppendLabels(newm map[string]string, clear LabelAppendOperation)
func (*Namespace) GetNamespaceObjFromNsObj ¶
func (*Namespace) RemoveLabelsWithKey ¶
type NpmPod ¶
type NpmPod struct { Name string Namespace string PodIP string Labels map[string]string ContainerPorts []corev1.ContainerPort Phase corev1.PodPhase }
func (*NpmPod) AppendContainerPorts ¶
func (*NpmPod) AppendLabels ¶
func (n *NpmPod) AppendLabels(newPod map[string]string, clear LabelAppendOperation)
func (*NpmPod) NamespaceString ¶
func (*NpmPod) RemoveContainerPorts ¶
func (n *NpmPod) RemoveContainerPorts()
func (*NpmPod) RemoveLabelsWithKey ¶
func (*NpmPod) UpdateNpmPodAttributes ¶
This function can be expanded to other attribs if needed
Click to show internal directories.
Click to hide internal directories.