plugin

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional grpc.federation.PluginRule plugin = 1187;
	E_Plugin = &file_grpc_federation_plugin_proto_extTypes[0]
)

Extension fields to descriptorpb.FileOptions.

View Source
var File_grpc_federation_plugin_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CELFunction

type CELFunction struct {

	// name is the function name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// desc is the description of function.
	// This description is used as documentation at code generation.
	Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	// args describe the definition of the function argument.
	Args []*CELFunctionArgument `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
	// return describe the definition of return type of function.
	Return *CELType `protobuf:"bytes,4,opt,name=return,proto3" json:"return,omitempty"`
	// contains filtered or unexported fields
}

CELFunction represents the CEL function definition.

func (*CELFunction) Descriptor deprecated

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

Deprecated: Use CELFunction.ProtoReflect.Descriptor instead.

func (*CELFunction) GetArgs

func (x *CELFunction) GetArgs() []*CELFunctionArgument

func (*CELFunction) GetDesc

func (x *CELFunction) GetDesc() string

func (*CELFunction) GetName

func (x *CELFunction) GetName() string

func (*CELFunction) GetReturn

func (x *CELFunction) GetReturn() *CELType

func (*CELFunction) ProtoMessage

func (*CELFunction) ProtoMessage()

func (*CELFunction) ProtoReflect

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

func (*CELFunction) Reset

func (x *CELFunction) Reset()

func (*CELFunction) String

func (x *CELFunction) String() string

type CELFunctionArgument

type CELFunctionArgument struct {

	// name is the argument value name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// desc is the description of plugin.
	// This description is used as documentation at code generation.
	Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	// type is the argument type.
	// The value must be one that can be referenced on the Protocol Buffers.
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// repeated is whether repeated type or not.
	Repeated bool `protobuf:"varint,4,opt,name=repeated,proto3" json:"repeated,omitempty"`
	// contains filtered or unexported fields
}

CELFunctionArgument represents the function argument.

func (*CELFunctionArgument) Descriptor deprecated

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

Deprecated: Use CELFunctionArgument.ProtoReflect.Descriptor instead.

func (*CELFunctionArgument) GetDesc

func (x *CELFunctionArgument) GetDesc() string

func (*CELFunctionArgument) GetName

func (x *CELFunctionArgument) GetName() string

func (*CELFunctionArgument) GetRepeated

func (x *CELFunctionArgument) GetRepeated() bool

func (*CELFunctionArgument) GetType

func (x *CELFunctionArgument) GetType() string

func (*CELFunctionArgument) ProtoMessage

func (*CELFunctionArgument) ProtoMessage()

func (*CELFunctionArgument) ProtoReflect

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

func (*CELFunctionArgument) Reset

func (x *CELFunctionArgument) Reset()

func (*CELFunctionArgument) String

func (x *CELFunctionArgument) String() string

type CELPluginGRPCMetadata

type CELPluginGRPCMetadata struct {
	Key    string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*CELPluginGRPCMetadata) Descriptor deprecated

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

Deprecated: Use CELPluginGRPCMetadata.ProtoReflect.Descriptor instead.

func (*CELPluginGRPCMetadata) GetKey

func (x *CELPluginGRPCMetadata) GetKey() string

func (*CELPluginGRPCMetadata) GetValues

func (x *CELPluginGRPCMetadata) GetValues() []string

func (*CELPluginGRPCMetadata) ProtoMessage

func (*CELPluginGRPCMetadata) ProtoMessage()

func (*CELPluginGRPCMetadata) ProtoReflect

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

func (*CELPluginGRPCMetadata) Reset

func (x *CELPluginGRPCMetadata) Reset()

func (*CELPluginGRPCMetadata) String

func (x *CELPluginGRPCMetadata) String() string

type CELPluginRequest

type CELPluginRequest struct {
	Method   string                   `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Metadata []*CELPluginGRPCMetadata `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty"`
	Args     []*CELPluginValue        `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*CELPluginRequest) Descriptor deprecated

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

Deprecated: Use CELPluginRequest.ProtoReflect.Descriptor instead.

func (*CELPluginRequest) GetArgs

func (x *CELPluginRequest) GetArgs() []*CELPluginValue

func (*CELPluginRequest) GetMetadata

func (x *CELPluginRequest) GetMetadata() []*CELPluginGRPCMetadata

func (*CELPluginRequest) GetMethod

func (x *CELPluginRequest) GetMethod() string

func (*CELPluginRequest) ProtoMessage

func (*CELPluginRequest) ProtoMessage()

func (*CELPluginRequest) ProtoReflect

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

func (*CELPluginRequest) Reset

func (x *CELPluginRequest) Reset()

func (*CELPluginRequest) String

func (x *CELPluginRequest) String() string

type CELPluginResponse

type CELPluginResponse struct {
	Value *CELPluginValue `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Error string          `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*CELPluginResponse) Descriptor deprecated

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

Deprecated: Use CELPluginResponse.ProtoReflect.Descriptor instead.

func (*CELPluginResponse) GetError

func (x *CELPluginResponse) GetError() string

func (*CELPluginResponse) GetValue

func (x *CELPluginResponse) GetValue() *CELPluginValue

func (*CELPluginResponse) ProtoMessage

func (*CELPluginResponse) ProtoMessage()

func (*CELPluginResponse) ProtoReflect

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

func (*CELPluginResponse) Reset

func (x *CELPluginResponse) Reset()

func (*CELPluginResponse) String

func (x *CELPluginResponse) String() string

type CELPluginValue

type CELPluginValue struct {

	// Types that are assignable to Value:
	//
	//	*CELPluginValue_Int64
	//	*CELPluginValue_Uint64
	//	*CELPluginValue_Double
	//	*CELPluginValue_String_
	//	*CELPluginValue_Bytes
	//	*CELPluginValue_Bool
	//	*CELPluginValue_Ptr
	//	*CELPluginValue_Message
	Value isCELPluginValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*CELPluginValue) Descriptor deprecated

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

Deprecated: Use CELPluginValue.ProtoReflect.Descriptor instead.

func (*CELPluginValue) GetBool

func (x *CELPluginValue) GetBool() bool

func (*CELPluginValue) GetBytes

func (x *CELPluginValue) GetBytes() []byte

func (*CELPluginValue) GetDouble

func (x *CELPluginValue) GetDouble() float64

func (*CELPluginValue) GetInt64

func (x *CELPluginValue) GetInt64() int64

func (*CELPluginValue) GetMessage

func (x *CELPluginValue) GetMessage() *anypb.Any

func (*CELPluginValue) GetPtr

func (x *CELPluginValue) GetPtr() uint64

func (*CELPluginValue) GetString_

func (x *CELPluginValue) GetString_() string

func (*CELPluginValue) GetUint64

func (x *CELPluginValue) GetUint64() uint64

func (*CELPluginValue) GetValue

func (m *CELPluginValue) GetValue() isCELPluginValue_Value

func (*CELPluginValue) ProtoMessage

func (*CELPluginValue) ProtoMessage()

func (*CELPluginValue) ProtoReflect

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

func (*CELPluginValue) Reset

func (x *CELPluginValue) Reset()

func (*CELPluginValue) String

func (x *CELPluginValue) String() string

type CELPluginValue_Bool

type CELPluginValue_Bool struct {
	Bool bool `protobuf:"varint,6,opt,name=bool,proto3,oneof"`
}

type CELPluginValue_Bytes

type CELPluginValue_Bytes struct {
	Bytes []byte `protobuf:"bytes,5,opt,name=bytes,proto3,oneof"`
}

type CELPluginValue_Double

type CELPluginValue_Double struct {
	Double float64 `protobuf:"fixed64,3,opt,name=double,proto3,oneof"`
}

type CELPluginValue_Int64

type CELPluginValue_Int64 struct {
	Int64 int64 `protobuf:"varint,1,opt,name=int64,proto3,oneof"`
}

type CELPluginValue_Message

type CELPluginValue_Message struct {
	Message *anypb.Any `protobuf:"bytes,8,opt,name=message,proto3,oneof"`
}

type CELPluginValue_Ptr

type CELPluginValue_Ptr struct {
	Ptr uint64 `protobuf:"varint,7,opt,name=ptr,proto3,oneof"`
}

type CELPluginValue_String_

type CELPluginValue_String_ struct {
	String_ string `protobuf:"bytes,4,opt,name=string,proto3,oneof"`
}

type CELPluginValue_Uint64

type CELPluginValue_Uint64 struct {
	Uint64 uint64 `protobuf:"varint,2,opt,name=uint64,proto3,oneof"`
}

type CELType

type CELType struct {

	// type is the type name.
	// The value must be one that can be referenced on the Protocol Buffers.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// desc is the description of plugin.
	// This description is used as documentation at code generation.
	Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	// repeated is whether repeated type or not.
	Repeated bool `protobuf:"varint,3,opt,name=repeated,proto3" json:"repeated,omitempty"`
	// contains filtered or unexported fields
}

CELType represents type information.

func (*CELType) Descriptor deprecated

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

Deprecated: Use CELType.ProtoReflect.Descriptor instead.

func (*CELType) GetDesc

func (x *CELType) GetDesc() string

func (*CELType) GetRepeated

func (x *CELType) GetRepeated() bool

func (*CELType) GetType

func (x *CELType) GetType() string

func (*CELType) ProtoMessage

func (*CELType) ProtoMessage()

func (*CELType) ProtoReflect

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

func (*CELType) Reset

func (x *CELType) Reset()

func (*CELType) String

func (x *CELType) String() string

type CELVariable

type CELVariable struct {

	// name is the variable name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// desc is the description of plugin.
	// This description is used as documentation at code generation.
	Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	// type is the argument type.
	// The value must be one that can be referenced on the Protocol Buffers.
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// repeated is whether repeated type or not.
	Repeated bool `protobuf:"varint,4,opt,name=repeated,proto3" json:"repeated,omitempty"`
	// contains filtered or unexported fields
}

CELVariable represents CEL variable.

func (*CELVariable) Descriptor deprecated

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

Deprecated: Use CELVariable.ProtoReflect.Descriptor instead.

func (*CELVariable) GetDesc

func (x *CELVariable) GetDesc() string

func (*CELVariable) GetName

func (x *CELVariable) GetName() string

func (*CELVariable) GetRepeated

func (x *CELVariable) GetRepeated() bool

func (*CELVariable) GetType

func (x *CELVariable) GetType() string

func (*CELVariable) ProtoMessage

func (*CELVariable) ProtoMessage()

func (*CELVariable) ProtoReflect

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

func (*CELVariable) Reset

func (x *CELVariable) Reset()

func (*CELVariable) String

func (x *CELVariable) String() string

type Export

type Export struct {

	// name is the plugin name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// desc is the description of plugin.
	// This description is used as documentation at code generation.
	Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	// types describe the message type you want to expose.
	Types []*ReceiverType `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"`
	// functions describe the definition of the function you want to expose.
	Functions []*CELFunction `protobuf:"bytes,4,rep,name=functions,proto3" json:"functions,omitempty"`
	// variables describe the definition of the variable you want to expose.
	Variables []*CELVariable `protobuf:"bytes,5,rep,name=variables,proto3" json:"variables,omitempty"`
	// contains filtered or unexported fields
}

