model

package
v3.1.0+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Keyword = "servicefunctionchain"

Keyword defines the keyword identifying ServiceFunctionChain data.

Variables

View Source
var ServiceFunctionChain_Type_name = map[int32]string{
	0: "ServiceFunctionPod",
	1: "InterfaceInput",
	2: "InterfaceOutput",
	3: "PodInput",
	4: "PodOutput",
}
View Source
var ServiceFunctionChain_Type_value = map[string]int32{
	"ServiceFunctionPod": 0,
	"InterfaceInput":     1,
	"InterfaceOutput":    2,
	"PodInput":           3,
	"PodOutput":          4,
}

Functions

func Key

func Key(chain string) string

Key returns the key for configuration of a given service function chain.

func KeyPrefix

func KeyPrefix() string

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

Types

type ServiceFunctionChain

type ServiceFunctionChain struct {
	// name of the custom network
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// type of the custom network
	Network              string                                  `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Chain                []*ServiceFunctionChain_ServiceFunction `protobuf:"bytes,3,rep,name=chain,proto3" json:"chain,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                `json:"-"`
	XXX_unrecognized     []byte                                  `json:"-"`
	XXX_sizecache        int32                                   `json:"-"`
}

ServiceFunctionChain is used to store definition of service function chain defined via CRD.

func (*ServiceFunctionChain) Descriptor

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

func (*ServiceFunctionChain) GetChain

func (*ServiceFunctionChain) GetName

func (m *ServiceFunctionChain) GetName() string

func (*ServiceFunctionChain) GetNetwork

func (m *ServiceFunctionChain) GetNetwork() string

func (*ServiceFunctionChain) ProtoMessage

func (*ServiceFunctionChain) ProtoMessage()

func (*ServiceFunctionChain) Reset

func (m *ServiceFunctionChain) Reset()

func (*ServiceFunctionChain) String

func (m *ServiceFunctionChain) String() string

func (*ServiceFunctionChain) XXX_DiscardUnknown

func (m *ServiceFunctionChain) XXX_DiscardUnknown()

func (*ServiceFunctionChain) XXX_Marshal

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

func (*ServiceFunctionChain) XXX_Merge

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

func (*ServiceFunctionChain) XXX_Size

func (m *ServiceFunctionChain) XXX_Size() int

func (*ServiceFunctionChain) XXX_Unmarshal

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

type ServiceFunctionChain_ServiceFunction

type ServiceFunctionChain_ServiceFunction struct {
	Name                 string                    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type                 ServiceFunctionChain_Type `protobuf:"varint,2,opt,name=type,proto3,enum=model.ServiceFunctionChain_Type" json:"type,omitempty"`
	PodSelector          map[string]string         `` /* 182-byte string literal not displayed */
	InputInterface       string                    `protobuf:"bytes,4,opt,name=input_interface,json=inputInterface,proto3" json:"input_interface,omitempty"`
	OutputInterface      string                    `protobuf:"bytes,5,opt,name=output_interface,json=outputInterface,proto3" json:"output_interface,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*ServiceFunctionChain_ServiceFunction) Descriptor

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

func (*ServiceFunctionChain_ServiceFunction) GetInputInterface

func (m *ServiceFunctionChain_ServiceFunction) GetInputInterface() string

func (*ServiceFunctionChain_ServiceFunction) GetName

func (*ServiceFunctionChain_ServiceFunction) GetOutputInterface

func (m *ServiceFunctionChain_ServiceFunction) GetOutputInterface() string

func (*ServiceFunctionChain_ServiceFunction) GetPodSelector

func (m *ServiceFunctionChain_ServiceFunction) GetPodSelector() map[string]string

func (*ServiceFunctionChain_ServiceFunction) GetType

func (*ServiceFunctionChain_ServiceFunction) ProtoMessage

func (*ServiceFunctionChain_ServiceFunction) ProtoMessage()

func (*ServiceFunctionChain_ServiceFunction) Reset

func (*ServiceFunctionChain_ServiceFunction) String

func (*ServiceFunctionChain_ServiceFunction) XXX_DiscardUnknown

func (m *ServiceFunctionChain_ServiceFunction) XXX_DiscardUnknown()

func (*ServiceFunctionChain_ServiceFunction) XXX_Marshal

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

func (*ServiceFunctionChain_ServiceFunction) XXX_Merge

func (*ServiceFunctionChain_ServiceFunction) XXX_Size

func (*ServiceFunctionChain_ServiceFunction) XXX_Unmarshal

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

type ServiceFunctionChain_Type

type ServiceFunctionChain_Type int32
const (
	ServiceFunctionChain_ServiceFunctionPod ServiceFunctionChain_Type = 0
	ServiceFunctionChain_InterfaceInput     ServiceFunctionChain_Type = 1
	ServiceFunctionChain_InterfaceOutput    ServiceFunctionChain_Type = 2
	ServiceFunctionChain_PodInput           ServiceFunctionChain_Type = 3
	ServiceFunctionChain_PodOutput          ServiceFunctionChain_Type = 4
)

func (ServiceFunctionChain_Type) EnumDescriptor

func (ServiceFunctionChain_Type) EnumDescriptor() ([]byte, []int)

func (ServiceFunctionChain_Type) String

func (x ServiceFunctionChain_Type) String() string

Jump to

Keyboard shortcuts

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