mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-25 08:31:13 +02:00
In order for other projects to make use of our APIs, they must not reside underneath the internal directory. This moves the protobuf definitions to a top-level "api" directory and scopes them according to their domain. This change also removes generated code from the gitignore file so that users don't have to generate the code themseleves. Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
618 lines
20 KiB
Go
618 lines
20 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: api.proto
|
|
|
|
package proto
|
|
|
|
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{
|
|
// 718 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x54, 0x4f, 0x6f, 0xda, 0x4e,
|
|
0x10, 0xfd, 0x99, 0x7f, 0xc1, 0x03, 0x86, 0xcd, 0x26, 0xbf, 0xd4, 0x4a, 0xab, 0x0a, 0xa1, 0x1e,
|
|
0x10, 0xad, 0x48, 0x94, 0x44, 0x39, 0xf5, 0x62, 0x83, 0x49, 0x2d, 0x88, 0xed, 0x6e, 0x4c, 0x5b,
|
|
0xe5, 0x82, 0x1c, 0xbc, 0x50, 0xab, 0x80, 0x91, 0x31, 0x4a, 0xb9, 0xf4, 0xd2, 0xcf, 0xd1, 0xcf,
|
|
0xd0, 0x5b, 0x3f, 0x5f, 0xe5, 0xdd, 0x35, 0x31, 0x91, 0x7a, 0xf2, 0xbe, 0x37, 0x6f, 0x67, 0x77,
|
|
0xde, 0x78, 0x07, 0x64, 0x6f, 0x15, 0x74, 0x56, 0x51, 0x18, 0x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 0x2f,
|
|
0x50, 0x61, 0xb7, 0xff, 0x76, 0x34, 0x74, 0x4d, 0xb6, 0xbf, 0x78, 0xf1, 0x03, 0xca, 0x16, 0x8d,
|
|
0x1f, 0xc3, 0xe8, 0x9b, 0x8f, 0xaf, 0xa0, 0xc4, 0x27, 0x0d, 0x3e, 0xe9, 0xf0, 0x89, 0xd4, 0x49,
|
|
0x27, 0x52, 0xc7, 0x48, 0x26, 0xd2, 0x29, 0xce, 0x3e, 0x36, 0xf1, 0x6e, 0xde, 0x03, 0x3c, 0x3d,
|
|
0xa5, 0x7f, 0xee, 0x3c, 0x79, 0xfe, 0xbb, 0xf2, 0xdd, 0xfa, 0x6b, 0x90, 0x27, 0xe1, 0x82, 0x07,
|
|
0xf5, 0xb2, 0xb6, 0x0a, 0xd8, 0xff, 0xe3, 0x48, 0xf7, 0x7c, 0x34, 0x3e, 0x94, 0xd8, 0xe7, 0xf2,
|
|
0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x20, 0xb7, 0x4b, 0x85, 0x35, 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
|
|
|
|
// NetworkdClient is the client API for Networkd service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type NetworkdClient 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 networkdClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewNetworkdClient(cc *grpc.ClientConn) NetworkdClient {
|
|
return &networkdClient{cc}
|
|
}
|
|
|
|
func (c *networkdClient) Routes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*RoutesReply, error) {
|
|
out := new(RoutesReply)
|
|
err := c.cc.Invoke(ctx, "/proto.Networkd/Routes", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *networkdClient) Interfaces(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*InterfacesReply, error) {
|
|
out := new(InterfacesReply)
|
|
err := c.cc.Invoke(ctx, "/proto.Networkd/Interfaces", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// NetworkdServer is the server API for Networkd service.
|
|
type NetworkdServer interface {
|
|
Routes(context.Context, *empty.Empty) (*RoutesReply, error)
|
|
Interfaces(context.Context, *empty.Empty) (*InterfacesReply, error)
|
|
}
|
|
|
|
func RegisterNetworkdServer(s *grpc.Server, srv NetworkdServer) {
|
|
s.RegisterService(&_Networkd_serviceDesc, srv)
|
|
}
|
|
|
|
func _Networkd_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.(NetworkdServer).Routes(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.Networkd/Routes",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(NetworkdServer).Routes(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Networkd_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.(NetworkdServer).Interfaces(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.Networkd/Interfaces",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(NetworkdServer).Interfaces(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Networkd_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "proto.Networkd",
|
|
HandlerType: (*NetworkdServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Routes",
|
|
Handler: _Networkd_Routes_Handler,
|
|
},
|
|
{
|
|
MethodName: "Interfaces",
|
|
Handler: _Networkd_Interfaces_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "api.proto",
|
|
}
|