protos

package
v1.16.15 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DatapathPodMetadata_APIVersion_name = map[int32]string{
		0: "V1",
	}
	DatapathPodMetadata_APIVersion_value = map[string]int32{
		"V1": 0,
	}
)

Enum value maps for DatapathPodMetadata_APIVersion.

View Source
var (
	Events_EventType_name = map[int32]string{
		0: "GoalState",
		1: "Hydration",
	}
	Events_EventType_value = map[string]int32{
		"GoalState": 0,
		"Hydration": 1,
	}
)

Enum value maps for Events_EventType.

View Source
var DataplaneEvents_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protos.DataplaneEvents",
	HandlerType: (*DataplaneEventsServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Connect",
			Handler:       _DataplaneEvents_Connect_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "transport.proto",
}

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

View Source
var File_transport_proto protoreflect.FileDescriptor

Functions

func RegisterDataplaneEventsServer

func RegisterDataplaneEventsServer(s grpc.ServiceRegistrar, srv DataplaneEventsServer)

Types

type DatapathPodMetadata

type DatapathPodMetadata struct {
	PodName    string                         `protobuf:"bytes,1,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`                                    // Daemonset Pod ID
	NodeName   string                         `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`                                 // Node name
	ApiVersion DatapathPodMetadata_APIVersion `protobuf:"varint,3,opt,name=apiVersion,proto3,enum=protos.DatapathPodMetadata_APIVersion" json:"apiVersion,omitempty"` // Controlplane API version to support backwards compatibility
	// contains filtered or unexported fields
}

DatapathPodMetadata is the metadata for a datapath pod

func (*DatapathPodMetadata) Descriptor deprecated

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

Deprecated: Use DatapathPodMetadata.ProtoReflect.Descriptor instead.

func (*DatapathPodMetadata) GetApiVersion

func (*DatapathPodMetadata) GetNodeName

func (x *DatapathPodMetadata) GetNodeName() string

func (*DatapathPodMetadata) GetPodName

func (x *DatapathPodMetadata) GetPodName() string

func (*DatapathPodMetadata) ProtoMessage

func (*DatapathPodMetadata) ProtoMessage()

func (*DatapathPodMetadata) ProtoReflect

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

func (*DatapathPodMetadata) Reset

func (x *DatapathPodMetadata) Reset()

func (*DatapathPodMetadata) String

func (x *DatapathPodMetadata) String() string

type DatapathPodMetadata_APIVersion

type DatapathPodMetadata_APIVersion int32
const (
	DatapathPodMetadata_V1 DatapathPodMetadata_APIVersion = 0
)

func (DatapathPodMetadata_APIVersion) Descriptor

func (DatapathPodMetadata_APIVersion) Enum

func (DatapathPodMetadata_APIVersion) EnumDescriptor deprecated

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

Deprecated: Use DatapathPodMetadata_APIVersion.Descriptor instead.

func (DatapathPodMetadata_APIVersion) Number

func (DatapathPodMetadata_APIVersion) String

func (DatapathPodMetadata_APIVersion) Type

type DataplaneEventsClient

type DataplaneEventsClient interface {
	Connect(ctx context.Context, in *DatapathPodMetadata, opts ...grpc.CallOption) (DataplaneEvents_ConnectClient, error)
}

DataplaneEventsClient is the client API for DataplaneEvents 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 DataplaneEventsServer

type DataplaneEventsServer interface {
	Connect(*DatapathPodMetadata, DataplaneEvents_ConnectServer) error
	// contains filtered or unexported methods
}

DataplaneEventsServer is the server API for DataplaneEvents service. All implementations must embed UnimplementedDataplaneEventsServer for forward compatibility

type DataplaneEvents_ConnectClient

type DataplaneEvents_ConnectClient interface {
	Recv() (*Events, error)
	grpc.ClientStream
}

type DataplaneEvents_ConnectServer

type DataplaneEvents_ConnectServer interface {
	Send(*Events) error
	grpc.ServerStream
}

type Events

type Events struct {
	EventType Events_EventType `protobuf:"varint,1,opt,name=eventType,proto3,enum=protos.Events_EventType" json:"eventType,omitempty"`
	// Payload can contain one or more Event objects.
	Payload map[string]*GoalState `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

Events defines the operation (event type) and object type being streamed to the datapath client. A events message may carry one or more Event objects.

func (*Events) Descriptor deprecated

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

Deprecated: Use Events.ProtoReflect.Descriptor instead.

func (*Events) GetEventType

func (x *Events) GetEventType() Events_EventType

func (*Events) GetPayload

func (x *Events) GetPayload() map[string]*GoalState

func (*Events) ProtoMessage

func (*Events) ProtoMessage()

func (*Events) ProtoReflect

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

func (*Events) Reset

func (x *Events) Reset()

func (*Events) String

func (x *Events) String() string

type Events_EventType

type Events_EventType int32
const (
	Events_GoalState Events_EventType = 0
	Events_Hydration Events_EventType = 1
)

func (Events_EventType) Descriptor

func (Events_EventType) Enum

func (Events_EventType) EnumDescriptor deprecated

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

Deprecated: Use Events_EventType.Descriptor instead.

func (Events_EventType) Number

func (Events_EventType) String

func (x Events_EventType) String() string

func (Events_EventType) Type

type GoalState

type GoalState struct {

	// Data can contain one or more instances of IPSet or NetworkPolicy
	// objects.
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Event is a generic object that can be Created, Updated, Deleted by the controlplane.

func (*GoalState) Descriptor deprecated

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

Deprecated: Use GoalState.ProtoReflect.Descriptor instead.

func (*GoalState) GetData

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

func (*GoalState) ProtoMessage

func (*GoalState) ProtoMessage()

func (*GoalState) ProtoReflect

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

func (*GoalState) Reset

func (x *GoalState) Reset()

func (*GoalState) String

func (x *GoalState) String() string

type UnimplementedDataplaneEventsServer

type UnimplementedDataplaneEventsServer struct {
}

UnimplementedDataplaneEventsServer must be embedded to have forward compatible implementations.

func (UnimplementedDataplaneEventsServer) Connect

type UnsafeDataplaneEventsServer

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

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

Jump to

Keyboard shortcuts

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