Documentation ¶
Index ¶
- Constants
- Variables
- func Key(network string) string
- func KeyPrefix() string
- type CustomNetwork
- func (*CustomNetwork) Descriptor() ([]byte, []int)
- func (m *CustomNetwork) GetName() string
- func (m *CustomNetwork) GetSubnetCIDR() string
- func (m *CustomNetwork) GetSubnetOneNodePrefix() uint32
- func (m *CustomNetwork) GetType() CustomNetwork_Type
- func (*CustomNetwork) ProtoMessage()
- func (m *CustomNetwork) Reset()
- func (m *CustomNetwork) String() string
- func (m *CustomNetwork) XXX_DiscardUnknown()
- func (m *CustomNetwork) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CustomNetwork) XXX_Merge(src proto.Message)
- func (m *CustomNetwork) XXX_Size() int
- func (m *CustomNetwork) XXX_Unmarshal(b []byte) error
- type CustomNetwork_Type
Constants ¶
View Source
const Keyword = "customnetwork"
Keyword defines the keyword identifying CustomNetwork data.
Variables ¶
View Source
var CustomNetwork_Type_name = map[int32]string{
0: "L2",
1: "L3",
}
View Source
var CustomNetwork_Type_value = map[string]int32{
"L2": 0,
"L3": 1,
}
Functions ¶
Types ¶
type CustomNetwork ¶
type CustomNetwork struct { // name of the custom network Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // type of the custom network Type CustomNetwork_Type `protobuf:"varint,2,opt,name=type,proto3,enum=model.CustomNetwork_Type" json:"type,omitempty"` // subnet of the custom network SubnetCIDR string `protobuf:"bytes,3,opt,name=subnetCIDR,proto3" json:"subnetCIDR,omitempty"` // prefix length defining network subnet used for each node in the cluster SubnetOneNodePrefix uint32 `protobuf:"varint,4,opt,name=subnet_one_node_prefix,json=subnetOneNodePrefix,proto3" json:"subnet_one_node_prefix,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CustomNetwork is used to store definition of custom network defined via CRD.
func (*CustomNetwork) Descriptor ¶
func (*CustomNetwork) Descriptor() ([]byte, []int)
func (*CustomNetwork) GetName ¶
func (m *CustomNetwork) GetName() string
func (*CustomNetwork) GetSubnetCIDR ¶
func (m *CustomNetwork) GetSubnetCIDR() string
func (*CustomNetwork) GetSubnetOneNodePrefix ¶
func (m *CustomNetwork) GetSubnetOneNodePrefix() uint32
func (*CustomNetwork) GetType ¶
func (m *CustomNetwork) GetType() CustomNetwork_Type
func (*CustomNetwork) ProtoMessage ¶
func (*CustomNetwork) ProtoMessage()
func (*CustomNetwork) Reset ¶
func (m *CustomNetwork) Reset()
func (*CustomNetwork) String ¶
func (m *CustomNetwork) String() string
func (*CustomNetwork) XXX_DiscardUnknown ¶
func (m *CustomNetwork) XXX_DiscardUnknown()
func (*CustomNetwork) XXX_Marshal ¶
func (m *CustomNetwork) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CustomNetwork) XXX_Merge ¶
func (m *CustomNetwork) XXX_Merge(src proto.Message)
func (*CustomNetwork) XXX_Size ¶
func (m *CustomNetwork) XXX_Size() int
func (*CustomNetwork) XXX_Unmarshal ¶
func (m *CustomNetwork) XXX_Unmarshal(b []byte) error
type CustomNetwork_Type ¶
type CustomNetwork_Type int32
const ( CustomNetwork_L2 CustomNetwork_Type = 0 CustomNetwork_L3 CustomNetwork_Type = 1 )
func (CustomNetwork_Type) EnumDescriptor ¶
func (CustomNetwork_Type) EnumDescriptor() ([]byte, []int)
func (CustomNetwork_Type) String ¶
func (x CustomNetwork_Type) String() string
Click to show internal directories.
Click to hide internal directories.