ipalloc

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Keyword = "custom-ipam"

Keyword defines the keyword identifying custom IP allocation data.

Variables

This section is empty.

Functions

func Key

func Key(podName, podNamespace string) string

Key returns the key under which custom IPAM data of a pod should be stored in the data-store.

func KeyPrefix

func KeyPrefix() string

KeyPrefix return prefix where all service function chain configs are persisted.

func ParseKey

func ParseKey(key string) (podName, podNamespace string)

ParseKey parses pod name and namespace from key identifying custom IP allocation data of a pod. Returns empty strings if parsing fails (invalid key).

Types

type CustomIPAllocation

type CustomIPAllocation struct {
	PodName              string                `protobuf:"bytes,1,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
	PodNamespace         string                `protobuf:"bytes,2,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"`
	CustomInterfaces     []*CustomPodInterface `protobuf:"bytes,3,rep,name=custom_interfaces,json=customInterfaces,proto3" json:"custom_interfaces,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

CustomIPAllocation represents pod IP allocation made for custom purposes (other than the main pod IP address). It is used for persisting IP allocation of pods with multiple interfaces and multiple IP addresses.

func (*CustomIPAllocation) Descriptor

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

func (*CustomIPAllocation) GetCustomInterfaces

func (m *CustomIPAllocation) GetCustomInterfaces() []*CustomPodInterface

func (*CustomIPAllocation) GetPodName

func (m *CustomIPAllocation) GetPodName() string

func (*CustomIPAllocation) GetPodNamespace

func (m *CustomIPAllocation) GetPodNamespace() string

func (*CustomIPAllocation) ProtoMessage

func (*CustomIPAllocation) ProtoMessage()

func (*CustomIPAllocation) Reset

func (m *CustomIPAllocation) Reset()

func (*CustomIPAllocation) String

func (m *CustomIPAllocation) String() string

func (*CustomIPAllocation) XXX_DiscardUnknown

func (m *CustomIPAllocation) XXX_DiscardUnknown()

func (*CustomIPAllocation) XXX_Marshal

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

func (*CustomIPAllocation) XXX_Merge

func (m *CustomIPAllocation) XXX_Merge(src proto.Message)

func (*CustomIPAllocation) XXX_Size

func (m *CustomIPAllocation) XXX_Size() int

func (*CustomIPAllocation) XXX_Unmarshal

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

type CustomPodInterface

type CustomPodInterface struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Network              string   `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	IpAddress            string   `protobuf:"bytes,3,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	ServiceEndpoint      bool     `protobuf:"varint,4,opt,name=service_endpoint,json=serviceEndpoint,proto3" json:"service_endpoint,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CustomPodInterface represents pod IP allocation made for a custom pod interface.

func (*CustomPodInterface) Descriptor

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

func (*CustomPodInterface) GetIpAddress

func (m *CustomPodInterface) GetIpAddress() string

func (*CustomPodInterface) GetName

func (m *CustomPodInterface) GetName() string

func (*CustomPodInterface) GetNetwork

func (m *CustomPodInterface) GetNetwork() string

func (*CustomPodInterface) GetServiceEndpoint

func (m *CustomPodInterface) GetServiceEndpoint() bool

func (*CustomPodInterface) ProtoMessage

func (*CustomPodInterface) ProtoMessage()

func (*CustomPodInterface) Reset

func (m *CustomPodInterface) Reset()

func (*CustomPodInterface) String

func (m *CustomPodInterface) String() string

func (*CustomPodInterface) XXX_DiscardUnknown

func (m *CustomPodInterface) XXX_DiscardUnknown()

func (*CustomPodInterface) XXX_Marshal

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

func (*CustomPodInterface) XXX_Merge

func (m *CustomPodInterface) XXX_Merge(src proto.Message)

func (*CustomPodInterface) XXX_Size

func (m *CustomPodInterface) XXX_Size() int

func (*CustomPodInterface) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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