Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTopologyRepresentationServer(s grpc.ServiceRegistrar, srv TopologyRepresentationServer)
- type DOTRepresentation
- func (*DOTRepresentation) Descriptor() ([]byte, []int)deprecated
- func (x *DOTRepresentation) GetRawDotFormat() string
- func (*DOTRepresentation) ProtoMessage()
- func (x *DOTRepresentation) ProtoReflect() protoreflect.Message
- func (x *DOTRepresentation) Reset()
- func (x *DOTRepresentation) String() string
- type GraphRepr
- type TopologyGraph
- func (*TopologyGraph) Descriptor() ([]byte, []int)deprecated
- func (x *TopologyGraph) GetData() []byte
- func (x *TopologyGraph) GetId() *v1.Reference
- func (x *TopologyGraph) GetRepr() GraphRepr
- func (*TopologyGraph) ProtoMessage()
- func (x *TopologyGraph) ProtoReflect() protoreflect.Message
- func (x *TopologyGraph) Reset()
- func (x *TopologyGraph) String() string
- type TopologyRepresentationClient
- type TopologyRepresentationServer
- type UnimplementedTopologyRepresentationServer
- type UnsafeTopologyRepresentationServer
Constants ¶
const ( TopologyRepresentation_GetGraph_FullMethodName = "/representation.TopologyRepresentation/GetGraph" TopologyRepresentation_RenderGraph_FullMethodName = "/representation.TopologyRepresentation/RenderGraph" )
Variables ¶
var ( GraphRepr_name = map[int32]string{ 0: "None", 1: "KubectlGraph", } GraphRepr_value = map[string]int32{ "None": 0, "KubectlGraph": 1, } )
Enum value maps for GraphRepr.
var File_github_com_rancher_opni_plugins_topology_apis_representation_representation_proto protoreflect.FileDescriptor
var TopologyRepresentation_ServiceDesc = grpc.ServiceDesc{ ServiceName: "representation.TopologyRepresentation", HandlerType: (*TopologyRepresentationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetGraph", Handler: _TopologyRepresentation_GetGraph_Handler, }, { MethodName: "RenderGraph", Handler: _TopologyRepresentation_RenderGraph_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/rancher/opni/plugins/topology/apis/representation/representation.proto", }
TopologyRepresentation_ServiceDesc is the grpc.ServiceDesc for TopologyRepresentation service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTopologyRepresentationServer ¶
func RegisterTopologyRepresentationServer(s grpc.ServiceRegistrar, srv TopologyRepresentationServer)
Types ¶
type DOTRepresentation ¶
type DOTRepresentation struct { RawDotFormat string `protobuf:"bytes,1,opt,name=rawDotFormat,proto3" json:"rawDotFormat,omitempty"` // contains filtered or unexported fields }
func (*DOTRepresentation) Descriptor
deprecated
func (*DOTRepresentation) Descriptor() ([]byte, []int)
Deprecated: Use DOTRepresentation.ProtoReflect.Descriptor instead.
func (*DOTRepresentation) GetRawDotFormat ¶
func (x *DOTRepresentation) GetRawDotFormat() string
func (*DOTRepresentation) ProtoMessage ¶
func (*DOTRepresentation) ProtoMessage()
func (*DOTRepresentation) ProtoReflect ¶
func (x *DOTRepresentation) ProtoReflect() protoreflect.Message
func (*DOTRepresentation) Reset ¶
func (x *DOTRepresentation) Reset()
func (*DOTRepresentation) String ¶
func (x *DOTRepresentation) String() string
type GraphRepr ¶
type GraphRepr int32
func (GraphRepr) Descriptor ¶
func (GraphRepr) Descriptor() protoreflect.EnumDescriptor
func (GraphRepr) EnumDescriptor
deprecated
func (GraphRepr) Number ¶
func (x GraphRepr) Number() protoreflect.EnumNumber
func (GraphRepr) Type ¶
func (GraphRepr) Type() protoreflect.EnumType
type TopologyGraph ¶
type TopologyGraph struct { Id *v1.Reference `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Repr GraphRepr `protobuf:"varint,3,opt,name=repr,proto3,enum=representation.GraphRepr" json:"repr,omitempty"` // contains filtered or unexported fields }
func (*TopologyGraph) Descriptor
deprecated
func (*TopologyGraph) Descriptor() ([]byte, []int)
Deprecated: Use TopologyGraph.ProtoReflect.Descriptor instead.
func (*TopologyGraph) GetData ¶
func (x *TopologyGraph) GetData() []byte
func (*TopologyGraph) GetId ¶
func (x *TopologyGraph) GetId() *v1.Reference
func (*TopologyGraph) GetRepr ¶
func (x *TopologyGraph) GetRepr() GraphRepr
func (*TopologyGraph) ProtoMessage ¶
func (*TopologyGraph) ProtoMessage()
func (*TopologyGraph) ProtoReflect ¶
func (x *TopologyGraph) ProtoReflect() protoreflect.Message
func (*TopologyGraph) Reset ¶
func (x *TopologyGraph) Reset()
func (*TopologyGraph) String ¶
func (x *TopologyGraph) String() string
type TopologyRepresentationClient ¶
type TopologyRepresentationClient interface { // opni internal use GetGraph(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*TopologyGraph, error) // cluster id --> kubernetes graph SVG RenderGraph(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*DOTRepresentation, error) }
TopologyRepresentationClient is the client API for TopologyRepresentation 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 NewTopologyRepresentationClient ¶
func NewTopologyRepresentationClient(cc grpc.ClientConnInterface) TopologyRepresentationClient
type TopologyRepresentationServer ¶
type TopologyRepresentationServer interface { // opni internal use GetGraph(context.Context, *v1.Reference) (*TopologyGraph, error) // cluster id --> kubernetes graph SVG RenderGraph(context.Context, *v1.Reference) (*DOTRepresentation, error) // contains filtered or unexported methods }
TopologyRepresentationServer is the server API for TopologyRepresentation service. All implementations must embed UnimplementedTopologyRepresentationServer for forward compatibility
type UnimplementedTopologyRepresentationServer ¶
type UnimplementedTopologyRepresentationServer struct { }
UnimplementedTopologyRepresentationServer must be embedded to have forward compatible implementations.
func (UnimplementedTopologyRepresentationServer) GetGraph ¶
func (UnimplementedTopologyRepresentationServer) GetGraph(context.Context, *v1.Reference) (*TopologyGraph, error)
func (UnimplementedTopologyRepresentationServer) RenderGraph ¶
func (UnimplementedTopologyRepresentationServer) RenderGraph(context.Context, *v1.Reference) (*DOTRepresentation, error)
type UnsafeTopologyRepresentationServer ¶
type UnsafeTopologyRepresentationServer interface {
// contains filtered or unexported methods
}
UnsafeTopologyRepresentationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TopologyRepresentationServer will result in compilation errors.