pb

package
v2.3.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterOpenflowServer

func RegisterOpenflowServer(s *grpc.Server, srv OpenflowServer)

func RegisterVSwitchServer

func RegisterVSwitchServer(s *grpc.Server, srv VSwitchServer)

Types

type AddBridgePortRequest

type AddBridgePortRequest struct {
	Bridge               string   `protobuf:"bytes,1,opt,name=bridge,proto3" json:"bridge,omitempty"`
	Port                 string   `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddBridgePortRequest) Descriptor

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

func (*AddBridgePortRequest) GetBridge

func (m *AddBridgePortRequest) GetBridge() string

func (*AddBridgePortRequest) GetPort

func (m *AddBridgePortRequest) GetPort() string

func (*AddBridgePortRequest) ProtoMessage

func (*AddBridgePortRequest) ProtoMessage()

func (*AddBridgePortRequest) Reset

func (m *AddBridgePortRequest) Reset()

func (*AddBridgePortRequest) String

func (m *AddBridgePortRequest) String() string

func (*AddBridgePortRequest) XXX_DiscardUnknown

func (m *AddBridgePortRequest) XXX_DiscardUnknown()

func (*AddBridgePortRequest) XXX_Marshal

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

func (*AddBridgePortRequest) XXX_Merge

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

func (*AddBridgePortRequest) XXX_Size

func (m *AddBridgePortRequest) XXX_Size() int

func (*AddBridgePortRequest) XXX_Unmarshal

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

type AddBridgeRequest

type AddBridgeRequest struct {
	Bridge               string   `protobuf:"bytes,1,opt,name=bridge,proto3" json:"bridge,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddBridgeRequest) Descriptor

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

func (*AddBridgeRequest) GetBridge

func (m *AddBridgeRequest) GetBridge() string

func (*AddBridgeRequest) ProtoMessage

func (*AddBridgeRequest) ProtoMessage()

func (*AddBridgeRequest) Reset

func (m *AddBridgeRequest) Reset()

func (*AddBridgeRequest) String

func (m *AddBridgeRequest) String() string

func (*AddBridgeRequest) XXX_DiscardUnknown

func (m *AddBridgeRequest) XXX_DiscardUnknown()

func (*AddBridgeRequest) XXX_Marshal

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

func (*AddBridgeRequest) XXX_Merge

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

func (*AddBridgeRequest) XXX_Size

func (m *AddBridgeRequest) XXX_Size() int

func (*AddBridgeRequest) XXX_Unmarshal

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

type AddFlowRequest

type AddFlowRequest struct {
	Bridge               string   `protobuf:"bytes,1,opt,name=bridge,proto3" json:"bridge,omitempty"`
	Flow                 *Flow    `protobuf:"bytes,2,opt,name=flow,proto3" json:"flow,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddFlowRequest) Descriptor

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

func (*AddFlowRequest) GetBridge

func (m *AddFlowRequest) GetBridge() string

func (*AddFlowRequest) GetFlow

func (m *AddFlowRequest) GetFlow() *Flow

func (*AddFlowRequest) ProtoMessage

func (*AddFlowRequest) ProtoMessage()

func (*AddFlowRequest) Reset

func (m *AddFlowRequest) Reset()

func (*AddFlowRequest) String

func (m *AddFlowRequest) String() string

func (*AddFlowRequest) XXX_DiscardUnknown

func (m *AddFlowRequest) XXX_DiscardUnknown()

func (*AddFlowRequest) XXX_Marshal

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

func (*AddFlowRequest) XXX_Merge

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

func (*AddFlowRequest) XXX_Size

func (m *AddFlowRequest) XXX_Size() int

func (*AddFlowRequest) XXX_Unmarshal

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

type CommonResponse

type CommonResponse interface {
	GetCode() uint32
	GetMesg() string
}

type DelBridgePortRequest

type DelBridgePortRequest struct {
	Bridge               string   `protobuf:"bytes,1,opt,name=bridge,proto3" json:"bridge,omitempty"`
	Port                 string   `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DelBridgePortRequest) Descriptor

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

func (*DelBridgePortRequest) GetBridge

func (m *DelBridgePortRequest) GetBridge() string

func (*DelBridgePortRequest) GetPort

func (m *DelBridgePortRequest) GetPort() string

func (*DelBridgePortRequest) ProtoMessage

func (*DelBridgePortRequest) ProtoMessage()

func (*DelBridgePortRequest) Reset

func (m *DelBridgePortRequest) Reset()

func (*DelBridgePortRequest) String

func (m *DelBridgePortRequest) String() string

func (*DelBridgePortRequest) XXX_DiscardUnknown

func (m *DelBridgePortRequest) XXX_DiscardUnknown()

func (*DelBridgePortRequest) XXX_Marshal

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

func (*DelBridgePortRequest) XXX_Merge

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

func (*DelBridgePortRequest) XXX_Size

func (m *DelBridgePortRequest) XXX_Size() int

func (*DelBridgePortRequest) XXX_Unmarshal

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

type DelBridgeRequest

type DelBridgeRequest struct {
	Bridge               string   `protobuf:"bytes,1,opt,name=bridge,proto3" json:"bridge,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DelBridgeRequest) Descriptor

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

func (*DelBridgeRequest) GetBridge

func (m *DelBridgeRequest) GetBridge() string

func (*DelBridgeRequest) ProtoMessage

func (*DelBridgeRequest) ProtoMessage()

func (*DelBridgeRequest) Reset

func (m *DelBridgeRequest) Reset()

func (*DelBridgeRequest) String

func (m *DelBridgeRequest) String() string

func (*DelBridgeRequest) XXX_DiscardUnknown

func (m *DelBridgeRequest) XXX_DiscardUnknown()

func (*DelBridgeRequest) XXX_Marshal

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

func (*DelBridgeRequest) XXX_Merge

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

func (*DelBridgeRequest) XXX_Size

func (m *DelBridgeRequest) XXX_Size() int

func (*DelBridgeRequest) XXX_Unmarshal

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

type DelFlowRequest

type DelFlowRequest struct {
	Bridge               string   `protobuf:"bytes,1,opt,name=bridge,proto3" json:"bridge,omitempty"`
	Flow                 *Flow    `protobuf:"bytes,2,opt,name=flow,proto3" json:"flow,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DelFlowRequest) Descriptor

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

func (*DelFlowRequest) GetBridge

func (m *DelFlowRequest) GetBridge() string

func (*DelFlowRequest) GetFlow

func (m *DelFlowRequest) GetFlow() *Flow

func (*DelFlowRequest) ProtoMessage

func (*DelFlowRequest) ProtoMessage()

func (*DelFlowRequest) Reset

func (m *DelFlowRequest) Reset()

func (*DelFlowRequest) String

func (m *DelFlowRequest) String() string

func (*DelFlowRequest) XXX_DiscardUnknown

func (m *DelFlowRequest) XXX_DiscardUnknown()

func (*DelFlowRequest) XXX_Marshal

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

func (*DelFlowRequest) XXX_Merge

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

func (*DelFlowRequest) XXX_Size

func (m *DelFlowRequest) XXX_Size() int

func (*DelFlowRequest) XXX_Unmarshal

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

type DumpBridgePortRequest

type DumpBridgePortRequest struct {
	Bridge               string   `protobuf:"bytes,1,opt,name=bridge,proto3" json:"bridge,omitempty"`
	Port                 string   `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DumpBridgePortRequest) Descriptor

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

func (*DumpBridgePortRequest) GetBridge

func (m *DumpBridgePortRequest) GetBridge() string

func (*DumpBridgePortRequest) GetPort

func (m *DumpBridgePortRequest) GetPort() string

func (*DumpBridgePortRequest) ProtoMessage

func (*DumpBridgePortRequest) ProtoMessage()

func (*DumpBridgePortRequest) Reset

func (m *DumpBridgePortRequest) Reset()

func (*DumpBridgePortRequest) String

func (m *DumpBridgePortRequest) String() string

func (*DumpBridgePortRequest) XXX_DiscardUnknown

func (m *DumpBridgePortRequest) XXX_DiscardUnknown()

func (*DumpBridgePortRequest) XXX_Marshal

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

func (*DumpBridgePortRequest) XXX_Merge

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

func (*DumpBridgePortRequest) XXX_Size

func (m *DumpBridgePortRequest) XXX_Size() int

func (*DumpBridgePortRequest) XXX_Unmarshal

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

type DumpBridgePortResponse

type DumpBridgePortResponse struct {
	Code                 uint32     `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Mesg                 string     `protobuf:"bytes,2,opt,name=mesg,proto3" json:"mesg,omitempty"`
	PortStats            *PortStats `protobuf:"bytes,3,opt,name=port_stats,json=portStats,proto3" json:"port_stats,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*DumpBridgePortResponse) Descriptor

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

func (*DumpBridgePortResponse) GetCode

func (m *DumpBridgePortResponse) GetCode() uint32

func (*DumpBridgePortResponse) GetMesg

func (m *DumpBridgePortResponse) GetMesg() string

func (*DumpBridgePortResponse) GetPortStats

func (m *DumpBridgePortResponse) GetPortStats() *PortStats

func (*DumpBridgePortResponse) ProtoMessage

func (*DumpBridgePortResponse) ProtoMessage()

func (*DumpBridgePortResponse) Reset

func (m *DumpBridgePortResponse) Reset()

func (*DumpBridgePortResponse) String

func (m *DumpBridgePortResponse) String() string

func (*DumpBridgePortResponse) XXX_DiscardUnknown

func (m *DumpBridgePortResponse) XXX_DiscardUnknown()

func (*DumpBridgePortResponse) XXX_Marshal

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

func (*DumpBridgePortResponse) XXX_Merge

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

func (*DumpBridgePortResponse) XXX_Size

func (m *DumpBridgePortResponse) XXX_Size() int

func (*DumpBridgePortResponse) XXX_Unmarshal

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

type Flow

type Flow struct {
	Cookie               uint64   `protobuf:"varint,1,opt,name=cookie,proto3" json:"cookie,omitempty"`
	Priority             uint32   `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"`
	Table                uint32   `protobuf:"varint,3,opt,name=table,proto3" json:"table,omitempty"`
	Matches              string   `protobuf:"bytes,4,opt,name=matches,proto3" json:"matches,omitempty"`
	Actions              string   `protobuf:"bytes,5,opt,name=actions,proto3" json:"actions,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Flow) Descriptor

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

func (*Flow) GetActions

func (m *Flow) GetActions() string

func (*Flow) GetCookie

func (m *Flow) GetCookie() uint64

func (*Flow) GetMatches

func (m *Flow) GetMatches() string

func (*Flow) GetPriority

func (m *Flow) GetPriority() uint32

func (*Flow) GetTable

func (m *Flow) GetTable() uint32

func (*Flow) OvsFlow

func (f *Flow) OvsFlow() (*ovs.Flow, error)

func (*Flow) ProtoMessage

func (*Flow) ProtoMessage()

func (*Flow) Reset

func (m *Flow) Reset()

func (*Flow) String

func (m *Flow) String() string

func (*Flow) XXX_DiscardUnknown

func (m *Flow) XXX_DiscardUnknown()

func (*Flow) XXX_Marshal

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

func (*Flow) XXX_Merge

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

func (*Flow) XXX_Size

func (m *Flow) XXX_Size() int

func (*Flow) XXX_Unmarshal

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

type OpenflowClient

type OpenflowClient interface {
	AddFlow(ctx context.Context, in *AddFlowRequest, opts ...grpc.CallOption) (*Response, error)
	DelFlow(ctx context.Context, in *DelFlowRequest, opts ...grpc.CallOption) (*Response, error)
	SyncFlows(ctx context.Context, in *SyncFlowsRequest, opts ...grpc.CallOption) (*Response, error)
	DumpBridgePort(ctx context.Context, in *DumpBridgePortRequest, opts ...grpc.CallOption) (*DumpBridgePortResponse, error)
}

OpenflowClient is the client API for Openflow service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewOpenflowClient

func NewOpenflowClient(cc *grpc.ClientConn) OpenflowClient

type OpenflowServer

OpenflowServer is the server API for Openflow service.

type PortStats

type PortStats struct {
	PortNo               uint32   `protobuf:"varint,1,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PortStats) Descriptor

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

func (*PortStats) GetPortNo

func (m *PortStats) GetPortNo() uint32

func (*PortStats) ProtoMessage

func (*PortStats) ProtoMessage()

func (*PortStats) Reset

func (m *PortStats) Reset()

func (*PortStats) String

func (m *PortStats) String() string

func (*PortStats) XXX_DiscardUnknown

func (m *PortStats) XXX_DiscardUnknown()

func (*PortStats) XXX_Marshal

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

func (*PortStats) XXX_Merge

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

func (*PortStats) XXX_Size

func (m *PortStats) XXX_Size() int

func (*PortStats) XXX_Unmarshal

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

type Response

type Response struct {
	Code                 uint32   `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Mesg                 string   `protobuf:"bytes,2,opt,name=mesg,proto3" json:"mesg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetCode

func (m *Response) GetCode() uint32

func (*Response) GetMesg

func (m *Response) GetMesg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

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

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

type SyncFlowsRequest

type SyncFlowsRequest struct {
	Bridge               string   `protobuf:"bytes,1,opt,name=bridge,proto3" json:"bridge,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SyncFlowsRequest) Descriptor

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

func (*SyncFlowsRequest) GetBridge

func (m *SyncFlowsRequest) GetBridge() string

func (*SyncFlowsRequest) ProtoMessage

func (*SyncFlowsRequest) ProtoMessage()

func (*SyncFlowsRequest) Reset

func (m *SyncFlowsRequest) Reset()

func (*SyncFlowsRequest) String

func (m *SyncFlowsRequest) String() string

func (*SyncFlowsRequest) XXX_DiscardUnknown

func (m *SyncFlowsRequest) XXX_DiscardUnknown()

func (*SyncFlowsRequest) XXX_Marshal

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

func (*SyncFlowsRequest) XXX_Merge

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

func (*SyncFlowsRequest) XXX_Size

func (m *SyncFlowsRequest) XXX_Size() int

func (*SyncFlowsRequest) XXX_Unmarshal

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

type VSwitchClient

type VSwitchClient interface {
	AddBridge(ctx context.Context, in *AddBridgeRequest, opts ...grpc.CallOption) (*Response, error)
	DelBridge(ctx context.Context, in *DelBridgeRequest, opts ...grpc.CallOption) (*Response, error)
	AddBridgePort(ctx context.Context, in *AddBridgePortRequest, opts ...grpc.CallOption) (*Response, error)
	DelBridgePort(ctx context.Context, in *DelBridgePortRequest, opts ...grpc.CallOption) (*Response, error)
}

VSwitchClient is the client API for VSwitch service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewVSwitchClient

func NewVSwitchClient(cc *grpc.ClientConn) VSwitchClient

type VSwitchServer

type VSwitchServer interface {
	AddBridge(context.Context, *AddBridgeRequest) (*Response, error)
	DelBridge(context.Context, *DelBridgeRequest) (*Response, error)
	AddBridgePort(context.Context, *AddBridgePortRequest) (*Response, error)
	DelBridgePort(context.Context, *DelBridgePortRequest) (*Response, error)
}

VSwitchServer is the server API for VSwitch service.

Jump to

Keyboard shortcuts

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