Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTopologyServiceServer(s grpc.ServiceRegistrar, srv TopologyServiceServer)
- type Instance
- func (*Instance) Descriptor() ([]byte, []int)deprecated
- func (x *Instance) GetDataCenter() string
- func (x *Instance) GetId() string
- func (x *Instance) GetInstanceType() string
- func (x *Instance) GetNetworkLayers() []string
- func (x *Instance) GetNvlinkDomain() string
- func (x *Instance) GetProvider() string
- func (x *Instance) GetRegion() string
- func (*Instance) ProtoMessage()
- func (x *Instance) ProtoReflect() protoreflect.Message
- func (x *Instance) Reset()
- func (x *Instance) String() string
- type TopologyRequest
- func (*TopologyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TopologyRequest) GetInstanceIds() []string
- func (x *TopologyRequest) GetProvider() string
- func (x *TopologyRequest) GetRegion() string
- func (*TopologyRequest) ProtoMessage()
- func (x *TopologyRequest) ProtoReflect() protoreflect.Message
- func (x *TopologyRequest) Reset()
- func (x *TopologyRequest) String() string
- type TopologyResponse
- type TopologyServiceClient
- type TopologyServiceServer
- type UnimplementedTopologyServiceServer
- type UnsafeTopologyServiceServer
Constants ¶
const (
TopologyService_DescribeTopology_FullMethodName = "/topology.TopologyService/DescribeTopology"
)
Variables ¶
var File_topology_proto protoreflect.FileDescriptor
var TopologyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "topology.TopologyService", HandlerType: (*TopologyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DescribeTopology", Handler: _TopologyService_DescribeTopology_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "topology.proto", }
TopologyService_ServiceDesc is the grpc.ServiceDesc for TopologyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTopologyServiceServer ¶
func RegisterTopologyServiceServer(s grpc.ServiceRegistrar, srv TopologyServiceServer)
Types ¶
type Instance ¶
type Instance struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` InstanceType string `protobuf:"bytes,2,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` DataCenter string `protobuf:"bytes,5,opt,name=data_center,json=dataCenter,proto3" json:"data_center,omitempty"` NetworkLayers []string `protobuf:"bytes,6,rep,name=network_layers,json=networkLayers,proto3" json:"network_layers,omitempty"` NvlinkDomain string `protobuf:"bytes,7,opt,name=nvlink_domain,json=nvlinkDomain,proto3" json:"nvlink_domain,omitempty"` // contains filtered or unexported fields }
func (*Instance) Descriptor
deprecated
func (*Instance) GetDataCenter ¶
func (*Instance) GetInstanceType ¶
func (*Instance) GetNetworkLayers ¶
func (*Instance) GetNvlinkDomain ¶
func (*Instance) GetProvider ¶
func (*Instance) ProtoMessage ¶
func (*Instance) ProtoMessage()
func (*Instance) ProtoReflect ¶
func (x *Instance) ProtoReflect() protoreflect.Message
type TopologyRequest ¶
type TopologyRequest struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` InstanceIds []string `protobuf:"bytes,3,rep,name=instance_ids,json=instanceIds,proto3" json:"instance_ids,omitempty"` // contains filtered or unexported fields }
func (*TopologyRequest) Descriptor
deprecated
func (*TopologyRequest) Descriptor() ([]byte, []int)
Deprecated: Use TopologyRequest.ProtoReflect.Descriptor instead.
func (*TopologyRequest) GetInstanceIds ¶
func (x *TopologyRequest) GetInstanceIds() []string
func (*TopologyRequest) GetProvider ¶
func (x *TopologyRequest) GetProvider() string
func (*TopologyRequest) GetRegion ¶
func (x *TopologyRequest) GetRegion() string
func (*TopologyRequest) ProtoMessage ¶
func (*TopologyRequest) ProtoMessage()
func (*TopologyRequest) ProtoReflect ¶
func (x *TopologyRequest) ProtoReflect() protoreflect.Message
func (*TopologyRequest) Reset ¶
func (x *TopologyRequest) Reset()
func (*TopologyRequest) String ¶
func (x *TopologyRequest) String() string
type TopologyResponse ¶
type TopologyResponse struct { Instances []*Instance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"` // contains filtered or unexported fields }
func (*TopologyResponse) Descriptor
deprecated
func (*TopologyResponse) Descriptor() ([]byte, []int)
Deprecated: Use TopologyResponse.ProtoReflect.Descriptor instead.
func (*TopologyResponse) GetInstances ¶
func (x *TopologyResponse) GetInstances() []*Instance
func (*TopologyResponse) ProtoMessage ¶
func (*TopologyResponse) ProtoMessage()
func (*TopologyResponse) ProtoReflect ¶
func (x *TopologyResponse) ProtoReflect() protoreflect.Message
func (*TopologyResponse) Reset ¶
func (x *TopologyResponse) Reset()
func (*TopologyResponse) String ¶
func (x *TopologyResponse) String() string
type TopologyServiceClient ¶
type TopologyServiceClient interface {
DescribeTopology(ctx context.Context, in *TopologyRequest, opts ...grpc.CallOption) (*TopologyResponse, error)
}
TopologyServiceClient is the client API for TopologyService 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 NewTopologyServiceClient ¶
func NewTopologyServiceClient(cc grpc.ClientConnInterface) TopologyServiceClient
type TopologyServiceServer ¶
type TopologyServiceServer interface { DescribeTopology(context.Context, *TopologyRequest) (*TopologyResponse, error) // contains filtered or unexported methods }
TopologyServiceServer is the server API for TopologyService service. All implementations must embed UnimplementedTopologyServiceServer for forward compatibility.
type UnimplementedTopologyServiceServer ¶
type UnimplementedTopologyServiceServer struct{}
UnimplementedTopologyServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTopologyServiceServer) DescribeTopology ¶
func (UnimplementedTopologyServiceServer) DescribeTopology(context.Context, *TopologyRequest) (*TopologyResponse, error)
type UnsafeTopologyServiceServer ¶
type UnsafeTopologyServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTopologyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TopologyServiceServer will result in compilation errors.