Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterEndpointLocationServiceServer(s grpc.ServiceRegistrar, srv EndpointLocationServiceServer)
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetDeviceInfo() *DeviceInfo
- func (x *Device) GetDeviceStatus() DeviceStatus
- func (x *Device) GetDeviceType() DeviceType
- func (x *Device) GetIdentifierList() *IdentifierList
- func (x *Device) GetLocationList() *LocationList
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type DeviceInfo
- func (*DeviceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceInfo) GetClassification() *wrapperspb.StringValue
- func (x *DeviceInfo) GetDeviceName() *wrapperspb.StringValue
- func (x *DeviceInfo) GetHierarchy() *fmp.RepeatedString
- func (x *DeviceInfo) GetMacVendor() *wrapperspb.StringValue
- func (x *DeviceInfo) GetMobile() *wrapperspb.BoolValue
- func (x *DeviceInfo) GetScore() *wrapperspb.UInt32Value
- func (x *DeviceInfo) GetTablet() *wrapperspb.BoolValue
- func (x *DeviceInfo) GetVersion() *wrapperspb.StringValue
- func (*DeviceInfo) ProtoMessage()
- func (x *DeviceInfo) ProtoReflect() protoreflect.Message
- func (x *DeviceInfo) Reset()
- func (x *DeviceInfo) String() string
- type DeviceMap
- type DeviceStatus
- func (DeviceStatus) Descriptor() protoreflect.EnumDescriptor
- func (x DeviceStatus) Enum() *DeviceStatus
- func (DeviceStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x DeviceStatus) Number() protoreflect.EnumNumber
- func (x DeviceStatus) String() string
- func (DeviceStatus) Type() protoreflect.EnumType
- type DeviceType
- type EndpointLocation
- func (*EndpointLocation) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointLocation) GetDeviceMap() *DeviceMap
- func (x *EndpointLocation) GetKey() *EndpointLocationKey
- func (*EndpointLocation) ProtoMessage()
- func (x *EndpointLocation) ProtoReflect() protoreflect.Message
- func (x *EndpointLocation) Reset()
- func (x *EndpointLocation) String() string
- type EndpointLocationBatchedStreamRequest
- func (*EndpointLocationBatchedStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointLocationBatchedStreamRequest) GetMaxMessages() *wrapperspb.UInt32Value
- func (x *EndpointLocationBatchedStreamRequest) GetPartialEqFilter() []*EndpointLocation
- func (x *EndpointLocationBatchedStreamRequest) GetTime() *time.TimeBounds
- func (*EndpointLocationBatchedStreamRequest) ProtoMessage()
- func (x *EndpointLocationBatchedStreamRequest) ProtoReflect() protoreflect.Message
- func (x *EndpointLocationBatchedStreamRequest) Reset()
- func (x *EndpointLocationBatchedStreamRequest) String() string
- type EndpointLocationBatchedStreamResponse
- func (*EndpointLocationBatchedStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointLocationBatchedStreamResponse) GetResponses() []*EndpointLocationStreamResponse
- func (*EndpointLocationBatchedStreamResponse) ProtoMessage()
- func (x *EndpointLocationBatchedStreamResponse) ProtoReflect() protoreflect.Message
- func (x *EndpointLocationBatchedStreamResponse) Reset()
- func (x *EndpointLocationBatchedStreamResponse) String() string
- type EndpointLocationKey
- func (*EndpointLocationKey) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointLocationKey) GetSearchTerm() *wrapperspb.StringValue
- func (*EndpointLocationKey) ProtoMessage()
- func (x *EndpointLocationKey) ProtoReflect() protoreflect.Message
- func (x *EndpointLocationKey) Reset()
- func (x *EndpointLocationKey) String() string
- type EndpointLocationRequest
- func (*EndpointLocationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointLocationRequest) GetKey() *EndpointLocationKey
- func (x *EndpointLocationRequest) GetTime() *timestamppb.Timestamp
- func (*EndpointLocationRequest) ProtoMessage()
- func (x *EndpointLocationRequest) ProtoReflect() protoreflect.Message
- func (x *EndpointLocationRequest) Reset()
- func (x *EndpointLocationRequest) String() string
- type EndpointLocationResponse
- func (*EndpointLocationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointLocationResponse) GetTime() *timestamppb.Timestamp
- func (x *EndpointLocationResponse) GetValue() *EndpointLocation
- func (*EndpointLocationResponse) ProtoMessage()
- func (x *EndpointLocationResponse) ProtoReflect() protoreflect.Message
- func (x *EndpointLocationResponse) Reset()
- func (x *EndpointLocationResponse) String() string
- type EndpointLocationServiceClient
- type EndpointLocationServiceServer
- type EndpointLocationService_GetAllBatchedClient
- type EndpointLocationService_GetAllBatchedServer
- type EndpointLocationService_GetAllClient
- type EndpointLocationService_GetAllServer
- type EndpointLocationService_GetSomeClient
- type EndpointLocationService_GetSomeServer
- type EndpointLocationService_SubscribeBatchedClient
- type EndpointLocationService_SubscribeBatchedServer
- type EndpointLocationService_SubscribeClient
- type EndpointLocationService_SubscribeMetaClient
- type EndpointLocationService_SubscribeMetaServer
- type EndpointLocationService_SubscribeServer
- type EndpointLocationSomeRequest
- func (*EndpointLocationSomeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointLocationSomeRequest) GetKeys() []*EndpointLocationKey
- func (x *EndpointLocationSomeRequest) GetTime() *timestamppb.Timestamp
- func (*EndpointLocationSomeRequest) ProtoMessage()
- func (x *EndpointLocationSomeRequest) ProtoReflect() protoreflect.Message
- func (x *EndpointLocationSomeRequest) Reset()
- func (x *EndpointLocationSomeRequest) String() string
- type EndpointLocationSomeResponse
- func (*EndpointLocationSomeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointLocationSomeResponse) GetError() *wrapperspb.StringValue
- func (x *EndpointLocationSomeResponse) GetTime() *timestamppb.Timestamp
- func (x *EndpointLocationSomeResponse) GetValue() *EndpointLocation
- func (*EndpointLocationSomeResponse) ProtoMessage()
- func (x *EndpointLocationSomeResponse) ProtoReflect() protoreflect.Message
- func (x *EndpointLocationSomeResponse) Reset()
- func (x *EndpointLocationSomeResponse) String() string
- type EndpointLocationStreamRequest
- func (*EndpointLocationStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointLocationStreamRequest) GetPartialEqFilter() []*EndpointLocation
- func (x *EndpointLocationStreamRequest) GetTime() *time.TimeBounds
- func (*EndpointLocationStreamRequest) ProtoMessage()
- func (x *EndpointLocationStreamRequest) ProtoReflect() protoreflect.Message
- func (x *EndpointLocationStreamRequest) Reset()
- func (x *EndpointLocationStreamRequest) String() string
- type EndpointLocationStreamResponse
- func (*EndpointLocationStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointLocationStreamResponse) GetTime() *timestamppb.Timestamp
- func (x *EndpointLocationStreamResponse) GetType() subscriptions.Operation
- func (x *EndpointLocationStreamResponse) GetValue() *EndpointLocation
- func (*EndpointLocationStreamResponse) ProtoMessage()
- func (x *EndpointLocationStreamResponse) ProtoReflect() protoreflect.Message
- func (x *EndpointLocationStreamResponse) Reset()
- func (x *EndpointLocationStreamResponse) String() string
- type Explanation
- func (Explanation) Descriptor() protoreflect.EnumDescriptor
- func (x Explanation) Enum() *Explanation
- func (Explanation) EnumDescriptor() ([]byte, []int)deprecated
- func (x Explanation) Number() protoreflect.EnumNumber
- func (x Explanation) String() string
- func (Explanation) Type() protoreflect.EnumType
- type ExplanationList
- type Identifier
- func (*Identifier) Descriptor() ([]byte, []int)deprecated
- func (x *Identifier) GetSourceList() *IdentifierSourceList
- func (x *Identifier) GetType() IdentifierType
- func (x *Identifier) GetValue() *wrapperspb.StringValue
- func (*Identifier) ProtoMessage()
- func (x *Identifier) ProtoReflect() protoreflect.Message
- func (x *Identifier) Reset()
- func (x *Identifier) String() string
- type IdentifierList
- type IdentifierSource
- func (IdentifierSource) Descriptor() protoreflect.EnumDescriptor
- func (x IdentifierSource) Enum() *IdentifierSource
- func (IdentifierSource) EnumDescriptor() ([]byte, []int)deprecated
- func (x IdentifierSource) Number() protoreflect.EnumNumber
- func (x IdentifierSource) String() string
- func (IdentifierSource) Type() protoreflect.EnumType
- type IdentifierSourceList
- func (*IdentifierSourceList) Descriptor() ([]byte, []int)deprecated
- func (x *IdentifierSourceList) GetValues() []IdentifierSource
- func (*IdentifierSourceList) ProtoMessage()
- func (x *IdentifierSourceList) ProtoReflect() protoreflect.Message
- func (x *IdentifierSourceList) Reset()
- func (x *IdentifierSourceList) String() string
- type IdentifierType
- func (IdentifierType) Descriptor() protoreflect.EnumDescriptor
- func (x IdentifierType) Enum() *IdentifierType
- func (IdentifierType) EnumDescriptor() ([]byte, []int)deprecated
- func (x IdentifierType) Number() protoreflect.EnumNumber
- func (x IdentifierType) String() string
- func (IdentifierType) Type() protoreflect.EnumType
- type Likelihood
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetDeviceId() *wrapperspb.StringValue
- func (x *Location) GetDeviceStatus() DeviceStatus
- func (x *Location) GetExplanationList() *ExplanationList
- func (x *Location) GetIdentifierList() *IdentifierList
- func (x *Location) GetInterface() *wrapperspb.StringValue
- func (x *Location) GetLearnedTime() *timestamppb.Timestamp
- func (x *Location) GetLikelihood() Likelihood
- func (x *Location) GetMacType() MacType
- func (x *Location) GetVlanId() *wrapperspb.UInt32Value
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type LocationList
- type MacType
- type MetaResponse
- func (*MetaResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MetaResponse) GetCount() *wrapperspb.UInt32Value
- func (x *MetaResponse) GetTime() *timestamppb.Timestamp
- func (x *MetaResponse) GetType() subscriptions.Operation
- func (*MetaResponse) ProtoMessage()
- func (x *MetaResponse) ProtoReflect() protoreflect.Message
- func (x *MetaResponse) Reset()
- func (x *MetaResponse) String() string
- type UnimplementedEndpointLocationServiceServer
- func (UnimplementedEndpointLocationServiceServer) GetAll(*EndpointLocationStreamRequest, EndpointLocationService_GetAllServer) error
- func (UnimplementedEndpointLocationServiceServer) GetAllBatched(*EndpointLocationBatchedStreamRequest, ...) error
- func (UnimplementedEndpointLocationServiceServer) GetMeta(context.Context, *EndpointLocationStreamRequest) (*MetaResponse, error)
- func (UnimplementedEndpointLocationServiceServer) GetOne(context.Context, *EndpointLocationRequest) (*EndpointLocationResponse, error)
- func (UnimplementedEndpointLocationServiceServer) GetSome(*EndpointLocationSomeRequest, EndpointLocationService_GetSomeServer) error
- func (UnimplementedEndpointLocationServiceServer) Subscribe(*EndpointLocationStreamRequest, EndpointLocationService_SubscribeServer) error
- func (UnimplementedEndpointLocationServiceServer) SubscribeBatched(*EndpointLocationBatchedStreamRequest, ...) error
- func (UnimplementedEndpointLocationServiceServer) SubscribeMeta(*EndpointLocationStreamRequest, EndpointLocationService_SubscribeMetaServer) error
- type UnsafeEndpointLocationServiceServer
Constants ¶
const ( EndpointLocationService_GetOne_FullMethodName = "/arista.endpointlocation.v1.EndpointLocationService/GetOne" EndpointLocationService_GetSome_FullMethodName = "/arista.endpointlocation.v1.EndpointLocationService/GetSome" EndpointLocationService_GetAll_FullMethodName = "/arista.endpointlocation.v1.EndpointLocationService/GetAll" EndpointLocationService_Subscribe_FullMethodName = "/arista.endpointlocation.v1.EndpointLocationService/Subscribe" EndpointLocationService_GetMeta_FullMethodName = "/arista.endpointlocation.v1.EndpointLocationService/GetMeta" EndpointLocationService_SubscribeMeta_FullMethodName = "/arista.endpointlocation.v1.EndpointLocationService/SubscribeMeta" EndpointLocationService_GetAllBatched_FullMethodName = "/arista.endpointlocation.v1.EndpointLocationService/GetAllBatched" EndpointLocationService_SubscribeBatched_FullMethodName = "/arista.endpointlocation.v1.EndpointLocationService/SubscribeBatched" )
Variables ¶
var ( MacType_name = map[int32]string{ 0: "MAC_TYPE_UNSPECIFIED", 1: "MAC_TYPE_LEARNED_DYNAMIC", 2: "MAC_TYPE_LEARNED_SECURE", 3: "MAC_TYPE_CONFIGURED_DYNAMIC", 4: "MAC_TYPE_CONFIGURED_SECURE", 5: "MAC_TYPE_CONFIGURED_STATIC", 6: "MAC_TYPE_PEER_DYNAMIC", 7: "MAC_TYPE_PEER_STATIC", 8: "MAC_TYPE_PEER_SECURE", 9: "MAC_TYPE_LEARNED_REMOTE", 10: "MAC_TYPE_CONFIGURED_REMOTE", 11: "MAC_TYPE_RECEIVED_REMOTE", 12: "MAC_TYPE_PEER_LEARNED_REMOTE", 13: "MAC_TYPE_PEER_CONFIGURED_REMOTE", 14: "MAC_TYPE_PEER_RECEIVED_REMOTE", 15: "MAC_TYPE_EVPN_DYNAMIC_REMOTE", 16: "MAC_TYPE_EVPN_CONFIGURED_REMOTE", 17: "MAC_TYPE_PEER_EVPN_REMOTE", 18: "MAC_TYPE_CONFIGURED_ROUTER", 19: "MAC_TYPE_PEER_ROUTER", 20: "MAC_TYPE_EVPN_INTF_DYNAMIC", 21: "MAC_TYPE_EVPN_INTF_STATIC", 22: "MAC_TYPE_AUTHENTICATED", 23: "MAC_TYPE_PEER_AUTHENTICATED", 24: "MAC_TYPE_PENDING_SECURE", 25: "MAC_TYPE_SOFTWARE_LEARNED_DYNAMIC", 99999: "MAC_TYPE_OTHER", } MacType_value = map[string]int32{ "MAC_TYPE_UNSPECIFIED": 0, "MAC_TYPE_LEARNED_DYNAMIC": 1, "MAC_TYPE_LEARNED_SECURE": 2, "MAC_TYPE_CONFIGURED_DYNAMIC": 3, "MAC_TYPE_CONFIGURED_SECURE": 4, "MAC_TYPE_CONFIGURED_STATIC": 5, "MAC_TYPE_PEER_DYNAMIC": 6, "MAC_TYPE_PEER_STATIC": 7, "MAC_TYPE_PEER_SECURE": 8, "MAC_TYPE_LEARNED_REMOTE": 9, "MAC_TYPE_CONFIGURED_REMOTE": 10, "MAC_TYPE_RECEIVED_REMOTE": 11, "MAC_TYPE_PEER_LEARNED_REMOTE": 12, "MAC_TYPE_PEER_CONFIGURED_REMOTE": 13, "MAC_TYPE_PEER_RECEIVED_REMOTE": 14, "MAC_TYPE_EVPN_DYNAMIC_REMOTE": 15, "MAC_TYPE_EVPN_CONFIGURED_REMOTE": 16, "MAC_TYPE_PEER_EVPN_REMOTE": 17, "MAC_TYPE_CONFIGURED_ROUTER": 18, "MAC_TYPE_PEER_ROUTER": 19, "MAC_TYPE_EVPN_INTF_DYNAMIC": 20, "MAC_TYPE_EVPN_INTF_STATIC": 21, "MAC_TYPE_AUTHENTICATED": 22, "MAC_TYPE_PEER_AUTHENTICATED": 23, "MAC_TYPE_PENDING_SECURE": 24, "MAC_TYPE_SOFTWARE_LEARNED_DYNAMIC": 25, "MAC_TYPE_OTHER": 99999, } )
Enum value maps for MacType.
var ( Likelihood_name = map[int32]string{ 0: "LIKELIHOOD_UNSPECIFIED", 1: "LIKELIHOOD_VERY_LIKELY", 2: "LIKELIHOOD_LIKELY", 3: "LIKELIHOOD_SOMEWHAT_LIKELY", 4: "LIKELIHOOD_LESS_LIKELY", } Likelihood_value = map[string]int32{ "LIKELIHOOD_UNSPECIFIED": 0, "LIKELIHOOD_VERY_LIKELY": 1, "LIKELIHOOD_LIKELY": 2, "LIKELIHOOD_SOMEWHAT_LIKELY": 3, "LIKELIHOOD_LESS_LIKELY": 4, } )
Enum value maps for Likelihood.
var ( IdentifierType_name = map[int32]string{ 0: "IDENTIFIER_TYPE_UNSPECIFIED", 1: "IDENTIFIER_TYPE_MAC_ADDR", 2: "IDENTIFIER_TYPE_IPV4_ADDR", 3: "IDENTIFIER_TYPE_IPV6_ADDR", 4: "IDENTIFIER_TYPE_INVENTORY_DEVICE_ID", 5: "IDENTIFIER_TYPE_PRIMARY_MANAGEMENT_IP", 6: "IDENTIFIER_TYPE_HOSTNAME", 7: "IDENTIFIER_TYPE_USERNAME", 99999: "IDENTIFIER_TYPE_OTHER", } IdentifierType_value = map[string]int32{ "IDENTIFIER_TYPE_UNSPECIFIED": 0, "IDENTIFIER_TYPE_MAC_ADDR": 1, "IDENTIFIER_TYPE_IPV4_ADDR": 2, "IDENTIFIER_TYPE_IPV6_ADDR": 3, "IDENTIFIER_TYPE_INVENTORY_DEVICE_ID": 4, "IDENTIFIER_TYPE_PRIMARY_MANAGEMENT_IP": 5, "IDENTIFIER_TYPE_HOSTNAME": 6, "IDENTIFIER_TYPE_USERNAME": 7, "IDENTIFIER_TYPE_OTHER": 99999, } )
Enum value maps for IdentifierType.
var ( IdentifierSource_name = map[int32]string{ 0: "IDENTIFIER_SOURCE_UNSPECIFIED", 1: "IDENTIFIER_SOURCE_FDB", 2: "IDENTIFIER_SOURCE_ARP", 3: "IDENTIFIER_SOURCE_NEIGHBOR", 4: "IDENTIFIER_SOURCE_DEVICE_INVENTORY", 5: "IDENTIFIER_SOURCE_LLDP", 6: "IDENTIFIER_SOURCE_DHCP", 7: "IDENTIFIER_SOURCE_WIFI", } IdentifierSource_value = map[string]int32{ "IDENTIFIER_SOURCE_UNSPECIFIED": 0, "IDENTIFIER_SOURCE_FDB": 1, "IDENTIFIER_SOURCE_ARP": 2, "IDENTIFIER_SOURCE_NEIGHBOR": 3, "IDENTIFIER_SOURCE_DEVICE_INVENTORY": 4, "IDENTIFIER_SOURCE_LLDP": 5, "IDENTIFIER_SOURCE_DHCP": 6, "IDENTIFIER_SOURCE_WIFI": 7, } )
Enum value maps for IdentifierSource.
var ( Explanation_name = map[int32]string{ 0: "EXPLANATION_UNSPECIFIED", 1: "EXPLANATION_DIRECT_CONNECTION", 2: "EXPLANATION_NON_INVENTORY_CONNECTION", 3: "EXPLANATION_NO_CONNECTION", 4: "EXPLANATION_INVENTORY_CONNECTION", 5: "EXPLANATION_OWN_PORT_INVENTORY_DEVICE", 6: "EXPLANATION_DIRECT_CONNECTION_INVENTORY_DEVICE", 7: "EXPLANATION_NO_CONNECTION_INVENTORY_DEVICE", 8: "EXPLANATION_OTHER_CONNECTION_INVENTORY_DEVICE", 9: "EXPLANATION_VIRTUAL", 10: "EXPLANATION_WIRELESS_CONNECTION", 11: "EXPLANATION_ACCESS_PORT", } Explanation_value = map[string]int32{ "EXPLANATION_UNSPECIFIED": 0, "EXPLANATION_DIRECT_CONNECTION": 1, "EXPLANATION_NON_INVENTORY_CONNECTION": 2, "EXPLANATION_NO_CONNECTION": 3, "EXPLANATION_INVENTORY_CONNECTION": 4, "EXPLANATION_OWN_PORT_INVENTORY_DEVICE": 5, "EXPLANATION_DIRECT_CONNECTION_INVENTORY_DEVICE": 6, "EXPLANATION_NO_CONNECTION_INVENTORY_DEVICE": 7, "EXPLANATION_OTHER_CONNECTION_INVENTORY_DEVICE": 8, "EXPLANATION_VIRTUAL": 9, "EXPLANATION_WIRELESS_CONNECTION": 10, "EXPLANATION_ACCESS_PORT": 11, } )
Enum value maps for Explanation.
var ( DeviceType_name = map[int32]string{ 0: "DEVICE_TYPE_UNSPECIFIED", 1: "DEVICE_TYPE_INVENTORY", 2: "DEVICE_TYPE_ENDPOINT", 3: "DEVICE_TYPE_WIFI_ENDPOINT", } DeviceType_value = map[string]int32{ "DEVICE_TYPE_UNSPECIFIED": 0, "DEVICE_TYPE_INVENTORY": 1, "DEVICE_TYPE_ENDPOINT": 2, "DEVICE_TYPE_WIFI_ENDPOINT": 3, } )
Enum value maps for DeviceType.
var ( DeviceStatus_name = map[int32]string{ 0: "DEVICE_STATUS_UNSPECIFIED", 1: "DEVICE_STATUS_ACTIVE", 2: "DEVICE_STATUS_INACTIVE", } DeviceStatus_value = map[string]int32{ "DEVICE_STATUS_UNSPECIFIED": 0, "DEVICE_STATUS_ACTIVE": 1, "DEVICE_STATUS_INACTIVE": 2, } )
Enum value maps for DeviceStatus.
var EndpointLocationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "arista.endpointlocation.v1.EndpointLocationService", HandlerType: (*EndpointLocationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetOne", Handler: _EndpointLocationService_GetOne_Handler, }, { MethodName: "GetMeta", Handler: _EndpointLocationService_GetMeta_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetSome", Handler: _EndpointLocationService_GetSome_Handler, ServerStreams: true, }, { StreamName: "GetAll", Handler: _EndpointLocationService_GetAll_Handler, ServerStreams: true, }, { StreamName: "Subscribe", Handler: _EndpointLocationService_Subscribe_Handler, ServerStreams: true, }, { StreamName: "SubscribeMeta", Handler: _EndpointLocationService_SubscribeMeta_Handler, ServerStreams: true, }, { StreamName: "GetAllBatched", Handler: _EndpointLocationService_GetAllBatched_Handler, ServerStreams: true, }, { StreamName: "SubscribeBatched", Handler: _EndpointLocationService_SubscribeBatched_Handler, ServerStreams: true, }, }, Metadata: "arista/endpointlocation.v1/services.gen.proto", }
EndpointLocationService_ServiceDesc is the grpc.ServiceDesc for EndpointLocationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_arista_endpointlocation_v1_endpointlocation_proto protoreflect.FileDescriptor
var File_arista_endpointlocation_v1_services_gen_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEndpointLocationServiceServer ¶
func RegisterEndpointLocationServiceServer(s grpc.ServiceRegistrar, srv EndpointLocationServiceServer)
Types ¶
type Device ¶
type Device struct { // identifier_list holds the unique identifiers for the device. IdentifierList *IdentifierList `protobuf:"bytes,1,opt,name=identifier_list,json=identifierList,proto3" json:"identifier_list,omitempty"` // device_type is the broad category of the device. DeviceType DeviceType `` /* 135-byte string literal not displayed */ // location_list is the list of possible locations of the device. // It is ordered from most likely to least likely. LocationList *LocationList `protobuf:"bytes,3,opt,name=location_list,json=locationList,proto3" json:"location_list,omitempty"` // device_status is the network status of the device. DeviceStatus DeviceStatus `` /* 143-byte string literal not displayed */ // device_info holds various attributes of the device. DeviceInfo *DeviceInfo `protobuf:"bytes,5,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"` // contains filtered or unexported fields }
Device holds information for a device matching a search term.
func (*Device) Descriptor
deprecated
func (*Device) GetDeviceInfo ¶
func (x *Device) GetDeviceInfo() *DeviceInfo
func (*Device) GetDeviceStatus ¶
func (x *Device) GetDeviceStatus() DeviceStatus
func (*Device) GetDeviceType ¶
func (x *Device) GetDeviceType() DeviceType
func (*Device) GetIdentifierList ¶
func (x *Device) GetIdentifierList() *IdentifierList
func (*Device) GetLocationList ¶
func (x *Device) GetLocationList() *LocationList
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type DeviceInfo ¶
type DeviceInfo struct { // device_name is the name of the device. DeviceName *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` // mobile indicates whether the device is a mobile. Mobile *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"` // tablet indicates whether the device is a tablet. Tablet *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=tablet,proto3" json:"tablet,omitempty"` // score is a value from 0 to 100 that indicates how confident we are // that the device has device_name. // Fingerbank API documentation of score: https://api.fingerbank.org/api_doc/2/combinations.html Score *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=score,proto3" json:"score,omitempty"` // version is the version of device_name. Version *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` // mac_vendor is the enterprise that assigns the MAC address of the device. MacVendor *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=mac_vendor,json=macVendor,proto3" json:"mac_vendor,omitempty"` // classification is the broadest category to which device_name belongs. // This is the highest level in hierarchy. Classification *wrapperspb.StringValue `protobuf:"bytes,7,opt,name=classification,proto3" json:"classification,omitempty"` // hierarchy is a list of categorizations of the device from most broad // to most specific. The first element is always classification and the // last element is always device_name. // // For example, // // ["VoIP Device", "FooInc VoIP", "FooInc PhoneSet IP", "FooInc PhoneSet IP Model123"] // // In this hierarchy, "VoIP Device" is classification and "FooInc PhoneSet IP Model123" // is device_name. Hierarchy *fmp.RepeatedString `protobuf:"bytes,8,opt,name=hierarchy,proto3" json:"hierarchy,omitempty"` // contains filtered or unexported fields }
DeviceInfo holds various attributes of a device (typically an endpoint) from Fingerbank.
func (*DeviceInfo) Descriptor
deprecated
func (*DeviceInfo) Descriptor() ([]byte, []int)
Deprecated: Use DeviceInfo.ProtoReflect.Descriptor instead.
func (*DeviceInfo) GetClassification ¶
func (x *DeviceInfo) GetClassification() *wrapperspb.StringValue
func (*DeviceInfo) GetDeviceName ¶
func (x *DeviceInfo) GetDeviceName() *wrapperspb.StringValue
func (*DeviceInfo) GetHierarchy ¶
func (x *DeviceInfo) GetHierarchy() *fmp.RepeatedString
func (*DeviceInfo) GetMacVendor ¶
func (x *DeviceInfo) GetMacVendor() *wrapperspb.StringValue
func (*DeviceInfo) GetMobile ¶
func (x *DeviceInfo) GetMobile() *wrapperspb.BoolValue
func (*DeviceInfo) GetScore ¶
func (x *DeviceInfo) GetScore() *wrapperspb.UInt32Value
func (*DeviceInfo) GetTablet ¶
func (x *DeviceInfo) GetTablet() *wrapperspb.BoolValue
func (*DeviceInfo) GetVersion ¶
func (x *DeviceInfo) GetVersion() *wrapperspb.StringValue
func (*DeviceInfo) ProtoMessage ¶
func (*DeviceInfo) ProtoMessage()
func (*DeviceInfo) ProtoReflect ¶
func (x *DeviceInfo) ProtoReflect() protoreflect.Message
func (*DeviceInfo) Reset ¶
func (x *DeviceInfo) Reset()
func (*DeviceInfo) String ¶
func (x *DeviceInfo) String() string
type DeviceMap ¶
type DeviceMap struct { // values is a map from most specific identifier to Device. // The key could be device serial number or MAC address. Values map[string]*Device `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
DeviceMap is a collection of Device.
func (*DeviceMap) Descriptor
deprecated
func (*DeviceMap) ProtoMessage ¶
func (*DeviceMap) ProtoMessage()
func (*DeviceMap) ProtoReflect ¶
func (x *DeviceMap) ProtoReflect() protoreflect.Message
type DeviceStatus ¶
type DeviceStatus int32
DeviceStatus is the network status of a device.
const ( // DEVICE_STATUS_UNSPECIFIED is the default unspecified device status. DeviceStatus_DEVICE_STATUS_UNSPECIFIED DeviceStatus = 0 // DEVICE_STATUS_ACTIVE indicates a device is streaming its telemetry data // to CloudVision. DeviceStatus_DEVICE_STATUS_ACTIVE DeviceStatus = 1 // DEVICE_STATUS_INACTIVE indicates a device is either not streaming its // telemetry data to CloudVision or has been decommissioned from CloudVision. DeviceStatus_DEVICE_STATUS_INACTIVE DeviceStatus = 2 )
func (DeviceStatus) Descriptor ¶
func (DeviceStatus) Descriptor() protoreflect.EnumDescriptor
func (DeviceStatus) Enum ¶
func (x DeviceStatus) Enum() *DeviceStatus
func (DeviceStatus) EnumDescriptor
deprecated
func (DeviceStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeviceStatus.Descriptor instead.
func (DeviceStatus) Number ¶
func (x DeviceStatus) Number() protoreflect.EnumNumber
func (DeviceStatus) String ¶
func (x DeviceStatus) String() string
func (DeviceStatus) Type ¶
func (DeviceStatus) Type() protoreflect.EnumType
type DeviceType ¶
type DeviceType int32
DeviceType defines a broad set of categories for all queried devices.
const ( // DEVICE_TYPE_UNSPECIFIED is the default unspecified device type. DeviceType_DEVICE_TYPE_UNSPECIFIED DeviceType = 0 // DEVICE_TYPE_INVENTORY indicates a device in the CloudVision inventory. DeviceType_DEVICE_TYPE_INVENTORY DeviceType = 1 // DEVICE_TYPE_ENDPOINT indicates an endpoint that does not exist // in the CloudVision inventory. DeviceType_DEVICE_TYPE_ENDPOINT DeviceType = 2 // DEVICE_TYPE_WIFI_ENDPOINT indicates a WiFi client/endpoint that does not // exist in the CloudVision inventory. // Deprecated - do not support searches for wifi endpoints anymore // // Deprecated: Marked as deprecated in arista/endpointlocation.v1/endpointlocation.proto. DeviceType_DEVICE_TYPE_WIFI_ENDPOINT DeviceType = 3 )
func (DeviceType) Descriptor ¶
func (DeviceType) Descriptor() protoreflect.EnumDescriptor
func (DeviceType) Enum ¶
func (x DeviceType) Enum() *DeviceType
func (DeviceType) EnumDescriptor
deprecated
func (DeviceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DeviceType.Descriptor instead.
func (DeviceType) Number ¶
func (x DeviceType) Number() protoreflect.EnumNumber
func (DeviceType) String ¶
func (x DeviceType) String() string
func (DeviceType) Type ¶
func (DeviceType) Type() protoreflect.EnumType
type EndpointLocation ¶
type EndpointLocation struct { // key holds a search term used to locate an endpoint. Key *EndpointLocationKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // device_map holds the devices (and their potential locations) // that match the search term. DeviceMap *DeviceMap `protobuf:"bytes,2,opt,name=device_map,json=deviceMap,proto3" json:"device_map,omitempty"` // contains filtered or unexported fields }
EndpointLocation is the entrypoint to searching for endpoints.
func (*EndpointLocation) Descriptor
deprecated
func (*EndpointLocation) Descriptor() ([]byte, []int)
Deprecated: Use EndpointLocation.ProtoReflect.Descriptor instead.
func (*EndpointLocation) GetDeviceMap ¶
func (x *EndpointLocation) GetDeviceMap() *DeviceMap
func (*EndpointLocation) GetKey ¶
func (x *EndpointLocation) GetKey() *EndpointLocationKey
func (*EndpointLocation) ProtoMessage ¶
func (*EndpointLocation) ProtoMessage()
func (*EndpointLocation) ProtoReflect ¶
func (x *EndpointLocation) ProtoReflect() protoreflect.Message
func (*EndpointLocation) Reset ¶
func (x *EndpointLocation) Reset()
func (*EndpointLocation) String ¶
func (x *EndpointLocation) String() string
type EndpointLocationBatchedStreamRequest ¶
type EndpointLocationBatchedStreamRequest struct { // PartialEqFilter provides a way to server-side filter a GetAll/Subscribe. // This requires all provided fields to be equal to the response. // // While transparent to users, this field also allows services to optimize internal // subscriptions if filter(s) are sufficiently specific. PartialEqFilter []*EndpointLocation `protobuf:"bytes,1,rep,name=partial_eq_filter,json=partialEqFilter,proto3" json:"partial_eq_filter,omitempty"` // TimeRange allows limiting response data to within a specified time window. // If this field is populated, at least one of the two time fields are required. // // For GetAll, the fields start and end can be used as follows: // // - end: Returns the state of each EndpointLocation at end. // - Each EndpointLocation response is fully-specified (all fields set). // - start: Returns the state of each EndpointLocation at start, followed by updates until now. // - Each EndpointLocation response at start is fully-specified, but updates may be partial. // - start and end: Returns the state of each EndpointLocation at start, followed by updates // until end. // - Each EndpointLocation response at start is fully-specified, but updates until end may // be partial. // // This field is not allowed in the Subscribe RPC. Time *time.TimeBounds `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` // MaxMessages limits the maximum number of messages that can be contained in one batch. // MaxMessages is required to be at least 1. // The maximum number of messages in a batch is min(max_messages, INTERNAL_BATCH_LIMIT) // INTERNAL_BATCH_LIMIT is set based on the maximum message size. MaxMessages *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=max_messages,json=maxMessages,proto3" json:"max_messages,omitempty"` // contains filtered or unexported fields }
func (*EndpointLocationBatchedStreamRequest) Descriptor
deprecated
func (*EndpointLocationBatchedStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use EndpointLocationBatchedStreamRequest.ProtoReflect.Descriptor instead.
func (*EndpointLocationBatchedStreamRequest) GetMaxMessages ¶
func (x *EndpointLocationBatchedStreamRequest) GetMaxMessages() *wrapperspb.UInt32Value
func (*EndpointLocationBatchedStreamRequest) GetPartialEqFilter ¶
func (x *EndpointLocationBatchedStreamRequest) GetPartialEqFilter() []*EndpointLocation
func (*EndpointLocationBatchedStreamRequest) GetTime ¶
func (x *EndpointLocationBatchedStreamRequest) GetTime() *time.TimeBounds
func (*EndpointLocationBatchedStreamRequest) ProtoMessage ¶
func (*EndpointLocationBatchedStreamRequest) ProtoMessage()
func (*EndpointLocationBatchedStreamRequest) ProtoReflect ¶
func (x *EndpointLocationBatchedStreamRequest) ProtoReflect() protoreflect.Message
func (*EndpointLocationBatchedStreamRequest) Reset ¶
func (x *EndpointLocationBatchedStreamRequest) Reset()
func (*EndpointLocationBatchedStreamRequest) String ¶
func (x *EndpointLocationBatchedStreamRequest) String() string
type EndpointLocationBatchedStreamResponse ¶
type EndpointLocationBatchedStreamResponse struct { // Values are the values deemed relevant to the initiating request. // The length of this structure is guaranteed to be between (inclusive) 1 and // min(req.max_messages, INTERNAL_BATCH_LIMIT). Responses []*EndpointLocationStreamResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` // contains filtered or unexported fields }
func (*EndpointLocationBatchedStreamResponse) Descriptor
deprecated
func (*EndpointLocationBatchedStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use EndpointLocationBatchedStreamResponse.ProtoReflect.Descriptor instead.
func (*EndpointLocationBatchedStreamResponse) GetResponses ¶
func (x *EndpointLocationBatchedStreamResponse) GetResponses() []*EndpointLocationStreamResponse
func (*EndpointLocationBatchedStreamResponse) ProtoMessage ¶
func (*EndpointLocationBatchedStreamResponse) ProtoMessage()
func (*EndpointLocationBatchedStreamResponse) ProtoReflect ¶
func (x *EndpointLocationBatchedStreamResponse) ProtoReflect() protoreflect.Message
func (*EndpointLocationBatchedStreamResponse) Reset ¶
func (x *EndpointLocationBatchedStreamResponse) Reset()
func (*EndpointLocationBatchedStreamResponse) String ¶
func (x *EndpointLocationBatchedStreamResponse) String() string
type EndpointLocationKey ¶
type EndpointLocationKey struct { // search_term is used to match against identifiers on devices. // This could be a MAC/IP address, hostname, etc. SearchTerm *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=search_term,json=searchTerm,proto3" json:"search_term,omitempty"` // contains filtered or unexported fields }
EndpointLocationKey holds a search term used to locate an endpoint.
func (*EndpointLocationKey) Descriptor
deprecated
func (*EndpointLocationKey) Descriptor() ([]byte, []int)
Deprecated: Use EndpointLocationKey.ProtoReflect.Descriptor instead.
func (*EndpointLocationKey) GetSearchTerm ¶
func (x *EndpointLocationKey) GetSearchTerm() *wrapperspb.StringValue
func (*EndpointLocationKey) ProtoMessage ¶
func (*EndpointLocationKey) ProtoMessage()
func (*EndpointLocationKey) ProtoReflect ¶
func (x *EndpointLocationKey) ProtoReflect() protoreflect.Message
func (*EndpointLocationKey) Reset ¶
func (x *EndpointLocationKey) Reset()
func (*EndpointLocationKey) String ¶
func (x *EndpointLocationKey) String() string
type EndpointLocationRequest ¶
type EndpointLocationRequest struct { // Key uniquely identifies a EndpointLocation instance to retrieve. // This value must be populated. Key *EndpointLocationKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Time indicates the time for which you are interested in the data. // If no time is given, the server will use the time at which it makes the request. Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*EndpointLocationRequest) Descriptor
deprecated
func (*EndpointLocationRequest) Descriptor() ([]byte, []int)
Deprecated: Use EndpointLocationRequest.ProtoReflect.Descriptor instead.
func (*EndpointLocationRequest) GetKey ¶
func (x *EndpointLocationRequest) GetKey() *EndpointLocationKey
func (*EndpointLocationRequest) GetTime ¶
func (x *EndpointLocationRequest) GetTime() *timestamppb.Timestamp
func (*EndpointLocationRequest) ProtoMessage ¶
func (*EndpointLocationRequest) ProtoMessage()
func (*EndpointLocationRequest) ProtoReflect ¶
func (x *EndpointLocationRequest) ProtoReflect() protoreflect.Message
func (*EndpointLocationRequest) Reset ¶
func (x *EndpointLocationRequest) Reset()
func (*EndpointLocationRequest) String ¶
func (x *EndpointLocationRequest) String() string
type EndpointLocationResponse ¶
type EndpointLocationResponse struct { // Value is the value requested. // This structure will be fully-populated as it exists in the datastore. If // optional fields were not given at creation, these fields will be empty or // set to default values. Value *EndpointLocation `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // Time carries the (UTC) timestamp of the last-modification of the // EndpointLocation instance in this response. Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*EndpointLocationResponse) Descriptor
deprecated
func (*EndpointLocationResponse) Descriptor() ([]byte, []int)
Deprecated: Use EndpointLocationResponse.ProtoReflect.Descriptor instead.
func (*EndpointLocationResponse) GetTime ¶
func (x *EndpointLocationResponse) GetTime() *timestamppb.Timestamp
func (*EndpointLocationResponse) GetValue ¶
func (x *EndpointLocationResponse) GetValue() *EndpointLocation
func (*EndpointLocationResponse) ProtoMessage ¶
func (*EndpointLocationResponse) ProtoMessage()
func (*EndpointLocationResponse) ProtoReflect ¶
func (x *EndpointLocationResponse) ProtoReflect() protoreflect.Message
func (*EndpointLocationResponse) Reset ¶
func (x *EndpointLocationResponse) Reset()
func (*EndpointLocationResponse) String ¶
func (x *EndpointLocationResponse) String() string
type EndpointLocationServiceClient ¶
type EndpointLocationServiceClient interface { GetOne(ctx context.Context, in *EndpointLocationRequest, opts ...grpc.CallOption) (*EndpointLocationResponse, error) GetSome(ctx context.Context, in *EndpointLocationSomeRequest, opts ...grpc.CallOption) (EndpointLocationService_GetSomeClient, error) GetAll(ctx context.Context, in *EndpointLocationStreamRequest, opts ...grpc.CallOption) (EndpointLocationService_GetAllClient, error) Subscribe(ctx context.Context, in *EndpointLocationStreamRequest, opts ...grpc.CallOption) (EndpointLocationService_SubscribeClient, error) GetMeta(ctx context.Context, in *EndpointLocationStreamRequest, opts ...grpc.CallOption) (*MetaResponse, error) SubscribeMeta(ctx context.Context, in *EndpointLocationStreamRequest, opts ...grpc.CallOption) (EndpointLocationService_SubscribeMetaClient, error) GetAllBatched(ctx context.Context, in *EndpointLocationBatchedStreamRequest, opts ...grpc.CallOption) (EndpointLocationService_GetAllBatchedClient, error) SubscribeBatched(ctx context.Context, in *EndpointLocationBatchedStreamRequest, opts ...grpc.CallOption) (EndpointLocationService_SubscribeBatchedClient, error) }
EndpointLocationServiceClient is the client API for EndpointLocationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEndpointLocationServiceClient ¶
func NewEndpointLocationServiceClient(cc grpc.ClientConnInterface) EndpointLocationServiceClient
type EndpointLocationServiceServer ¶
type EndpointLocationServiceServer interface { GetOne(context.Context, *EndpointLocationRequest) (*EndpointLocationResponse, error) GetSome(*EndpointLocationSomeRequest, EndpointLocationService_GetSomeServer) error GetAll(*EndpointLocationStreamRequest, EndpointLocationService_GetAllServer) error Subscribe(*EndpointLocationStreamRequest, EndpointLocationService_SubscribeServer) error GetMeta(context.Context, *EndpointLocationStreamRequest) (*MetaResponse, error) SubscribeMeta(*EndpointLocationStreamRequest, EndpointLocationService_SubscribeMetaServer) error GetAllBatched(*EndpointLocationBatchedStreamRequest, EndpointLocationService_GetAllBatchedServer) error SubscribeBatched(*EndpointLocationBatchedStreamRequest, EndpointLocationService_SubscribeBatchedServer) error // contains filtered or unexported methods }
EndpointLocationServiceServer is the server API for EndpointLocationService service. All implementations must embed UnimplementedEndpointLocationServiceServer for forward compatibility
type EndpointLocationService_GetAllBatchedClient ¶
type EndpointLocationService_GetAllBatchedClient interface { Recv() (*EndpointLocationBatchedStreamResponse, error) grpc.ClientStream }
type EndpointLocationService_GetAllBatchedServer ¶
type EndpointLocationService_GetAllBatchedServer interface { Send(*EndpointLocationBatchedStreamResponse) error grpc.ServerStream }
type EndpointLocationService_GetAllClient ¶
type EndpointLocationService_GetAllClient interface { Recv() (*EndpointLocationStreamResponse, error) grpc.ClientStream }
type EndpointLocationService_GetAllServer ¶
type EndpointLocationService_GetAllServer interface { Send(*EndpointLocationStreamResponse) error grpc.ServerStream }
type EndpointLocationService_GetSomeClient ¶
type EndpointLocationService_GetSomeClient interface { Recv() (*EndpointLocationSomeResponse, error) grpc.ClientStream }
type EndpointLocationService_GetSomeServer ¶
type EndpointLocationService_GetSomeServer interface { Send(*EndpointLocationSomeResponse) error grpc.ServerStream }
type EndpointLocationService_SubscribeBatchedClient ¶
type EndpointLocationService_SubscribeBatchedClient interface { Recv() (*EndpointLocationBatchedStreamResponse, error) grpc.ClientStream }
type EndpointLocationService_SubscribeBatchedServer ¶
type EndpointLocationService_SubscribeBatchedServer interface { Send(*EndpointLocationBatchedStreamResponse) error grpc.ServerStream }
type EndpointLocationService_SubscribeClient ¶
type EndpointLocationService_SubscribeClient interface { Recv() (*EndpointLocationStreamResponse, error) grpc.ClientStream }
type EndpointLocationService_SubscribeMetaClient ¶
type EndpointLocationService_SubscribeMetaClient interface { Recv() (*MetaResponse, error) grpc.ClientStream }
type EndpointLocationService_SubscribeMetaServer ¶
type EndpointLocationService_SubscribeMetaServer interface { Send(*MetaResponse) error grpc.ServerStream }
type EndpointLocationService_SubscribeServer ¶
type EndpointLocationService_SubscribeServer interface { Send(*EndpointLocationStreamResponse) error grpc.ServerStream }
type EndpointLocationSomeRequest ¶
type EndpointLocationSomeRequest struct { Keys []*EndpointLocationKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // Time indicates the time for which you are interested in the data. // If no time is given, the server will use the time at which it makes the request. Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*EndpointLocationSomeRequest) Descriptor
deprecated
func (*EndpointLocationSomeRequest) Descriptor() ([]byte, []int)
Deprecated: Use EndpointLocationSomeRequest.ProtoReflect.Descriptor instead.
func (*EndpointLocationSomeRequest) GetKeys ¶
func (x *EndpointLocationSomeRequest) GetKeys() []*EndpointLocationKey
func (*EndpointLocationSomeRequest) GetTime ¶
func (x *EndpointLocationSomeRequest) GetTime() *timestamppb.Timestamp
func (*EndpointLocationSomeRequest) ProtoMessage ¶
func (*EndpointLocationSomeRequest) ProtoMessage()
func (*EndpointLocationSomeRequest) ProtoReflect ¶
func (x *EndpointLocationSomeRequest) ProtoReflect() protoreflect.Message
func (*EndpointLocationSomeRequest) Reset ¶
func (x *EndpointLocationSomeRequest) Reset()
func (*EndpointLocationSomeRequest) String ¶
func (x *EndpointLocationSomeRequest) String() string
type EndpointLocationSomeResponse ¶
type EndpointLocationSomeResponse struct { // Value is the value requested. // This structure will be fully-populated as it exists in the datastore. If // optional fields were not given at creation, these fields will be empty or // set to default values. Value *EndpointLocation `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // Error is an optional field. // It should be filled when there is an error in the GetSome process. Error *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*EndpointLocationSomeResponse) Descriptor
deprecated
func (*EndpointLocationSomeResponse) Descriptor() ([]byte, []int)
Deprecated: Use EndpointLocationSomeResponse.ProtoReflect.Descriptor instead.
func (*EndpointLocationSomeResponse) GetError ¶
func (x *EndpointLocationSomeResponse) GetError() *wrapperspb.StringValue
func (*EndpointLocationSomeResponse) GetTime ¶
func (x *EndpointLocationSomeResponse) GetTime() *timestamppb.Timestamp
func (*EndpointLocationSomeResponse) GetValue ¶
func (x *EndpointLocationSomeResponse) GetValue() *EndpointLocation
func (*EndpointLocationSomeResponse) ProtoMessage ¶
func (*EndpointLocationSomeResponse) ProtoMessage()
func (*EndpointLocationSomeResponse) ProtoReflect ¶
func (x *EndpointLocationSomeResponse) ProtoReflect() protoreflect.Message
func (*EndpointLocationSomeResponse) Reset ¶
func (x *EndpointLocationSomeResponse) Reset()
func (*EndpointLocationSomeResponse) String ¶
func (x *EndpointLocationSomeResponse) String() string
type EndpointLocationStreamRequest ¶
type EndpointLocationStreamRequest struct { // PartialEqFilter provides a way to server-side filter a GetAll/Subscribe. // This requires all provided fields to be equal to the response. // // While transparent to users, this field also allows services to optimize internal // subscriptions if filter(s) are sufficiently specific. PartialEqFilter []*EndpointLocation `protobuf:"bytes,1,rep,name=partial_eq_filter,json=partialEqFilter,proto3" json:"partial_eq_filter,omitempty"` // TimeRange allows limiting response data to within a specified time window. // If this field is populated, at least one of the two time fields are required. // // For GetAll, the fields start and end can be used as follows: // // - end: Returns the state of each EndpointLocation at end. // - Each EndpointLocation response is fully-specified (all fields set). // - start: Returns the state of each EndpointLocation at start, followed by updates until now. // - Each EndpointLocation response at start is fully-specified, but updates may be partial. // - start and end: Returns the state of each EndpointLocation at start, followed by updates // until end. // - Each EndpointLocation response at start is fully-specified, but updates until end may // be partial. // // This field is not allowed in the Subscribe RPC. Time *time.TimeBounds `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*EndpointLocationStreamRequest) Descriptor
deprecated
func (*EndpointLocationStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use EndpointLocationStreamRequest.ProtoReflect.Descriptor instead.
func (*EndpointLocationStreamRequest) GetPartialEqFilter ¶
func (x *EndpointLocationStreamRequest) GetPartialEqFilter() []*EndpointLocation
func (*EndpointLocationStreamRequest) GetTime ¶
func (x *EndpointLocationStreamRequest) GetTime() *time.TimeBounds
func (*EndpointLocationStreamRequest) ProtoMessage ¶
func (*EndpointLocationStreamRequest) ProtoMessage()
func (*EndpointLocationStreamRequest) ProtoReflect ¶
func (x *EndpointLocationStreamRequest) ProtoReflect() protoreflect.Message
func (*EndpointLocationStreamRequest) Reset ¶
func (x *EndpointLocationStreamRequest) Reset()
func (*EndpointLocationStreamRequest) String ¶
func (x *EndpointLocationStreamRequest) String() string
type EndpointLocationStreamResponse ¶
type EndpointLocationStreamResponse struct { // Value is a value deemed relevant to the initiating request. // This structure will always have its key-field populated. Which other fields are // populated, and why, depends on the value of Operation and what triggered this notification. Value *EndpointLocation `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // Time holds the timestamp of this EndpointLocation's last modification. Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // Operation indicates how the EndpointLocation value in this response should be considered. // Under non-subscribe requests, this value should always be INITIAL. In a subscription, // once all initial data is streamed and the client begins to receive modification updates, // you should not see INITIAL again. Type subscriptions.Operation `protobuf:"varint,3,opt,name=type,proto3,enum=arista.subscriptions.Operation" json:"type,omitempty"` // contains filtered or unexported fields }
func (*EndpointLocationStreamResponse) Descriptor
deprecated
func (*EndpointLocationStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use EndpointLocationStreamResponse.ProtoReflect.Descriptor instead.
func (*EndpointLocationStreamResponse) GetTime ¶
func (x *EndpointLocationStreamResponse) GetTime() *timestamppb.Timestamp
func (*EndpointLocationStreamResponse) GetType ¶
func (x *EndpointLocationStreamResponse) GetType() subscriptions.Operation
func (*EndpointLocationStreamResponse) GetValue ¶
func (x *EndpointLocationStreamResponse) GetValue() *EndpointLocation
func (*EndpointLocationStreamResponse) ProtoMessage ¶
func (*EndpointLocationStreamResponse) ProtoMessage()
func (*EndpointLocationStreamResponse) ProtoReflect ¶
func (x *EndpointLocationStreamResponse) ProtoReflect() protoreflect.Message
func (*EndpointLocationStreamResponse) Reset ¶
func (x *EndpointLocationStreamResponse) Reset()
func (*EndpointLocationStreamResponse) String ¶
func (x *EndpointLocationStreamResponse) String() string
type Explanation ¶
type Explanation int32
Explanation defines the set of reasons for why a location has a certain likelihood. Some explanations apply to queried endpoints while others apply to queried devices in the CloudVision device inventory.
const ( // EXPLANATION_UNSPECIFIED is the default unspecified explanation. Explanation_EXPLANATION_UNSPECIFIED Explanation = 0 // EXPLANATION_DIRECT_CONNECTION indicates a direct connection to the queried // endpoint device discovered via LLDP. Explanation_EXPLANATION_DIRECT_CONNECTION Explanation = 1 // EXPLANATION_NON_INVENTORY_CONNECTION indicates a direct connection to at least // one non-inventory device (likely discovered via LLDP). Explanation_EXPLANATION_NON_INVENTORY_CONNECTION Explanation = 2 // EXPLANATION_NO_CONNECTION indicates that a location has no direct connection to // any known device. Explanation_EXPLANATION_NO_CONNECTION Explanation = 3 // EXPLANATION_INVENTORY_CONNECTION indicates that all of a location's known connections // are to devices in the inventory. Explanation_EXPLANATION_INVENTORY_CONNECTION Explanation = 4 // EXPLANATION_OWN_PORT_INVENTORY_DEVICE indicates a location on the queried inventory // device itself. Explanation_EXPLANATION_OWN_PORT_INVENTORY_DEVICE Explanation = 5 // EXPLANATION_DIRECT_CONNECTION_INVENTORY_DEVICE indicates a direct connection to the // queried inventory device discovered via LLDP. Explanation_EXPLANATION_DIRECT_CONNECTION_INVENTORY_DEVICE Explanation = 6 // EXPLANATION_NO_CONNECTION_INVENTORY_DEVICE indicates that a location has no direct // connection to any known device (for queried inventory devices). Explanation_EXPLANATION_NO_CONNECTION_INVENTORY_DEVICE Explanation = 7 // EXPLANATION_OTHER_CONNECTION_INVENTORY_DEVICE indicates that a location only has // connections to other devices besides the queried inventory device. Explanation_EXPLANATION_OTHER_CONNECTION_INVENTORY_DEVICE Explanation = 8 // EXPLANATION_VIRTUAL indicates that a location contains a virtual interface. Explanation_EXPLANATION_VIRTUAL Explanation = 9 // EXPLANATION_WIRELESS_CONNECTION indicates a direct connection from a wireless access // point in the device inventory to a wireless client. Explanation_EXPLANATION_WIRELESS_CONNECTION Explanation = 10 // EXPLANATION_ACCESS_PORT indicates that a location is an access port. Explanation_EXPLANATION_ACCESS_PORT Explanation = 11 )
func (Explanation) Descriptor ¶
func (Explanation) Descriptor() protoreflect.EnumDescriptor
func (Explanation) Enum ¶
func (x Explanation) Enum() *Explanation
func (Explanation) EnumDescriptor
deprecated
func (Explanation) EnumDescriptor() ([]byte, []int)
Deprecated: Use Explanation.Descriptor instead.
func (Explanation) Number ¶
func (x Explanation) Number() protoreflect.EnumNumber
func (Explanation) String ¶
func (x Explanation) String() string
func (Explanation) Type ¶
func (Explanation) Type() protoreflect.EnumType
type ExplanationList ¶
type ExplanationList struct { // values is a list of unique Explanation. Currently, this will // always contain one value, but in the future it may contain // more. Values []Explanation `protobuf:"varint,1,rep,packed,name=values,proto3,enum=arista.endpointlocation.v1.Explanation" json:"values,omitempty"` // contains filtered or unexported fields }
ExplanationList is a list of Explanation.
func (*ExplanationList) Descriptor
deprecated
func (*ExplanationList) Descriptor() ([]byte, []int)
Deprecated: Use ExplanationList.ProtoReflect.Descriptor instead.
func (*ExplanationList) GetValues ¶
func (x *ExplanationList) GetValues() []Explanation
func (*ExplanationList) ProtoMessage ¶
func (*ExplanationList) ProtoMessage()
func (*ExplanationList) ProtoReflect ¶
func (x *ExplanationList) ProtoReflect() protoreflect.Message
func (*ExplanationList) Reset ¶
func (x *ExplanationList) Reset()
func (*ExplanationList) String ¶
func (x *ExplanationList) String() string
type Identifier ¶
type Identifier struct { // type is the identifier type corresponding to value. Type IdentifierType `protobuf:"varint,1,opt,name=type,proto3,enum=arista.endpointlocation.v1.IdentifierType" json:"type,omitempty"` // value is the string representation of the identifier. Its interpretation // depends on type. Value *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // source_list is the set of sources where this identifier was discovered. SourceList *IdentifierSourceList `protobuf:"bytes,3,opt,name=source_list,json=sourceList,proto3" json:"source_list,omitempty"` // contains filtered or unexported fields }
Identifier holds device identification information.
func (*Identifier) Descriptor
deprecated
func (*Identifier) Descriptor() ([]byte, []int)
Deprecated: Use Identifier.ProtoReflect.Descriptor instead.
func (*Identifier) GetSourceList ¶
func (x *Identifier) GetSourceList() *IdentifierSourceList
func (*Identifier) GetType ¶
func (x *Identifier) GetType() IdentifierType
func (*Identifier) GetValue ¶
func (x *Identifier) GetValue() *wrapperspb.StringValue
func (*Identifier) ProtoMessage ¶
func (*Identifier) ProtoMessage()
func (*Identifier) ProtoReflect ¶
func (x *Identifier) ProtoReflect() protoreflect.Message
func (*Identifier) Reset ¶
func (x *Identifier) Reset()
func (*Identifier) String ¶
func (x *Identifier) String() string
type IdentifierList ¶
type IdentifierList struct { // values is an unordered list of Identifier where each Identifier has a // unique type and value combination. Values []*Identifier `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
IdentifierList is a list of Identifier.
func (*IdentifierList) Descriptor
deprecated
func (*IdentifierList) Descriptor() ([]byte, []int)
Deprecated: Use IdentifierList.ProtoReflect.Descriptor instead.
func (*IdentifierList) GetValues ¶
func (x *IdentifierList) GetValues() []*Identifier
func (*IdentifierList) ProtoMessage ¶
func (*IdentifierList) ProtoMessage()
func (*IdentifierList) ProtoReflect ¶
func (x *IdentifierList) ProtoReflect() protoreflect.Message
func (*IdentifierList) Reset ¶
func (x *IdentifierList) Reset()
func (*IdentifierList) String ¶
func (x *IdentifierList) String() string
type IdentifierSource ¶
type IdentifierSource int32
IdentifierSource defines the set of network protocols and other information sources where an identifier was found.
const ( // IDENTIFIER_SOURCE_UNSPECIFIED is the default unspecified identifier source. IdentifierSource_IDENTIFIER_SOURCE_UNSPECIFIED IdentifierSource = 0 // IDENTIFIER_SOURCE_FDB indicates a forwarding table. IdentifierSource_IDENTIFIER_SOURCE_FDB IdentifierSource = 1 // IDENTIFIER_SOURCE_ARP indicates ARP (IPv4). IdentifierSource_IDENTIFIER_SOURCE_ARP IdentifierSource = 2 // IDENTIFIER_SOURCE_NEIGHBOR indicates NDP (IPv6). IdentifierSource_IDENTIFIER_SOURCE_NEIGHBOR IdentifierSource = 3 // IDENTIFIER_SOURCE_DEVICE_INVENTORY indicates that an endpoint is in the // CloudVision inventory. IdentifierSource_IDENTIFIER_SOURCE_DEVICE_INVENTORY IdentifierSource = 4 // IDENTIFIER_SOURCE_LLDP indicates LLDP. IdentifierSource_IDENTIFIER_SOURCE_LLDP IdentifierSource = 5 // IDENTIFIER_SOURCE_DHCP indicates DHCP. IdentifierSource_IDENTIFIER_SOURCE_DHCP IdentifierSource = 6 // IDENTIFIER_SOURCE_WIFI indicates a WiFi endpoint that was learned through // a wireless manager. // Deprecated - do not support searches for wifi endpoints anymore // // Deprecated: Marked as deprecated in arista/endpointlocation.v1/endpointlocation.proto. IdentifierSource_IDENTIFIER_SOURCE_WIFI IdentifierSource = 7 )
func (IdentifierSource) Descriptor ¶
func (IdentifierSource) Descriptor() protoreflect.EnumDescriptor
func (IdentifierSource) Enum ¶
func (x IdentifierSource) Enum() *IdentifierSource
func (IdentifierSource) EnumDescriptor
deprecated
func (IdentifierSource) EnumDescriptor() ([]byte, []int)
Deprecated: Use IdentifierSource.Descriptor instead.
func (IdentifierSource) Number ¶
func (x IdentifierSource) Number() protoreflect.EnumNumber
func (IdentifierSource) String ¶
func (x IdentifierSource) String() string
func (IdentifierSource) Type ¶
func (IdentifierSource) Type() protoreflect.EnumType
type IdentifierSourceList ¶
type IdentifierSourceList struct { // values is an unordered list of unique IdentifierSource. Values []IdentifierSource `protobuf:"varint,1,rep,packed,name=values,proto3,enum=arista.endpointlocation.v1.IdentifierSource" json:"values,omitempty"` // contains filtered or unexported fields }
IdentifierSourceList is a list of IdentifierSource.
func (*IdentifierSourceList) Descriptor
deprecated
func (*IdentifierSourceList) Descriptor() ([]byte, []int)
Deprecated: Use IdentifierSourceList.ProtoReflect.Descriptor instead.
func (*IdentifierSourceList) GetValues ¶
func (x *IdentifierSourceList) GetValues() []IdentifierSource
func (*IdentifierSourceList) ProtoMessage ¶
func (*IdentifierSourceList) ProtoMessage()
func (*IdentifierSourceList) ProtoReflect ¶
func (x *IdentifierSourceList) ProtoReflect() protoreflect.Message
func (*IdentifierSourceList) Reset ¶
func (x *IdentifierSourceList) Reset()
func (*IdentifierSourceList) String ¶
func (x *IdentifierSourceList) String() string
type IdentifierType ¶
type IdentifierType int32
IdentifierType defines the set of ways for identifying endpoints.
const ( // IDENTIFIER_TYPE_UNSPECIFIED is the default unspecified identifier. IdentifierType_IDENTIFIER_TYPE_UNSPECIFIED IdentifierType = 0 // IDENTIFIER_TYPE_MAC_ADDR indicates a MAC address identifier. IdentifierType_IDENTIFIER_TYPE_MAC_ADDR IdentifierType = 1 // IDENTIFIER_TYPE_IPV4_ADDR indicates an IPv4 address identifier. IdentifierType_IDENTIFIER_TYPE_IPV4_ADDR IdentifierType = 2 // IDENTIFIER_TYPE_IPV6_ADDR indicates an IPv6 address identifier. IdentifierType_IDENTIFIER_TYPE_IPV6_ADDR IdentifierType = 3 // IDENTIFIER_TYPE_INVENTORY_DEVICE_ID indicates an inventory device identifier. IdentifierType_IDENTIFIER_TYPE_INVENTORY_DEVICE_ID IdentifierType = 4 // IDENTIFIER_TYPE_PRIMARY_MANAGEMENT_IP indicates a primary management IP identifier. IdentifierType_IDENTIFIER_TYPE_PRIMARY_MANAGEMENT_IP IdentifierType = 5 // IDENTIFIER_TYPE_HOSTNAME indicates a hostname identifier. IdentifierType_IDENTIFIER_TYPE_HOSTNAME IdentifierType = 6 // IDENTIFIER_TYPE_USERNAME indicates a username identifier. // Deprecated - do not return usernames of wifi endpoints anymore // // Deprecated: Marked as deprecated in arista/endpointlocation.v1/endpointlocation.proto. IdentifierType_IDENTIFIER_TYPE_USERNAME IdentifierType = 7 // IDENTIFIER_TYPE_OTHER is used for an unknown identifier. IdentifierType_IDENTIFIER_TYPE_OTHER IdentifierType = 99999 )
func (IdentifierType) Descriptor ¶
func (IdentifierType) Descriptor() protoreflect.EnumDescriptor
func (IdentifierType) Enum ¶
func (x IdentifierType) Enum() *IdentifierType
func (IdentifierType) EnumDescriptor
deprecated
func (IdentifierType) EnumDescriptor() ([]byte, []int)
Deprecated: Use IdentifierType.Descriptor instead.
func (IdentifierType) Number ¶
func (x IdentifierType) Number() protoreflect.EnumNumber
func (IdentifierType) String ¶
func (x IdentifierType) String() string
func (IdentifierType) Type ¶
func (IdentifierType) Type() protoreflect.EnumType
type Likelihood ¶
type Likelihood int32
Likelihood indicates a level of confidence.
const ( // LIKELIHOOD_UNSPECIFIED is the default unspecified likelihood. Likelihood_LIKELIHOOD_UNSPECIFIED Likelihood = 0 // LIKELIHOOD_VERY_LIKELY indicates very high confidence. Likelihood_LIKELIHOOD_VERY_LIKELY Likelihood = 1 // LIKELIHOOD_LIKELY indicates high confidence. Likelihood_LIKELIHOOD_LIKELY Likelihood = 2 // LIKELIHOOD_SOMEWHAT_LIKELY indicates medium confidence. Likelihood_LIKELIHOOD_SOMEWHAT_LIKELY Likelihood = 3 // LIKELIHOOD_LESS_LIKELY indicates low confidence. Likelihood_LIKELIHOOD_LESS_LIKELY Likelihood = 4 )
func (Likelihood) Descriptor ¶
func (Likelihood) Descriptor() protoreflect.EnumDescriptor
func (Likelihood) Enum ¶
func (x Likelihood) Enum() *Likelihood
func (Likelihood) EnumDescriptor
deprecated
func (Likelihood) EnumDescriptor() ([]byte, []int)
Deprecated: Use Likelihood.Descriptor instead.
func (Likelihood) Number ¶
func (x Likelihood) Number() protoreflect.EnumNumber
func (Likelihood) String ¶
func (x Likelihood) String() string
func (Likelihood) Type ¶
func (Likelihood) Type() protoreflect.EnumType
type Location ¶
type Location struct { // device_id identifies the device of the port. DeviceId *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // device_status is the status of the device identified by device_id. DeviceStatus DeviceStatus `` /* 143-byte string literal not displayed */ // interface is the interface of the port. Interface *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=interface,proto3" json:"interface,omitempty"` // vlan_id identifies the VLAN of the port. VlanId *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"` // learned_time is when the port learned its identifiers. LearnedTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=learned_time,json=learnedTime,proto3" json:"learned_time,omitempty"` // mac_type is how the port learned its MAC address identifier. MacType MacType `protobuf:"varint,6,opt,name=mac_type,json=macType,proto3,enum=arista.endpointlocation.v1.MacType" json:"mac_type,omitempty"` // likelihood is the probability level that the port is directly connected // to the queried endpoint. Likelihood Likelihood `protobuf:"varint,7,opt,name=likelihood,proto3,enum=arista.endpointlocation.v1.Likelihood" json:"likelihood,omitempty"` // explanation_list holds the reasons that the port was assigned likelihood. ExplanationList *ExplanationList `protobuf:"bytes,8,opt,name=explanation_list,json=explanationList,proto3" json:"explanation_list,omitempty"` // identifier_list holds the discovered identifiers of the port. IdentifierList *IdentifierList `protobuf:"bytes,9,opt,name=identifier_list,json=identifierList,proto3" json:"identifier_list,omitempty"` // contains filtered or unexported fields }
Location is a port (device_id, interface, vlan_id) on which at least one identifier has been discovered.
func (*Location) Descriptor
deprecated
func (*Location) GetDeviceId ¶
func (x *Location) GetDeviceId() *wrapperspb.StringValue
func (*Location) GetDeviceStatus ¶
func (x *Location) GetDeviceStatus() DeviceStatus
func (*Location) GetExplanationList ¶
func (x *Location) GetExplanationList() *ExplanationList
func (*Location) GetIdentifierList ¶
func (x *Location) GetIdentifierList() *IdentifierList
func (*Location) GetInterface ¶
func (x *Location) GetInterface() *wrapperspb.StringValue
func (*Location) GetLearnedTime ¶
func (x *Location) GetLearnedTime() *timestamppb.Timestamp
func (*Location) GetLikelihood ¶
func (x *Location) GetLikelihood() Likelihood
func (*Location) GetMacType ¶
func (*Location) GetVlanId ¶
func (x *Location) GetVlanId() *wrapperspb.UInt32Value
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type LocationList ¶
type LocationList struct { // values is a list of unique Location. Values []*Location `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
LocationList is a list of Location.
func (*LocationList) Descriptor
deprecated
func (*LocationList) Descriptor() ([]byte, []int)
Deprecated: Use LocationList.ProtoReflect.Descriptor instead.
func (*LocationList) GetValues ¶
func (x *LocationList) GetValues() []*Location
func (*LocationList) ProtoMessage ¶
func (*LocationList) ProtoMessage()
func (*LocationList) ProtoReflect ¶
func (x *LocationList) ProtoReflect() protoreflect.Message
func (*LocationList) Reset ¶
func (x *LocationList) Reset()
func (*LocationList) String ¶
func (x *LocationList) String() string
type MacType ¶
type MacType int32
MacType describes how the MAC address was learned on the port location.
const ( // MAC_TYPE_UNSPECIFIED is the default unspecified MAC type. MacType_MAC_TYPE_UNSPECIFIED MacType = 0 // MAC_TYPE_LEARNED_DYNAMIC indicates a MAC that is dynamically learned in hardware. MacType_MAC_TYPE_LEARNED_DYNAMIC MacType = 1 // MAC_TYPE_LEARNED_SECURE indicates a MAC that is learned in hardware on a port-security protect interface. MacType_MAC_TYPE_LEARNED_SECURE MacType = 2 // MAC_TYPE_CONFIGURED_DYNAMIC indicates a configured dynamic MAC. MacType_MAC_TYPE_CONFIGURED_DYNAMIC MacType = 3 // MAC_TYPE_CONFIGURED_SECURE indicates a MAC configured on an interface with Port Security: Protect mode enabled MacType_MAC_TYPE_CONFIGURED_SECURE MacType = 4 // MAC_TYPE_CONFIGURED_STATIC indicates a statically configured MAC. MacType_MAC_TYPE_CONFIGURED_STATIC MacType = 5 // MAC_TYPE_PEER_DYNAMIC indicates a dynamically learned MAC discovered via an MLAG peer. MacType_MAC_TYPE_PEER_DYNAMIC MacType = 6 // MAC_TYPE_PEER_STATIC indicates a statically configured MAC discovered via an MLAG peer. MacType_MAC_TYPE_PEER_STATIC MacType = 7 // MAC_TYPE_PEER_SECURE indicates a secure MAC learned from an MLAG peer. MacType_MAC_TYPE_PEER_SECURE MacType = 8 // MAC_TYPE_LEARNED_REMOTE indicates a MAC learned remotely behind a VxLAN VTEP. MacType_MAC_TYPE_LEARNED_REMOTE MacType = 9 // MAC_TYPE_CONFIGURED_REMOTE indicates a MAC configured behind a VxLAN VTEP. MacType_MAC_TYPE_CONFIGURED_REMOTE MacType = 10 // MAC_TYPE_RECEIVED_REMOTE indicates a MAC received from a VxLAN controller. MacType_MAC_TYPE_RECEIVED_REMOTE MacType = 11 // MAC_TYPE_PEER_LEARNED_REMOTE indicates a remote MAC learned on a peer VTEP. MacType_MAC_TYPE_PEER_LEARNED_REMOTE MacType = 12 // MAC_TYPE_PEER_CONFIGURED_REMOTE indicates an MLAG peer configured remote MAC. MacType_MAC_TYPE_PEER_CONFIGURED_REMOTE MacType = 13 // MAC_TYPE_PEER_RECEIVED_REMOTE indicates a remote MAC received from a VxLAN controller by the MLAG peer. MacType_MAC_TYPE_PEER_RECEIVED_REMOTE MacType = 14 // MAC_TYPE_EVPN_DYNAMIC_REMOTE indicates an EVPN dynamic remote MAC. MacType_MAC_TYPE_EVPN_DYNAMIC_REMOTE MacType = 15 // MAC_TYPE_EVPN_CONFIGURED_REMOTE indicates an EVPN configured remote MAC. MacType_MAC_TYPE_EVPN_CONFIGURED_REMOTE MacType = 16 // MAC_TYPE_PEER_EVPN_REMOTE indicates an MLAG peer EVPN remote MAC. MacType_MAC_TYPE_PEER_EVPN_REMOTE MacType = 17 // MAC_TYPE_CONFIGURED_ROUTER indicates a configured MAC used in routing. MacType_MAC_TYPE_CONFIGURED_ROUTER MacType = 18 // MAC_TYPE_PEER_ROUTER indicates an MLAG peer specific router MAC. MacType_MAC_TYPE_PEER_ROUTER MacType = 19 // MAC_TYPE_EVPN_INTF_DYNAMIC indicates a MAC advertised by EVPN when a dynamic MAC is learned on ESI (Ethernet Segment Identifier). MacType_MAC_TYPE_EVPN_INTF_DYNAMIC MacType = 20 // MAC_TYPE_EVPN_INTF_STATIC indicates a MAC configured on EVPN ESI. MacType_MAC_TYPE_EVPN_INTF_STATIC MacType = 21 // MAC_TYPE_AUTHENTICATED indicates a MAC authenticated via 802.1X. MacType_MAC_TYPE_AUTHENTICATED MacType = 22 // MAC_TYPE_PEER_AUTHENTICATED indicates a MAC authenticated by 802.1X and learned on an MLAG peer. MacType_MAC_TYPE_PEER_AUTHENTICATED MacType = 23 // MAC_TYPE_PENDING_SECURE indicates a secure MAC in a pending state. MacType_MAC_TYPE_PENDING_SECURE MacType = 24 // MAC_TYPE_SOFTWARE_LEARNED_DYNAMIC indicates a MAC learned behind VTEP in software in the case of a VxLAN remote MAC. MacType_MAC_TYPE_SOFTWARE_LEARNED_DYNAMIC MacType = 25 // MAC_TYPE_OTHER is used for capturing future MAC types. MacType_MAC_TYPE_OTHER MacType = 99999 )
func (MacType) Descriptor ¶
func (MacType) Descriptor() protoreflect.EnumDescriptor
func (MacType) EnumDescriptor
deprecated
func (MacType) Number ¶
func (x MacType) Number() protoreflect.EnumNumber
func (MacType) Type ¶
func (MacType) Type() protoreflect.EnumType
type MetaResponse ¶
type MetaResponse struct { // Time holds the timestamp of the last item included in the metadata calculation. Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` // Operation indicates how the value in this response should be considered. // Under non-subscribe requests, this value should always be INITIAL. In a subscription, // once all initial data is streamed and the client begins to receive modification updates, // you should not see INITIAL again. Type subscriptions.Operation `protobuf:"varint,2,opt,name=type,proto3,enum=arista.subscriptions.Operation" json:"type,omitempty"` // Count is the number of items present under the conditions of the request. Count *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*MetaResponse) Descriptor
deprecated
func (*MetaResponse) Descriptor() ([]byte, []int)
Deprecated: Use MetaResponse.ProtoReflect.Descriptor instead.
func (*MetaResponse) GetCount ¶
func (x *MetaResponse) GetCount() *wrapperspb.UInt32Value
func (*MetaResponse) GetTime ¶
func (x *MetaResponse) GetTime() *timestamppb.Timestamp
func (*MetaResponse) GetType ¶
func (x *MetaResponse) GetType() subscriptions.Operation
func (*MetaResponse) ProtoMessage ¶
func (*MetaResponse) ProtoMessage()
func (*MetaResponse) ProtoReflect ¶
func (x *MetaResponse) ProtoReflect() protoreflect.Message
func (*MetaResponse) Reset ¶
func (x *MetaResponse) Reset()
func (*MetaResponse) String ¶
func (x *MetaResponse) String() string
type UnimplementedEndpointLocationServiceServer ¶
type UnimplementedEndpointLocationServiceServer struct { }
UnimplementedEndpointLocationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedEndpointLocationServiceServer) GetAllBatched ¶
func (UnimplementedEndpointLocationServiceServer) GetMeta ¶
func (UnimplementedEndpointLocationServiceServer) GetMeta(context.Context, *EndpointLocationStreamRequest) (*MetaResponse, error)
func (UnimplementedEndpointLocationServiceServer) SubscribeBatched ¶
func (UnimplementedEndpointLocationServiceServer) SubscribeMeta ¶
type UnsafeEndpointLocationServiceServer ¶
type UnsafeEndpointLocationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEndpointLocationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EndpointLocationServiceServer will result in compilation errors.