model

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: 4

Documentation

Index

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

func Key

func Key(network string) string

Key returns the key for configuration of a given network.

func KeyPrefix

func KeyPrefix() string

KeyPrefix return prefix where all custom network configs are persisted.

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

Jump to

Keyboard shortcuts

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