multicast

package
v1.20.0-pre.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupSubscriberData

type GroupSubscriberData struct {
	GroupAddress string       `json:"group_address"`
	Subscribers  []Subscriber `json:"subscribers"`
}

type Multicast

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

func NewMulticast

func NewMulticast(client *k8s.Client, p Parameters) *Multicast

func (*Multicast) AddAllNodes

func (m *Multicast) AddAllNodes() error

AddAllNodes add CiliumInternalIPs of all nodes to the specified multicast group as subscribers in every cilium-agent

func (*Multicast) DelAllNodes

func (m *Multicast) DelAllNodes() error

DelAllNodes delete CiliumInternalIPs of all nodes from the specified multicast group's subscribers in every cilium-agent

func (*Multicast) ListGroups

func (m *Multicast) ListGroups() error

ListGroup lists multicast groups in every node

func (*Multicast) ListSubscribers

func (m *Multicast) ListSubscribers() error

ListSubscriber lists multicast subscribers in every node for the specified multicast group or all multicast groups

type NodeGroupData

type NodeGroupData struct {
	Node   string   `json:"node"`
	Groups []string `json:"groups"`
}

type NodeSubscriberData

type NodeSubscriberData struct {
	Node   string                `json:"node"`
	Groups []GroupSubscriberData `json:"groups"`
}

type Parameters

type Parameters struct {
	CiliumNamespace  string
	Writer           io.Writer
	WaitDuration     time.Duration
	MulticastGroupIP string
	All              bool
	Output           string
}

type Subscriber

type Subscriber struct {
	SAddr    string `json:"SAddr"`
	Ifindex  int    `json:"Ifindex"`
	IsRemote bool   `json:"IsRemote"`
}

Jump to

Keyboard shortcuts

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