Export describe the schema to be exposed as a CEL plugin.

func (*Export) Descriptor deprecated

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

Deprecated: Use Export.ProtoReflect.Descriptor instead.

func (*Export) GetDesc

func (x *Export) GetDesc() string

func (*Export) GetFunctions

func (x *Export) GetFunctions() []*CELFunction

func (*Export) GetName

func (x *Export) GetName() string

func (*Export) GetTypes

func (x *Export) GetTypes() []*ReceiverType

func (*Export) GetVariables

func (x *Export) GetVariables() []*CELVariable

func (*Export) ProtoMessage

func (*Export) ProtoMessage()

func (*Export) ProtoReflect

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

func (*Export) Reset

func (x *Export) Reset()

func (*Export) String

func (x *Export) String() string

type PluginRule

type PluginRule struct {
	Export []*Export `protobuf:"bytes,1,rep,name=export,proto3" json:"export,omitempty"`
	// contains filtered or unexported fields
}

PluginRule define schema of CEL plugin.

func (*PluginRule) Descriptor deprecated

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

Deprecated: Use PluginRule.ProtoReflect.Descriptor instead.

func (*PluginRule) GetExport

func (x *PluginRule) GetExport() []*Export

func (*PluginRule) ProtoMessage

func (*PluginRule) ProtoMessage()

