mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-20 06:01:13 +02:00
The following RPCs have been renamed: - ps to containers - top to processes - df to mounts Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
619 lines
20 KiB
Go
619 lines
20 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: api.proto
|
|
|
|
package networkapi
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
math "math"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
empty "github.com/golang/protobuf/ptypes/empty"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type AddressFamily int32
|
|
|
|
const (
|
|
AddressFamily_AF_UNSPEC AddressFamily = 0
|
|
AddressFamily_AF_INET AddressFamily = 2
|
|
AddressFamily_IPV4 AddressFamily = 2
|
|
AddressFamily_AF_INET6 AddressFamily = 10
|
|
AddressFamily_IPV6 AddressFamily = 10
|
|
)
|
|
|
|
var AddressFamily_name = map[int32]string{
|
|
0: "AF_UNSPEC",
|
|
2: "AF_INET",
|
|
// Duplicate value: 2: "IPV4",
|
|
10: "AF_INET6",
|
|
// Duplicate value: 10: "IPV6",
|
|
}
|
|
|
|
var AddressFamily_value = map[string]int32{
|
|
"AF_UNSPEC": 0,
|
|
"AF_INET": 2,
|
|
"IPV4": 2,
|
|
"AF_INET6": 10,
|
|
"IPV6": 10,
|
|
}
|
|
|
|
func (x AddressFamily) String() string {
|
|
return proto.EnumName(AddressFamily_name, int32(x))
|
|
}
|
|
|
|
func (AddressFamily) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{0}
|
|
}
|
|
|
|
type RouteProtocol int32
|
|
|
|
const (
|
|
RouteProtocol_RTPROT_UNSPEC RouteProtocol = 0
|
|
RouteProtocol_RTPROT_REDIRECT RouteProtocol = 1
|
|
RouteProtocol_RTPROT_KERNEL RouteProtocol = 2
|
|
RouteProtocol_RTPROT_BOOT RouteProtocol = 3
|
|
RouteProtocol_RTPROT_STATIC RouteProtocol = 4
|
|
RouteProtocol_RTPROT_GATED RouteProtocol = 8
|
|
RouteProtocol_RTPROT_RA RouteProtocol = 9
|
|
RouteProtocol_RTPROT_MRT RouteProtocol = 10
|
|
RouteProtocol_RTPROT_ZEBRA RouteProtocol = 11
|
|
RouteProtocol_RTPROT_BIRD RouteProtocol = 12
|
|
RouteProtocol_RTPROT_DNROUTED RouteProtocol = 13
|
|
RouteProtocol_RTPROT_XORP RouteProtocol = 14
|
|
RouteProtocol_RTPROT_NTK RouteProtocol = 15
|
|
RouteProtocol_RTPROT_DHCP RouteProtocol = 16
|
|
RouteProtocol_RTPROT_MROUTED RouteProtocol = 17
|
|
RouteProtocol_RTPROT_BABEL RouteProtocol = 42
|
|
)
|
|
|
|
var RouteProtocol_name = map[int32]string{
|
|
0: "RTPROT_UNSPEC",
|
|
1: "RTPROT_REDIRECT",
|
|
2: "RTPROT_KERNEL",
|
|
3: "RTPROT_BOOT",
|
|
4: "RTPROT_STATIC",
|
|
8: "RTPROT_GATED",
|
|
9: "RTPROT_RA",
|
|
10: "RTPROT_MRT",
|
|
11: "RTPROT_ZEBRA",
|
|
12: "RTPROT_BIRD",
|
|
13: "RTPROT_DNROUTED",
|
|
14: "RTPROT_XORP",
|
|
15: "RTPROT_NTK",
|
|
16: "RTPROT_DHCP",
|
|
17: "RTPROT_MROUTED",
|
|
42: "RTPROT_BABEL",
|
|
}
|
|
|
|
var RouteProtocol_value = map[string]int32{
|
|
"RTPROT_UNSPEC": 0,
|
|
"RTPROT_REDIRECT": 1,
|
|
"RTPROT_KERNEL": 2,
|
|
"RTPROT_BOOT": 3,
|
|
"RTPROT_STATIC": 4,
|
|
"RTPROT_GATED": 8,
|
|
"RTPROT_RA": 9,
|
|
"RTPROT_MRT": 10,
|
|
"RTPROT_ZEBRA": 11,
|
|
"RTPROT_BIRD": 12,
|
|
"RTPROT_DNROUTED": 13,
|
|
"RTPROT_XORP": 14,
|
|
"RTPROT_NTK": 15,
|
|
"RTPROT_DHCP": 16,
|
|
"RTPROT_MROUTED": 17,
|
|
"RTPROT_BABEL": 42,
|
|
}
|
|
|
|
func (x RouteProtocol) String() string {
|
|
return proto.EnumName(RouteProtocol_name, int32(x))
|
|
}
|
|
|
|
func (RouteProtocol) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{1}
|
|
}
|
|
|
|
type InterfaceFlags int32
|
|
|
|
const (
|
|
InterfaceFlags_FLAG_UNKNOWN InterfaceFlags = 0
|
|
InterfaceFlags_FLAG_UP InterfaceFlags = 1
|
|
InterfaceFlags_FLAG_BROADCAST InterfaceFlags = 2
|
|
InterfaceFlags_FLAG_LOOPBACK InterfaceFlags = 3
|
|
InterfaceFlags_FLAG_POINT_TO_POINT InterfaceFlags = 4
|
|
InterfaceFlags_FLAG_MULTICAST InterfaceFlags = 5
|
|
)
|
|
|
|
var InterfaceFlags_name = map[int32]string{
|
|
0: "FLAG_UNKNOWN",
|
|
1: "FLAG_UP",
|
|
2: "FLAG_BROADCAST",
|
|
3: "FLAG_LOOPBACK",
|
|
4: "FLAG_POINT_TO_POINT",
|
|
5: "FLAG_MULTICAST",
|
|
}
|
|
|
|
var InterfaceFlags_value = map[string]int32{
|
|
"FLAG_UNKNOWN": 0,
|
|
"FLAG_UP": 1,
|
|
"FLAG_BROADCAST": 2,
|
|
"FLAG_LOOPBACK": 3,
|
|
"FLAG_POINT_TO_POINT": 4,
|
|
"FLAG_MULTICAST": 5,
|
|
}
|
|
|
|
func (x InterfaceFlags) String() string {
|
|
return proto.EnumName(InterfaceFlags_name, int32(x))
|
|
}
|
|
|
|
func (InterfaceFlags) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{2}
|
|
}
|
|
|
|
// The response message containing the routes.
|
|
type RoutesReply struct {
|
|
Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RoutesReply) Reset() { *m = RoutesReply{} }
|
|
func (m *RoutesReply) String() string { return proto.CompactTextString(m) }
|
|
func (*RoutesReply) ProtoMessage() {}
|
|
func (*RoutesReply) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{0}
|
|
}
|
|
|
|
func (m *RoutesReply) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RoutesReply.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *RoutesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RoutesReply.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *RoutesReply) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RoutesReply.Merge(m, src)
|
|
}
|
|
|
|
func (m *RoutesReply) XXX_Size() int {
|
|
return xxx_messageInfo_RoutesReply.Size(m)
|
|
}
|
|
|
|
func (m *RoutesReply) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RoutesReply.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RoutesReply proto.InternalMessageInfo
|
|
|
|
func (m *RoutesReply) GetRoutes() []*Route {
|
|
if m != nil {
|
|
return m.Routes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// The response message containing a route.
|
|
type Route struct {
|
|
// Interface is the interface over which traffic to this destination should be sent
|
|
Interface string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"`
|
|
// Destination is the network prefix CIDR which this route provides
|
|
Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
|
|
// Gateway is the gateway address to which traffic to this destination should be sent
|
|
Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
|
|
// Metric is the priority of the route, where lower metrics have higher priorities
|
|
Metric uint32 `protobuf:"varint,4,opt,name=metric,proto3" json:"metric,omitempty"`
|
|
// Scope desribes the scope of this route
|
|
Scope uint32 `protobuf:"varint,5,opt,name=scope,proto3" json:"scope,omitempty"`
|
|
// Source is the source prefix CIDR for the route, if one is defined
|
|
Source string `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty"`
|
|
// Family is the address family of the route. Currently, the only options are AF_INET (IPV4) and AF_INET6 (IPV6).
|
|
Family AddressFamily `protobuf:"varint,7,opt,name=family,proto3,enum=proto.AddressFamily" json:"family,omitempty"`
|
|
// Protocol is the protocol by which this route came to be in place
|
|
Protocol RouteProtocol `protobuf:"varint,8,opt,name=protocol,proto3,enum=proto.RouteProtocol" json:"protocol,omitempty"`
|
|
// Flags indicate any special flags on the route
|
|
Flags uint32 `protobuf:"varint,9,opt,name=flags,proto3" json:"flags,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Route) Reset() { *m = Route{} }
|
|
func (m *Route) String() string { return proto.CompactTextString(m) }
|
|
func (*Route) ProtoMessage() {}
|
|
func (*Route) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{1}
|
|
}
|
|
|
|
func (m *Route) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Route.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Route.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *Route) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Route.Merge(m, src)
|
|
}
|
|
|
|
func (m *Route) XXX_Size() int {
|
|
return xxx_messageInfo_Route.Size(m)
|
|
}
|
|
|
|
func (m *Route) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Route.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Route proto.InternalMessageInfo
|
|
|
|
func (m *Route) GetInterface() string {
|
|
if m != nil {
|
|
return m.Interface
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Route) GetDestination() string {
|
|
if m != nil {
|
|
return m.Destination
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Route) GetGateway() string {
|
|
if m != nil {
|
|
return m.Gateway
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Route) GetMetric() uint32 {
|
|
if m != nil {
|
|
return m.Metric
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Route) GetScope() uint32 {
|
|
if m != nil {
|
|
return m.Scope
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Route) GetSource() string {
|
|
if m != nil {
|
|
return m.Source
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Route) GetFamily() AddressFamily {
|
|
if m != nil {
|
|
return m.Family
|
|
}
|
|
return AddressFamily_AF_UNSPEC
|
|
}
|
|
|
|
func (m *Route) GetProtocol() RouteProtocol {
|
|
if m != nil {
|
|
return m.Protocol
|
|
}
|
|
return RouteProtocol_RTPROT_UNSPEC
|
|
}
|
|
|
|
func (m *Route) GetFlags() uint32 {
|
|
if m != nil {
|
|
return m.Flags
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type InterfacesReply struct {
|
|
Interfaces []*Interface `protobuf:"bytes,1,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *InterfacesReply) Reset() { *m = InterfacesReply{} }
|
|
func (m *InterfacesReply) String() string { return proto.CompactTextString(m) }
|
|
func (*InterfacesReply) ProtoMessage() {}
|
|
func (*InterfacesReply) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{2}
|
|
}
|
|
|
|
func (m *InterfacesReply) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_InterfacesReply.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *InterfacesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_InterfacesReply.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *InterfacesReply) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_InterfacesReply.Merge(m, src)
|
|
}
|
|
|
|
func (m *InterfacesReply) XXX_Size() int {
|
|
return xxx_messageInfo_InterfacesReply.Size(m)
|
|
}
|
|
|
|
func (m *InterfacesReply) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_InterfacesReply.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_InterfacesReply proto.InternalMessageInfo
|
|
|
|
func (m *InterfacesReply) GetInterfaces() []*Interface {
|
|
if m != nil {
|
|
return m.Interfaces
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Interface represents a net.Interface
|
|
type Interface struct {
|
|
Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
|
|
Mtu uint32 `protobuf:"varint,2,opt,name=mtu,proto3" json:"mtu,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
Hardwareaddr string `protobuf:"bytes,4,opt,name=hardwareaddr,proto3" json:"hardwareaddr,omitempty"`
|
|
Flags InterfaceFlags `protobuf:"varint,5,opt,name=flags,proto3,enum=proto.InterfaceFlags" json:"flags,omitempty"`
|
|
Ipaddress []string `protobuf:"bytes,6,rep,name=ipaddress,proto3" json:"ipaddress,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Interface) Reset() { *m = Interface{} }
|
|
func (m *Interface) String() string { return proto.CompactTextString(m) }
|
|
func (*Interface) ProtoMessage() {}
|
|
func (*Interface) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{3}
|
|
}
|
|
|
|
func (m *Interface) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Interface.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Interface.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *Interface) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Interface.Merge(m, src)
|
|
}
|
|
|
|
func (m *Interface) XXX_Size() int {
|
|
return xxx_messageInfo_Interface.Size(m)
|
|
}
|
|
|
|
func (m *Interface) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Interface.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Interface proto.InternalMessageInfo
|
|
|
|
func (m *Interface) GetIndex() uint32 {
|
|
if m != nil {
|
|
return m.Index
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Interface) GetMtu() uint32 {
|
|
if m != nil {
|
|
return m.Mtu
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Interface) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Interface) GetHardwareaddr() string {
|
|
if m != nil {
|
|
return m.Hardwareaddr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Interface) GetFlags() InterfaceFlags {
|
|
if m != nil {
|
|
return m.Flags
|
|
}
|
|
return InterfaceFlags_FLAG_UNKNOWN
|
|
}
|
|
|
|
func (m *Interface) GetIpaddress() []string {
|
|
if m != nil {
|
|
return m.Ipaddress
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("proto.AddressFamily", AddressFamily_name, AddressFamily_value)
|
|
proto.RegisterEnum("proto.RouteProtocol", RouteProtocol_name, RouteProtocol_value)
|
|
proto.RegisterEnum("proto.InterfaceFlags", InterfaceFlags_name, InterfaceFlags_value)
|
|
proto.RegisterType((*RoutesReply)(nil), "proto.RoutesReply")
|
|
proto.RegisterType((*Route)(nil), "proto.Route")
|
|
proto.RegisterType((*InterfacesReply)(nil), "proto.InterfacesReply")
|
|
proto.RegisterType((*Interface)(nil), "proto.Interface")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) }
|
|
|
|
var fileDescriptor_00212fb1f9d3bf1c = []byte{
|
|
// 723 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x54, 0x4d, 0x6f, 0xda, 0x4a,
|
|
0x14, 0x7d, 0xe6, 0xdb, 0x17, 0x0c, 0x93, 0x49, 0x5e, 0x9e, 0x95, 0xf7, 0x16, 0x08, 0xbd, 0x05,
|
|
0x22, 0x15, 0x89, 0x92, 0x28, 0xab, 0x6e, 0x6c, 0x30, 0xa9, 0x05, 0xb1, 0xdd, 0x89, 0x69, 0xab,
|
|
0x6c, 0x90, 0x03, 0x03, 0xb5, 0x0a, 0xd8, 0x32, 0x46, 0x29, 0x8b, 0xae, 0xfa, 0x3b, 0xfa, 0x1b,
|
|
0xba, 0xeb, 0xef, 0xab, 0x3c, 0x33, 0x26, 0x26, 0x52, 0x57, 0xf8, 0x9c, 0x7b, 0xee, 0x9d, 0x7b,
|
|
0xcf, 0x65, 0x06, 0x64, 0x2f, 0xf4, 0xbb, 0x61, 0x14, 0xc4, 0x01, 0x2e, 0xb2, 0x9f, 0xb3, 0x7f,
|
|
0x17, 0x41, 0xb0, 0x58, 0xd2,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9, 0x26, 0xcb, 0x2f, 0x5e, 0x7d, 0x83, 0xb2, 0x45, 0xe3,
|
|
0xe7, 0x20, 0xfa, 0x82, 0x6f, 0xa0, 0xc4, 0x1f, 0x1a, 0x7c, 0xda, 0xe5, 0x0f, 0x52, 0x37, 0x7d,
|
|
0x90, 0xba, 0x46, 0xf2, 0x20, 0x9d, 0xe1, 0xec, 0x5d, 0x13, 0xd7, 0xe6, 0x2d, 0xc0, 0xcb, 0x4d,
|
|
0xfa, 0x63, 0xe6, 0xe9, 0xeb, 0x7f, 0x2b, 0xcf, 0xd6, 0xcf, 0xa1, 0x31, 0x0d, 0x56, 0xdd, 0x35,
|
|
0x6f, 0xa1, 0xeb, 0x85, 0xbe, 0x0e, 0xa2, 0x1f, 0x2d, 0xf4, 0x1d, 0xe9, 0x11, 0x44, 0xc8, 0x0b,
|
|
0xfd, 0xa7, 0x12, 0xab, 0x71, 0xfd, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x03, 0x0c, 0xfa, 0x41,
|
|
0x05, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// NetworkClient is the client API for Network service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type NetworkClient interface {
|
|
Routes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*RoutesReply, error)
|
|
Interfaces(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*InterfacesReply, error)
|
|
}
|
|
|
|
type networkClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewNetworkClient(cc *grpc.ClientConn) NetworkClient {
|
|
return &networkClient{cc}
|
|
}
|
|
|
|
func (c *networkClient) Routes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*RoutesReply, error) {
|
|
out := new(RoutesReply)
|
|
err := c.cc.Invoke(ctx, "/proto.Network/Routes", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *networkClient) Interfaces(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*InterfacesReply, error) {
|
|
out := new(InterfacesReply)
|
|
err := c.cc.Invoke(ctx, "/proto.Network/Interfaces", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// NetworkServer is the server API for Network service.
|
|
type NetworkServer interface {
|
|
Routes(context.Context, *empty.Empty) (*RoutesReply, error)
|
|
Interfaces(context.Context, *empty.Empty) (*InterfacesReply, error)
|
|
}
|
|
|
|
func RegisterNetworkServer(s *grpc.Server, srv NetworkServer) {
|
|
s.RegisterService(&_Network_serviceDesc, srv)
|
|
}
|
|
|
|
func _Network_Routes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(empty.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(NetworkServer).Routes(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.Network/Routes",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(NetworkServer).Routes(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Network_Interfaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(empty.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(NetworkServer).Interfaces(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.Network/Interfaces",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(NetworkServer).Interfaces(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Network_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "proto.Network",
|
|
HandlerType: (*NetworkServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Routes",
|
|
Handler: _Network_Routes_Handler,
|
|
},
|
|
{
|
|
MethodName: "Interfaces",
|
|
Handler: _Network_Interfaces_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "api.proto",
|
|
}
|