stream

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RemoteTopology_Push_FullMethodName         = "/stream.topology.RemoteTopology/Push"
	RemoteTopology_SyncTopology_FullMethodName = "/stream.topology.RemoteTopology/SyncTopology"
)

Variables

View Source
var (
	GraphRepr_name = map[int32]string{
		0: "None",
		1: "KubectlGraph",
	}
	GraphRepr_value = map[string]int32{
		"None":         0,
		"KubectlGraph": 1,
	}
)

Enum value maps for GraphRepr.

View Source
var File_github_com_rancher_opni_plugins_topology_apis_stream_stream_proto protoreflect.FileDescriptor
View Source
var RemoteTopology_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "stream.topology.RemoteTopology",
	HandlerType: (*RemoteTopologyServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Push",
			Handler:    _RemoteTopology_Push_Handler,
		},
		{
			MethodName: "SyncTopology",
			Handler:    _RemoteTopology_SyncTopology_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/rancher/opni/plugins/topology/apis/stream/stream.proto",
}

RemoteTopology_ServiceDesc is the grpc.ServiceDesc for RemoteTopology service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterRemoteTopologyServer

func RegisterRemoteTopologyServer(s grpc.ServiceRegistrar, srv RemoteTopologyServer)

Types

type GraphRepr

type GraphRepr int32
const (
	GraphRepr_None         GraphRepr = 0
	GraphRepr_KubectlGraph GraphRepr = 1
)

func (GraphRepr) Descriptor

func (GraphRepr) Descriptor() protoreflect.EnumDescriptor

func (GraphRepr) Enum

func (x GraphRepr) Enum() *GraphRepr

func (GraphRepr) EnumDescriptor deprecated

func (GraphRepr) EnumDescriptor() ([]byte, []int)

Deprecated: Use GraphRepr.Descriptor instead.

func (GraphRepr) Number

func (x GraphRepr) Number() protoreflect.EnumNumber

func (GraphRepr) String

func (x GraphRepr) String() string

func (GraphRepr) Type

type Payload

type Payload struct {
	Graph *TopologyGraph `protobuf:"bytes,1,opt,name=graph,proto3" json:"graph,omitempty"`
	// contains filtered or unexported fields
}

func (*Payload) Descriptor deprecated

func (*Payload) Descriptor() ([]byte, []int)

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetGraph

func (x *Payload) GetGraph() *TopologyGraph

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) ProtoReflect

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

func (*Payload) Reset

func (x *Payload) Reset()

func (*Payload) String

func (x *Payload) String() string

type RemoteTopologyClient

type RemoteTopologyClient interface {
	Push(ctx context.Context, in *Payload, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SyncTopology(ctx context.Context, in *Payload, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

RemoteTopologyClient is the client API for RemoteTopology 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 RemoteTopologyServer

type RemoteTopologyServer interface {
	Push(context.Context, *Payload) (*emptypb.Empty, error)
	SyncTopology(context.Context, *Payload) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

RemoteTopologyServer is the server API for RemoteTopology service. All implementations must embed UnimplementedRemoteTopologyServer for forward compatibility

type TopologyGraph

type TopologyGraph struct {
	ClusterId *v1.Reference `protobuf:"bytes,1,opt,name=clusterId,proto3" json:"clusterId,omitempty"`
	Data      []byte        `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Repr      GraphRepr     `protobuf:"varint,3,opt,name=repr,proto3,enum=stream.topology.GraphRepr" json:"repr,omitempty"`
	// contains filtered or unexported fields
}

FIXME: copied from orchestrator.proto due to duplicate symbol bug

func (*TopologyGraph) Descriptor deprecated

func (*TopologyGraph) Descriptor() ([]byte, []int)

Deprecated: Use TopologyGraph.ProtoReflect.Descriptor instead.

func (*TopologyGraph) GetClusterId

func (x *TopologyGraph) GetClusterId() *v1.Reference

func (*TopologyGraph) GetData

func (x *TopologyGraph) GetData() []byte

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 UnimplementedRemoteTopologyServer

type UnimplementedRemoteTopologyServer struct {
}

UnimplementedRemoteTopologyServer must be embedded to have forward compatible implementations.

func (UnimplementedRemoteTopologyServer) Push

func (UnimplementedRemoteTopologyServer) SyncTopology

type UnsafeRemoteTopologyServer

type UnsafeRemoteTopologyServer interface {
	// contains filtered or unexported methods
}

UnsafeRemoteTopologyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RemoteTopologyServer will result in compilation errors.

Jump to

Keyboard shortcuts

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