container

package
v2.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key(id string) string

Key returns the key for a given item in containerIndex

func KeyPrefix

func KeyPrefix() string

KeyPrefix return prefix where all items from containerIndex are persisted

Types

type Persisted

type Persisted struct {
	// id is identifier of pod
	ID string `protobuf:"bytes,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"`
	// podName
	PodName      string `protobuf:"bytes,2,opt,name=podName,proto3" json:"podName,omitempty"`
	PodNamespace string `protobuf:"bytes,3,opt,name=podNamespace,proto3" json:"podNamespace,omitempty"`
	// Veth1 is name of one end end of veth pair that is in the given container namespace.
	// Nil if TAPs are used instead.
	Veth1Name string `protobuf:"bytes,4,opt,name=Veth1Name,json=veth1Name,proto3" json:"Veth1Name,omitempty"`
	// Veth2 is name the other end of veth pair in the default namespace
	// Nil if TAPs are used instead.
	Veth2Name string `protobuf:"bytes,5,opt,name=Veth2Name,json=veth2Name,proto3" json:"Veth2Name,omitempty"`
	// VppIf is name AF_PACKET/TAP interface connecting pod to VPP
	VppIfName string `protobuf:"bytes,6,opt,name=VppIfName,json=vppIfName,proto3" json:"VppIfName,omitempty"`
	// PodTap is name ofthe host end of the tap connecting pod to VPP
	// Nil if TAPs are not used
	PodTapName string `protobuf:"bytes,7,opt,name=PodTapName,json=podTapName,proto3" json:"PodTapName,omitempty"`
	// Loopback is interface name associated with the pod.
	// Nil if VPP TCP stack is disabled.
	LoopbackName string `protobuf:"bytes,8,opt,name=LoopbackName,json=loopbackName,proto3" json:"LoopbackName,omitempty"`
	// StnRule is name of STN rule used to "punt" any traffic via VETHs/TAPs with no match in VPP TCP stack.
	// Nil if VPP TCP stack is disabled.
	StnRuleName string `protobuf:"bytes,9,opt,name=StnRuleName,json=stnRuleName,proto3" json:"StnRuleName,omitempty"`
	// AppNamespace is id of the application namespace associated with the pod.
	// Nil if VPP TCP stack is disabled.
	AppNamespaceID string `protobuf:"bytes,10,opt,name=AppNamespaceID,json=appNamespaceID,proto3" json:"AppNamespaceID,omitempty"`
	// VppARPEntryInterface is name of the Interface associated ARP entry configured in VPP to route traffic from VPP to pod.
	VppARPEntryInterface string `protobuf:"bytes,11,opt,name=VppARPEntryInterface,json=vppARPEntryInterface,proto3" json:"VppARPEntryInterface,omitempty"`
	// VppARPEntryIP is IP associated ARP entry configured in VPP to route traffic from VPP to pod.
	VppARPEntryIP string `protobuf:"bytes,12,opt,name=VppARPEntryIP,json=vppARPEntryIP,proto3" json:"VppARPEntryIP,omitempty"`
	// PodARPEntry is name of ARP entry configured in the pod to route traffic from pod to VPP.
	PodARPEntryName string `protobuf:"bytes,13,opt,name=PodARPEntryName,json=podARPEntryName,proto3" json:"PodARPEntryName,omitempty"`
	// VppRouteVrf is vrf of the route from VPP to the container
	VppRouteVrf uint32 `protobuf:"varint,15,opt,name=VppRouteVrf,json=vppRouteVrf,proto3" json:"VppRouteVrf,omitempty"`
	// VppRouteDest is destination of the route from VPP to the container
	VppRouteDest string `protobuf:"bytes,16,opt,name=VppRouteDest,json=vppRouteDest,proto3" json:"VppRouteDest,omitempty"`
	// VppRouteNextHop is next hop of the route from VPP to the container
	VppRouteNextHop string `protobuf:"bytes,17,opt,name=VppRouteNextHop,json=vppRouteNextHop,proto3" json:"VppRouteNextHop,omitempty"`
	// PodLinkRoute is name of the route from pod to the default gateway.
	PodLinkRouteName string `protobuf:"bytes,18,opt,name=PodLinkRouteName,json=podLinkRouteName,proto3" json:"PodLinkRouteName,omitempty"`
	// PodDefaultRoute is name of the default gateway for the pod.
	PodDefaultRouteName  string   `protobuf:"bytes,19,opt,name=PodDefaultRouteName,json=podDefaultRouteName,proto3" json:"PodDefaultRouteName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Persisted represents configured items for a pod that are persisted.

func (*Persisted) Descriptor

func (*Persisted) Descriptor() ([]byte, []int)

func (*Persisted) GetAppNamespaceID

func (m *Persisted) GetAppNamespaceID() string

func (*Persisted) GetID

func (m *Persisted) GetID() string

func (*Persisted) GetLoopbackName

func (m *Persisted) GetLoopbackName() string

func (*Persisted) GetPodARPEntryName

func (m *Persisted) GetPodARPEntryName() string

func (*Persisted) GetPodDefaultRouteName

func (m *Persisted) GetPodDefaultRouteName() string

func (*Persisted) GetPodLinkRouteName

func (m *Persisted) GetPodLinkRouteName() string

func (*Persisted) GetPodName

func (m *Persisted) GetPodName() string

func (*Persisted) GetPodNamespace

func (m *Persisted) GetPodNamespace() string

func (*Persisted) GetPodTapName

func (m *Persisted) GetPodTapName() string

func (*Persisted) GetStnRuleName

func (m *Persisted) GetStnRuleName() string

func (*Persisted) GetVeth1Name

func (m *Persisted) GetVeth1Name() string

func (*Persisted) GetVeth2Name

func (m *Persisted) GetVeth2Name() string

func (*Persisted) GetVppARPEntryIP

func (m *Persisted) GetVppARPEntryIP() string

func (*Persisted) GetVppARPEntryInterface

func (m *Persisted) GetVppARPEntryInterface() string

func (*Persisted) GetVppIfName

func (m *Persisted) GetVppIfName() string

func (*Persisted) GetVppRouteDest

func (m *Persisted) GetVppRouteDest() string

func (*Persisted) GetVppRouteNextHop

func (m *Persisted) GetVppRouteNextHop() string

func (*Persisted) GetVppRouteVrf

func (m *Persisted) GetVppRouteVrf() uint32

func (*Persisted) ProtoMessage

func (*Persisted) ProtoMessage()

func (*Persisted) Reset

func (m *Persisted) Reset()

func (*Persisted) String

func (m *Persisted) String() string

func (*Persisted) XXX_DiscardUnknown added in v1.4.0

func (m *Persisted) XXX_DiscardUnknown()

func (*Persisted) XXX_Marshal added in v1.4.0

func (m *Persisted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Persisted) XXX_Merge added in v1.4.0

func (dst *Persisted) XXX_Merge(src proto.Message)

func (*Persisted) XXX_Size added in v1.4.0

func (m *Persisted) XXX_Size() int

func (*Persisted) XXX_Unmarshal added in v1.4.0

func (m *Persisted) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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