protos

package
v0.0.0-...-10ac0cf Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopologyService_DescribeTopology_FullMethodName = "/topology.TopologyService/DescribeTopology"
)

Variables

View Source
var File_topology_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Instance.ProtoReflect.Descriptor instead.

func (*Instance) GetDataCenter

func (x *Instance) GetDataCenter() string

func (*Instance) GetId

func (x *Instance) GetId() string

func (*Instance) GetInstanceType

func (x *Instance) GetInstanceType() string

func (*Instance) GetNetworkLayers

func (x *Instance) GetNetworkLayers() []string

func (*Instance) GetNvlinkDomain

func (x *Instance) GetNvlinkDomain() string

func (*Instance) GetProvider

func (x *Instance) GetProvider() string

func (*Instance) GetRegion

func (x *Instance) GetRegion() string

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) ProtoReflect

func (x *Instance) ProtoReflect() protoreflect.Message

func (*Instance) Reset

func (x *Instance) Reset()

func (*Instance) String

func (x *Instance) String() string

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.

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

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.

Jump to

Keyboard shortcuts

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