Documentation ¶
Index ¶
- Constants
- Variables
- func BindFunction(name string, opts ...BindFunctionOpt) []cel.EnvOption
- func BindMemberFunction(name string, opts ...BindMemberFunctionOpt) []cel.EnvOption
- func IsStandardLibraryType(typeName string) bool
- func NewASTValidators() []cel.ASTValidator
- func NewEnumValidator() cel.ASTValidator
- func NewListLibrary(typeAdapter types.Adapter) cel.SingletonLibrary
- func NewListValidator() cel.ASTValidator
- func ToIdentifiers(expr ast.Expr) []string
- type BindFunctionOpt
- type BindMemberFunctionOpt
- type CELFunction
- type CELPlugin
- type CELPluginConfig
- type CELPluginInstance
- func (i *CELPluginInstance) Call(ctx context.Context, fn *CELFunction, md metadata.MD, args ...ref.Val) ref.Val
- func (i *CELPluginInstance) Close(ctx context.Context) error
- func (i *CELPluginInstance) CompileOptions() []cel.EnvOption
- func (i *CELPluginInstance) LibraryName() string
- func (i *CELPluginInstance) ProgramOptions() []cel.ProgramOption
- func (i *CELPluginInstance) ValidatePlugin(ctx context.Context) error
- type CastLibrary
- type ContextValue
- type EnumLibrary
- type EnumSelector
- func (s *EnumSelector) ConvertToNative(typeDesc reflect.Type) (any, error)
- func (s *EnumSelector) ConvertToType(typeValue ref.Type) ref.Val
- func (*EnumSelector) Descriptor() ([]byte, []int)deprecated
- func (s *EnumSelector) Equal(other ref.Val) ref.Val
- func (x *EnumSelector) GetCond() bool
- func (m *EnumSelector) GetFalse() isEnumSelector_False
- func (x *EnumSelector) GetFalseSelector() *EnumSelector
- func (x *EnumSelector) GetFalseValue() int32
- func (m *EnumSelector) GetTrue() isEnumSelector_True
- func (x *EnumSelector) GetTrueSelector() *EnumSelector
- func (x *EnumSelector) GetTrueValue() int32
- func (*EnumSelector) ProtoMessage()
- func (x *EnumSelector) ProtoReflect() protoreflect.Message
- func (x *EnumSelector) Reset()
- func (x *EnumSelector) String() string
- func (s *EnumSelector) Type() ref.Type
- func (s *EnumSelector) Value() any
- type EnumSelector_FalseSelector
- type EnumSelector_FalseValue
- type EnumSelector_TrueSelector
- type EnumSelector_TrueValue
- type Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetBadRequests() []*errdetails.BadRequest
- func (x *Error) GetCode() int32
- func (x *Error) GetCustomMessages() []*anypb.Any
- func (x *Error) GetDebugInfo() []*errdetails.DebugInfo
- func (x *Error) GetDetails() []*anypb.Any
- func (x *Error) GetErrorInfo() []*errdetails.ErrorInfo
- func (x *Error) GetHelps() []*errdetails.Help
- func (x *Error) GetLocalizedMessages() []*errdetails.LocalizedMessage
- func (x *Error) GetMessage() string
- func (x *Error) GetPreconditionFailures() []*errdetails.PreconditionFailure
- func (x *Error) GetQuotaFailures() []*errdetails.QuotaFailure
- func (x *Error) GetRequestInfo() []*errdetails.RequestInfo
- func (x *Error) GetResourceInfo() []*errdetails.ResourceInfo
- func (x *Error) GetRetryInfo() []*errdetails.RetryInfo
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (x *Error) String() string
- type Library
- type ListLibrary
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetName() string
- func (x *Location) GetOffset() int64
- func (x *Location) GoLocation() (*time.Location, error)
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type LogLibrary
- type MetadataLibrary
- type PluginVersionSchema
- type Rand
- type RandLibrary
- type Source
- type StringsLibrary
- type Time
- func (*Time) Descriptor() ([]byte, []int)deprecated
- func (x *Time) GetLoc() *Location
- func (x *Time) GetTimestamp() *timestamppb.Timestamp
- func (x *Time) GoTime() (time.Time, error)
- func (*Time) ProtoMessage()
- func (x *Time) ProtoReflect() protoreflect.Message
- func (x *Time) Reset()
- func (x *Time) String() string
- type TimeLibrary
- type URL
- func (*URL) Descriptor() ([]byte, []int)deprecated
- func (x *URL) GetForceQuery() bool
- func (x *URL) GetFragment() string
- func (x *URL) GetHost() string
- func (x *URL) GetOmitHost() bool
- func (x *URL) GetOpaque() string
- func (x *URL) GetPath() string
- func (x *URL) GetRawFragment() string
- func (x *URL) GetRawPath() string
- func (x *URL) GetRawQuery() string
- func (x *URL) GetScheme() string
- func (x *URL) GetUser() *Userinfo
- func (x *URL) GoURL() url.URL
- func (*URL) ProtoMessage()
- func (x *URL) ProtoReflect() protoreflect.Message
- func (x *URL) Reset()
- func (x *URL) String() string
- type URLLibrary
- type UUID
- type UUIDLibrary
- type Userinfo
- func (*Userinfo) Descriptor() ([]byte, []int)deprecated
- func (x *Userinfo) GetPassword() string
- func (x *Userinfo) GetPasswordSet() bool
- func (x *Userinfo) GetUsername() string
- func (x *Userinfo) GoUserinfo() *url.Userinfo
- func (*Userinfo) ProtoMessage()
- func (x *Userinfo) ProtoReflect() protoreflect.Message
- func (x *Userinfo) Reset()
- func (x *Userinfo) String() string
- type WasmConfig
Constants ¶
View Source
const ( ContextVariableName = "__CTX__" ContextTypeName = "grpc.federation.private.Context" )
View Source
const ( EnumPackageName = "enum" EnumSelectorFQDN = "grpc.federation.private.EnumSelector" )
View Source
const (
CastNullValueFunc = "grpc.federation.cast.null_value"
)
View Source
const CastPackageName = "cast"
View Source
const ListPackageName = "list"
View Source
const LogPackageName = "log"
View Source
const MetadataPackageName = "metadata"
View Source
const PluginProtocolVersion = 1
View Source
const RandPackageName = "rand"
View Source
const StringsPackageName = "strings"
View Source
const TimePackageName = "time"
View Source
const URLPackageName = "url"
View Source
const UUIDPackageName = "uuid"
Variables ¶
View Source
var ( SourceType = types.NewObjectType(createRandName("Source")) RandType = types.NewObjectType(createRandName("Rand")) )
View Source
var ( TimeType = cel.ObjectType("grpc.federation.time.Time") LocationType = cel.ObjectType("grpc.federation.time.Location") )
View Source
var ( URLType = cel.ObjectType("grpc.federation.url.URL") UserinfoType = cel.ObjectType("grpc.federation.url.Userinfo") )
View Source
var (
ErrWasmContentMismatch = errors.New(
`grpc-federation: wasm file content mismatch`,
)
)
View Source
var File_grpc_federation_private_proto protoreflect.FileDescriptor
View Source
var File_grpc_federation_time_proto protoreflect.FileDescriptor
View Source
var File_grpc_federation_url_proto protoreflect.FileDescriptor
View Source
var (
UUIDType = types.NewObjectType(createUUIDName("UUID"))
)
Functions ¶
func BindFunction ¶ added in v1.2.4
func BindFunction(name string, opts ...BindFunctionOpt) []cel.EnvOption
func BindMemberFunction ¶ added in v1.2.4
func BindMemberFunction(name string, opts ...BindMemberFunctionOpt) []cel.EnvOption
func IsStandardLibraryType ¶ added in v0.9.2
func NewASTValidators ¶ added in v0.17.0
func NewASTValidators() []cel.ASTValidator
func NewEnumValidator ¶ added in v1.0.0
func NewEnumValidator() cel.ASTValidator
func NewListLibrary ¶ added in v0.17.0
func NewListLibrary(typeAdapter types.Adapter) cel.SingletonLibrary
func NewListValidator ¶ added in v0.17.0
func NewListValidator() cel.ASTValidator
func ToIdentifiers ¶ added in v1.4.2
Types ¶
type BindFunctionOpt ¶ added in v1.2.4
type BindFunctionOpt struct {
cel.FunctionOpt
}
type BindMemberFunctionOpt ¶ added in v1.2.4
type BindMemberFunctionOpt struct {
cel.FunctionOpt
}
type CELFunction ¶ added in v0.10.0
type CELPlugin ¶ added in v0.10.0
type CELPlugin struct {
// contains filtered or unexported fields
}
func NewCELPlugin ¶ added in v0.10.0
func NewCELPlugin(ctx context.Context, cfg CELPluginConfig) (*CELPlugin, error)
func (*CELPlugin) CreateInstance ¶ added in v0.13.8
type CELPluginConfig ¶ added in v0.10.0
type CELPluginConfig struct { Name string Wasm WasmConfig Functions []*CELFunction }
type CELPluginInstance ¶ added in v0.13.8
type CELPluginInstance struct {
// contains filtered or unexported fields
}
func (*CELPluginInstance) Call ¶ added in v0.13.8
func (i *CELPluginInstance) Call(ctx context.Context, fn *CELFunction, md metadata.MD, args ...ref.Val) ref.Val
func (*CELPluginInstance) Close ¶ added in v0.13.8
func (i *CELPluginInstance) Close(ctx context.Context) error
func (*CELPluginInstance) CompileOptions ¶ added in v0.13.8
func (i *CELPluginInstance) CompileOptions() []cel.EnvOption
func (*CELPluginInstance) LibraryName ¶ added in v0.13.8
func (i *CELPluginInstance) LibraryName() string
func (*CELPluginInstance) ProgramOptions ¶ added in v0.13.8
func (i *CELPluginInstance) ProgramOptions() []cel.ProgramOption
func (*CELPluginInstance) ValidatePlugin ¶ added in v0.15.0
func (i *CELPluginInstance) ValidatePlugin(ctx context.Context) error
type CastLibrary ¶ added in v1.5.1
type CastLibrary struct{}
func (*CastLibrary) CompileOptions ¶ added in v1.5.1
func (lib *CastLibrary) CompileOptions() []cel.EnvOption
func (*CastLibrary) LibraryName ¶ added in v1.5.1
func (lib *CastLibrary) LibraryName() string
func (*CastLibrary) ProgramOptions ¶ added in v1.5.1
func (lib *CastLibrary) ProgramOptions() []cel.ProgramOption
type ContextValue ¶ added in v1.2.4
func NewContextValue ¶ added in v1.2.4
func NewContextValue(c context.Context) *ContextValue
func (*ContextValue) ConvertToNative ¶ added in v1.2.4
func (c *ContextValue) ConvertToNative(typeDesc reflect.Type) (any, error)
func (*ContextValue) ConvertToType ¶ added in v1.2.4
func (c *ContextValue) ConvertToType(typeValue ref.Type) ref.Val
func (*ContextValue) Type ¶ added in v1.2.4
func (c *ContextValue) Type() ref.Type
func (*ContextValue) Value ¶ added in v1.2.4
func (c *ContextValue) Value() any
type EnumLibrary ¶ added in v1.0.0
type EnumLibrary struct { }
func (*EnumLibrary) CompileOptions ¶ added in v1.0.0
func (lib *EnumLibrary) CompileOptions() []cel.EnvOption
func (*EnumLibrary) LibraryName ¶ added in v1.0.0
func (lib *EnumLibrary) LibraryName() string
func (*EnumLibrary) ProgramOptions ¶ added in v1.0.0
func (lib *EnumLibrary) ProgramOptions() []cel.ProgramOption
type EnumSelector ¶ added in v1.0.0
type EnumSelector struct { Cond bool `protobuf:"varint,1,opt,name=cond,proto3" json:"cond,omitempty"` // Types that are assignable to True: // // *EnumSelector_TrueValue // *EnumSelector_TrueSelector True isEnumSelector_True `protobuf_oneof:"true"` // Types that are assignable to False: // // *EnumSelector_FalseValue // *EnumSelector_FalseSelector False isEnumSelector_False `protobuf_oneof:"false"` // contains filtered or unexported fields }
func (*EnumSelector) ConvertToNative ¶ added in v1.0.0
func (s *EnumSelector) ConvertToNative(typeDesc reflect.Type) (any, error)
func (*EnumSelector) ConvertToType ¶ added in v1.0.0
func (s *EnumSelector) ConvertToType(typeValue ref.Type) ref.Val
func (*EnumSelector) Descriptor
deprecated
added in
v1.0.0
func (*EnumSelector) Descriptor() ([]byte, []int)
Deprecated: Use EnumSelector.ProtoReflect.Descriptor instead.
func (*EnumSelector) GetCond ¶ added in v1.0.0
func (x *EnumSelector) GetCond() bool
func (*EnumSelector) GetFalse ¶ added in v1.0.0
func (m *EnumSelector) GetFalse() isEnumSelector_False
func (*EnumSelector) GetFalseSelector ¶ added in v1.0.0
func (x *EnumSelector) GetFalseSelector() *EnumSelector
func (*EnumSelector) GetFalseValue ¶ added in v1.0.0
func (x *EnumSelector) GetFalseValue() int32
func (*EnumSelector) GetTrue ¶ added in v1.0.0
func (m *EnumSelector) GetTrue() isEnumSelector_True
func (*EnumSelector) GetTrueSelector ¶ added in v1.0.0
func (x *EnumSelector) GetTrueSelector() *EnumSelector
func (*EnumSelector) GetTrueValue ¶ added in v1.0.0
func (x *EnumSelector) GetTrueValue() int32
func (*EnumSelector) ProtoMessage ¶ added in v1.0.0
func (*EnumSelector) ProtoMessage()
func (*EnumSelector) ProtoReflect ¶ added in v1.0.0
func (x *EnumSelector) ProtoReflect() protoreflect.Message
func (*EnumSelector) Reset ¶ added in v1.0.0
func (x *EnumSelector) Reset()
func (*EnumSelector) String ¶ added in v1.0.0
func (x *EnumSelector) String() string
func (*EnumSelector) Type ¶ added in v1.0.0
func (s *EnumSelector) Type() ref.Type
func (*EnumSelector) Value ¶ added in v1.0.0
func (s *EnumSelector) Value() any
type EnumSelector_FalseSelector ¶ added in v1.0.0
type EnumSelector_FalseSelector struct {
FalseSelector *EnumSelector `protobuf:"bytes,5,opt,name=false_selector,json=falseSelector,proto3,oneof"`
}
type EnumSelector_FalseValue ¶ added in v1.0.0
type EnumSelector_FalseValue struct {
FalseValue int32 `protobuf:"varint,4,opt,name=false_value,json=falseValue,proto3,oneof"`
}
type EnumSelector_TrueSelector ¶ added in v1.0.0
type EnumSelector_TrueSelector struct {
TrueSelector *EnumSelector `protobuf:"bytes,3,opt,name=true_selector,json=trueSelector,proto3,oneof"`
}
type EnumSelector_TrueValue ¶ added in v1.0.0
type EnumSelector_TrueValue struct {
TrueValue int32 `protobuf:"varint,2,opt,name=true_value,json=trueValue,proto3,oneof"`
}
type Error ¶ added in v0.13.6
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"` CustomMessages []*anypb.Any `protobuf:"bytes,4,rep,name=custom_messages,json=customMessages,proto3" json:"custom_messages,omitempty"` ErrorInfo []*errdetails.ErrorInfo `protobuf:"bytes,5,rep,name=error_info,json=errorInfo,proto3" json:"error_info,omitempty"` RetryInfo []*errdetails.RetryInfo `protobuf:"bytes,6,rep,name=retry_info,json=retryInfo,proto3" json:"retry_info,omitempty"` DebugInfo []*errdetails.DebugInfo `protobuf:"bytes,7,rep,name=debug_info,json=debugInfo,proto3" json:"debug_info,omitempty"` QuotaFailures []*errdetails.QuotaFailure `protobuf:"bytes,8,rep,name=quota_failures,json=quotaFailures,proto3" json:"quota_failures,omitempty"` PreconditionFailures []*errdetails.PreconditionFailure `protobuf:"bytes,9,rep,name=precondition_failures,json=preconditionFailures,proto3" json:"precondition_failures,omitempty"` BadRequests []*errdetails.BadRequest `protobuf:"bytes,10,rep,name=bad_requests,json=badRequests,proto3" json:"bad_requests,omitempty"` RequestInfo []*errdetails.RequestInfo `protobuf:"bytes,11,rep,name=request_info,json=requestInfo,proto3" json:"request_info,omitempty"` ResourceInfo []*errdetails.ResourceInfo `protobuf:"bytes,12,rep,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"` Helps []*errdetails.Help `protobuf:"bytes,13,rep,name=helps,proto3" json:"helps,omitempty"` LocalizedMessages []*errdetails.LocalizedMessage `protobuf:"bytes,14,rep,name=localized_messages,json=localizedMessages,proto3" json:"localized_messages,omitempty"` // contains filtered or unexported fields }
Error type information of the error variable used when evaluating CEL.
func (*Error) Descriptor
deprecated
added in
v0.13.6
func (*Error) GetBadRequests ¶ added in v0.13.6
func (x *Error) GetBadRequests() []*errdetails.BadRequest
func (*Error) GetCustomMessages ¶ added in v0.13.6
func (*Error) GetDebugInfo ¶ added in v0.13.6
func (x *Error) GetDebugInfo() []*errdetails.DebugInfo
func (*Error) GetDetails ¶ added in v0.13.6
func (*Error) GetErrorInfo ¶ added in v0.13.6
func (x *Error) GetErrorInfo() []*errdetails.ErrorInfo
func (*Error) GetHelps ¶ added in v0.13.6
func (x *Error) GetHelps() []*errdetails.Help
func (*Error) GetLocalizedMessages ¶ added in v0.13.6
func (x *Error) GetLocalizedMessages() []*errdetails.LocalizedMessage
func (*Error) GetMessage ¶ added in v0.13.6
func (*Error) GetPreconditionFailures ¶ added in v0.13.6
func (x *Error) GetPreconditionFailures() []*errdetails.PreconditionFailure
func (*Error) GetQuotaFailures ¶ added in v0.13.6
func (x *Error) GetQuotaFailures() []*errdetails.QuotaFailure
func (*Error) GetRequestInfo ¶ added in v0.13.6
func (x *Error) GetRequestInfo() []*errdetails.RequestInfo
func (*Error) GetResourceInfo ¶ added in v0.13.6
func (x *Error) GetResourceInfo() []*errdetails.ResourceInfo
func (*Error) GetRetryInfo ¶ added in v0.13.6
func (x *Error) GetRetryInfo() []*errdetails.RetryInfo
func (*Error) ProtoMessage ¶ added in v0.13.6
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶ added in v0.13.6
func (x *Error) ProtoReflect() protoreflect.Message
type Library ¶
type Library struct {
// contains filtered or unexported fields
}
func NewLibrary ¶
func (*Library) CompileOptions ¶
func (*Library) LibraryName ¶
func (*Library) ProgramOptions ¶
func (lib *Library) ProgramOptions() []cel.ProgramOption
type ListLibrary ¶ added in v0.8.1
type ListLibrary struct {
// contains filtered or unexported fields
}
func (*ListLibrary) CompileOptions ¶ added in v0.8.1
func (lib *ListLibrary) CompileOptions() []cel.EnvOption
func (*ListLibrary) LibraryName ¶ added in v0.8.1
func (lib *ListLibrary) LibraryName() string
func (*ListLibrary) ProgramOptions ¶ added in v0.8.1
func (lib *ListLibrary) ProgramOptions() []cel.ProgramOption
type Location ¶
type Location struct { // name is the time zone name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // offset is the offset (seconds east of UTC). Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
Location represents time zone. See https://pkg.go.dev/time#Location.
func (*Location) Descriptor
deprecated
added in
v1.4.0
func (*Location) GoLocation ¶ added in v1.4.0
func (*Location) ProtoMessage ¶ added in v1.4.0
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶ added in v1.4.0
func (x *Location) ProtoReflect() protoreflect.Message
type LogLibrary ¶ added in v0.19.0
type LogLibrary struct{}
func NewLogLibrary ¶ added in v0.19.0
func NewLogLibrary() *LogLibrary
func (*LogLibrary) CompileOptions ¶ added in v0.19.0
func (lib *LogLibrary) CompileOptions() []cel.EnvOption
func (*LogLibrary) LibraryName ¶ added in v0.19.0
func (lib *LogLibrary) LibraryName() string
func (*LogLibrary) ProgramOptions ¶ added in v0.19.0
func (lib *LogLibrary) ProgramOptions() []cel.ProgramOption
type MetadataLibrary ¶ added in v0.10.0
type MetadataLibrary struct{}
func NewMetadataLibrary ¶ added in v0.10.0
func NewMetadataLibrary() *MetadataLibrary
func (*MetadataLibrary) CompileOptions ¶ added in v0.10.0
func (lib *MetadataLibrary) CompileOptions() []cel.EnvOption
func (*MetadataLibrary) LibraryName ¶ added in v0.10.0
func (lib *MetadataLibrary) LibraryName() string
func (*MetadataLibrary) ProgramOptions ¶ added in v0.10.0
func (lib *MetadataLibrary) ProgramOptions() []cel.ProgramOption
type PluginVersionSchema ¶ added in v0.15.0
type Rand ¶ added in v0.9.0
func (*Rand) ConvertToNative ¶ added in v0.9.0
func (*Rand) ConvertToType ¶ added in v0.9.0
type RandLibrary ¶ added in v0.9.0
type RandLibrary struct { }
func (*RandLibrary) CompileOptions ¶ added in v0.9.0
func (lib *RandLibrary) CompileOptions() []cel.EnvOption
func (*RandLibrary) LibraryName ¶ added in v0.9.0
func (lib *RandLibrary) LibraryName() string
func (*RandLibrary) ProgramOptions ¶ added in v0.9.0
func (lib *RandLibrary) ProgramOptions() []cel.ProgramOption
type Source ¶ added in v0.9.0
func (*Source) ConvertToNative ¶ added in v0.9.0
func (*Source) ConvertToType ¶ added in v0.9.0
type StringsLibrary ¶ added in v1.6.0
type StringsLibrary struct { }
func NewStringsLibrary ¶ added in v1.6.0
func NewStringsLibrary() *StringsLibrary
func (*StringsLibrary) CompileOptions ¶ added in v1.6.0
func (lib *StringsLibrary) CompileOptions() []cel.EnvOption
func (*StringsLibrary) LibraryName ¶ added in v1.6.0
func (lib *StringsLibrary) LibraryName() string
func (*StringsLibrary) ProgramOptions ¶ added in v1.6.0
func (lib *StringsLibrary) ProgramOptions() []cel.ProgramOption
type Time ¶ added in v1.4.0
type Time struct { // timestamp is the timestamp. Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // loc is the location. Loc *Location `protobuf:"bytes,2,opt,name=loc,proto3" json:"loc,omitempty"` // contains filtered or unexported fields }
Time represents google.protobuf.Timestamp with time zone.
func (*Time) Descriptor
deprecated
added in
v1.4.0
func (*Time) GetTimestamp ¶ added in v1.4.0
func (x *Time) GetTimestamp() *timestamppb.Timestamp
func (*Time) ProtoMessage ¶ added in v1.4.0
func (*Time) ProtoMessage()
func (*Time) ProtoReflect ¶ added in v1.4.0
func (x *Time) ProtoReflect() protoreflect.Message
type TimeLibrary ¶
type TimeLibrary struct {
// contains filtered or unexported fields
}
func NewTimeLibrary ¶ added in v1.4.0
func NewTimeLibrary(typeAdapter types.Adapter) *TimeLibrary
func (*TimeLibrary) CompileOptions ¶
func (lib *TimeLibrary) CompileOptions() []cel.EnvOption
func (*TimeLibrary) LibraryName ¶
func (lib *TimeLibrary) LibraryName() string
func (*TimeLibrary) ProgramOptions ¶
func (lib *TimeLibrary) ProgramOptions() []cel.ProgramOption
type URL ¶ added in v1.6.0
type URL struct { Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"` Opaque string `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` User *Userinfo `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"` Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` RawPath string `protobuf:"bytes,6,opt,name=raw_path,json=rawPath,proto3" json:"raw_path,omitempty"` OmitHost bool `protobuf:"varint,7,opt,name=omit_host,json=omitHost,proto3" json:"omit_host,omitempty"` ForceQuery bool `protobuf:"varint,8,opt,name=force_query,json=forceQuery,proto3" json:"force_query,omitempty"` RawQuery string `protobuf:"bytes,9,opt,name=raw_query,json=rawQuery,proto3" json:"raw_query,omitempty"` Fragment string `protobuf:"bytes,10,opt,name=fragment,proto3" json:"fragment,omitempty"` RawFragment string `protobuf:"bytes,11,opt,name=raw_fragment,json=rawFragment,proto3" json:"raw_fragment,omitempty"` // contains filtered or unexported fields }
URL represents the structure of the URL in net/url package.
func (*URL) Descriptor
deprecated
added in
v1.6.0
func (*URL) GetForceQuery ¶ added in v1.6.0
func (*URL) GetFragment ¶ added in v1.6.0
func (*URL) GetOmitHost ¶ added in v1.6.0
func (*URL) GetRawFragment ¶ added in v1.6.0
func (*URL) GetRawPath ¶ added in v1.6.0
func (*URL) GetRawQuery ¶ added in v1.6.0
func (*URL) ProtoMessage ¶ added in v1.6.0
func (*URL) ProtoMessage()
func (*URL) ProtoReflect ¶ added in v1.6.0
func (x *URL) ProtoReflect() protoreflect.Message
type URLLibrary ¶ added in v1.6.0
type URLLibrary struct {
// contains filtered or unexported fields
}
func NewURLLibrary ¶ added in v1.6.0
func NewURLLibrary(typeAdapter types.Adapter) *URLLibrary
func (*URLLibrary) CompileOptions ¶ added in v1.6.0
func (lib *URLLibrary) CompileOptions() []cel.EnvOption
func (*URLLibrary) LibraryName ¶ added in v1.6.0
func (lib *URLLibrary) LibraryName() string
func (*URLLibrary) ProgramOptions ¶ added in v1.6.0
func (lib *URLLibrary) ProgramOptions() []cel.ProgramOption
type UUID ¶ added in v0.9.0
func (*UUID) ConvertToNative ¶ added in v0.9.0
func (*UUID) ConvertToType ¶ added in v0.9.0
type UUIDLibrary ¶ added in v0.9.0
type UUIDLibrary struct { }
func (*UUIDLibrary) CompileOptions ¶ added in v0.9.0
func (lib *UUIDLibrary) CompileOptions() []cel.EnvOption
func (*UUIDLibrary) LibraryName ¶ added in v0.9.0
func (lib *UUIDLibrary) LibraryName() string
func (*UUIDLibrary) ProgramOptions ¶ added in v0.9.0
func (lib *UUIDLibrary) ProgramOptions() []cel.ProgramOption
type Userinfo ¶ added in v1.6.0
type Userinfo struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` PasswordSet bool `protobuf:"varint,3,opt,name=password_set,json=passwordSet,proto3" json:"password_set,omitempty"` // contains filtered or unexported fields }
Userinfo represents username and password information.
func (*Userinfo) Descriptor
deprecated
added in
v1.6.0
func (*Userinfo) GetPassword ¶ added in v1.6.0
func (*Userinfo) GetPasswordSet ¶ added in v1.6.0
func (*Userinfo) GetUsername ¶ added in v1.6.0
func (*Userinfo) GoUserinfo ¶ added in v1.6.0
func (*Userinfo) ProtoMessage ¶ added in v1.6.0
func (*Userinfo) ProtoMessage()
func (*Userinfo) ProtoReflect ¶ added in v1.6.0
func (x *Userinfo) ProtoReflect() protoreflect.Message
type WasmConfig ¶ added in v0.10.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.