Documentation ¶
Index ¶
- Constants
- func Key(podName, podNamespace string) string
- func KeyPrefix() string
- func ParseKey(key string) (podName, podNamespace string)
- type CustomIPAllocation
- func (*CustomIPAllocation) Descriptor() ([]byte, []int)
- func (m *CustomIPAllocation) GetCustomInterfaces() []*CustomPodInterface
- func (m *CustomIPAllocation) GetPodName() string
- func (m *CustomIPAllocation) GetPodNamespace() string
- func (*CustomIPAllocation) ProtoMessage()
- func (m *CustomIPAllocation) Reset()
- func (m *CustomIPAllocation) String() string
- func (m *CustomIPAllocation) XXX_DiscardUnknown()
- func (m *CustomIPAllocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CustomIPAllocation) XXX_Merge(src proto.Message)
- func (m *CustomIPAllocation) XXX_Size() int
- func (m *CustomIPAllocation) XXX_Unmarshal(b []byte) error
- type CustomPodInterface
- func (*CustomPodInterface) Descriptor() ([]byte, []int)
- func (m *CustomPodInterface) GetIpAddress() string
- func (m *CustomPodInterface) GetName() string
- func (m *CustomPodInterface) GetNetwork() string
- func (m *CustomPodInterface) GetServiceEndpoint() bool
- func (*CustomPodInterface) ProtoMessage()
- func (m *CustomPodInterface) Reset()
- func (m *CustomPodInterface) String() string
- func (m *CustomPodInterface) XXX_DiscardUnknown()
- func (m *CustomPodInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CustomPodInterface) XXX_Merge(src proto.Message)
- func (m *CustomPodInterface) XXX_Size() int
- func (m *CustomPodInterface) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const Keyword = "custom-ipam"
Keyword defines the keyword identifying custom IP allocation data.
Variables ¶
This section is empty.
Functions ¶
func Key ¶
Key returns the key under which custom IPAM data of a pod should be stored in the data-store.
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
Click to show internal directories.
Click to hide internal directories.