func (*PluginRule) ProtoReflect

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

func (*PluginRule) Reset

func (x *PluginRule) Reset()

func (*PluginRule) String

func (x *PluginRule) String() string

type ReceiverType

type ReceiverType struct {

	// name is the message name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// desc is the description of plugin.
	// This description is used as documentation at code generation.
	Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"`
	// methods describe the definition of the method for the message.
	Methods []*CELFunction `protobuf:"bytes,3,rep,name=methods,proto3" json:"methods,omitempty"`
	// contains filtered or unexported fields
}

ReceiverType represents methods tied to the message.

func (*ReceiverType) Descriptor deprecated

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

Deprecated: Use ReceiverType.ProtoReflect.Descriptor instead.

func (*ReceiverType) GetDesc

func (x *ReceiverType) GetDesc() string

func (*ReceiverType) GetMethods

func (x *ReceiverType) GetMethods() []*CELFunction

func (*ReceiverType) GetName

func (x *ReceiverType) GetName() string

func (*ReceiverType) ProtoMessage

func (*ReceiverType) ProtoMessage()

func (*ReceiverType) ProtoReflect

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

func (*ReceiverType) Reset

func (x *ReceiverType) Reset()

func (*ReceiverType) String

func (x *ReceiverType) String() string

Jump to

Keyboard shortcuts

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