cel

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 41 Imported by: 1

Documentation

Index

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 IsStandardLibraryType(typeName string) bool

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

func ToIdentifiers(expr ast.Expr) []string

Types

type BindFunctionOpt added in v1.2.4

type BindFunctionOpt struct {
	cel.FunctionOpt
}

func OverloadFunc added in v1.2.4

func OverloadFunc(name string, args []*cel.Type, result *cel.Type, cb func(ctx context.Context, values ...ref.Val) ref.Val) BindFunctionOpt

type BindMemberFunctionOpt added in v1.2.4

type BindMemberFunctionOpt struct {
	cel.FunctionOpt
}

func MemberOverloadFunc added in v1.2.4

func MemberOverloadFunc(name string, self *cel.Type, args []*cel.Type, result *cel.Type, cb func(ctx context.Context, self ref.Val, args ...ref.Val) ref.Val) BindMemberFunctionOpt

type CELFunction added in v0.10.0

type CELFunction struct {
	Name     string
	ID       string
	Args     []*cel.Type
	Return   *cel.Type
	IsMethod bool
}

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

func (p *CELPlugin) CreateInstance(ctx context.Context, celRegistry *types.Registry) *CELPluginInstance

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

type ContextValue struct {
	context.Context
}

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) Equal added in v1.2.4

func (c *ContextValue) Equal(other ref.Val) 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) Equal added in v1.0.0

func (s *EnumSelector) Equal(other ref.Val) ref.Val

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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetBadRequests added in v0.13.6

func (x *Error) GetBadRequests() []*errdetails.BadRequest

func (*Error) GetCode added in v0.13.6

func (x *Error) GetCode() int32

func (*Error) GetCustomMessages added in v0.13.6

func (x *Error) GetCustomMessages() []*anypb.Any

func (*Error) GetDebugInfo added in v0.13.6

func (x *Error) GetDebugInfo() []*errdetails.DebugInfo

func (*Error) GetDetails added in v0.13.6

func (x *Error) GetDetails() []*anypb.Any

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 (x *Error) GetMessage() string

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

func (*Error) Reset added in v0.13.6

func (x *Error) Reset()

func (*Error) String added in v0.13.6

func (x *Error) String() string

type Library

type Library struct {
	// contains filtered or unexported fields
}

func NewLibrary

func NewLibrary(typeAdapter types.Adapter) *Library

func (*Library) CompileOptions

func (lib *Library) CompileOptions() []cel.EnvOption

func (*Library) LibraryName

func (lib *Library) LibraryName() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetName added in v1.4.0

func (x *Location) GetName() string

func (*Location) GetOffset added in v1.4.0

func (x *Location) GetOffset() int64

func (*Location) GoLocation added in v1.4.0

func (x *Location) GoLocation() (*time.Location, error)

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

func (*Location) Reset added in v1.4.0

func (x *Location) Reset()

func (*Location) String added in v1.4.0

func (x *Location) String() string

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 PluginVersionSchema struct {
	ProtocolVersion   int      `json:"protocolVersion"`
	FederationVersion string   `json:"grpcFederationVersion"`
	Functions         []string `json:"functions"`
}

type Rand added in v0.9.0

type Rand struct {
	*rand.Rand
}

func (*Rand) ConvertToNative added in v0.9.0

func (r *Rand) ConvertToNative(typeDesc reflect.Type) (any, error)

func (*Rand) ConvertToType added in v0.9.0

func (r *Rand) ConvertToType(typeValue ref.Type) ref.Val

func (*Rand) Equal added in v0.9.0

func (r *Rand) Equal(other ref.Val) ref.Val

func (*Rand) Type added in v0.9.0

func (r *Rand) Type() ref.Type

func (*Rand) Value added in v0.9.0

func (r *Rand) Value() any

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

type Source struct {
	rand.Source
}

func (*Source) ConvertToNative added in v0.9.0

func (s *Source) ConvertToNative(typeDesc reflect.Type) (any, error)

func (*Source) ConvertToType added in v0.9.0

func (s *Source) ConvertToType(typeValue ref.Type) ref.Val

func (*Source) Equal added in v0.9.0

func (s *Source) Equal(other ref.Val) ref.Val

func (*Source) Type added in v0.9.0

func (s *Source) Type() ref.Type

func (*Source) Value added in v0.9.0

func (s *Source) Value() any

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) Descriptor() ([]byte, []int)

Deprecated: Use Time.ProtoReflect.Descriptor instead.

func (*Time) GetLoc added in v1.4.0

func (x *Time) GetLoc() *Location

func (*Time) GetTimestamp added in v1.4.0

func (x *Time) GetTimestamp() *timestamppb.Timestamp

func (*Time) GoTime added in v1.4.0

func (x *Time) GoTime() (time.Time, error)

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

func (*Time) Reset added in v1.4.0

func (x *Time) Reset()

func (*Time) String added in v1.4.0

func (x *Time) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use URL.ProtoReflect.Descriptor instead.

func (*URL) GetForceQuery added in v1.6.0

func (x *URL) GetForceQuery() bool

func (*URL) GetFragment added in v1.6.0

func (x *URL) GetFragment() string

func (*URL) GetHost added in v1.6.0

func (x *URL) GetHost() string

func (*URL) GetOmitHost added in v1.6.0

func (x *URL) GetOmitHost() bool

func (*URL) GetOpaque added in v1.6.0

func (x *URL) GetOpaque() string

func (*URL) GetPath added in v1.6.0

func (x *URL) GetPath() string

func (*URL) GetRawFragment added in v1.6.0

func (x *URL) GetRawFragment() string

func (*URL) GetRawPath added in v1.6.0

func (x *URL) GetRawPath() string

func (*URL) GetRawQuery added in v1.6.0

func (x *URL) GetRawQuery() string

func (*URL) GetScheme added in v1.6.0

func (x *URL) GetScheme() string

func (*URL) GetUser added in v1.6.0

func (x *URL) GetUser() *Userinfo

func (*URL) GoURL added in v1.6.0

func (x *URL) GoURL() url.URL

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

func (*URL) Reset added in v1.6.0

func (x *URL) Reset()

func (*URL) String added in v1.6.0

func (x *URL) String() string

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

type UUID struct {
	uuid.UUID
}

func (*UUID) ConvertToNative added in v0.9.0

func (u *UUID) ConvertToNative(typeDesc reflect.Type) (any, error)

func (*UUID) ConvertToType added in v0.9.0

func (u *UUID) ConvertToType(typeValue ref.Type) ref.Val

func (*UUID) Equal added in v0.9.0

func (u *UUID) Equal(other ref.Val) ref.Val

func (*UUID) Type added in v0.9.0

func (u *UUID) Type() ref.Type

func (*UUID) Value added in v0.9.0

func (u *UUID) Value() any

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) Descriptor() ([]byte, []int)

Deprecated: Use Userinfo.ProtoReflect.Descriptor instead.

func (*Userinfo) GetPassword added in v1.6.0

func (x *Userinfo) GetPassword() string

func (*Userinfo) GetPasswordSet added in v1.6.0

func (x *Userinfo) GetPasswordSet() bool

func (*Userinfo) GetUsername added in v1.6.0

func (x *Userinfo) GetUsername() string

func (*Userinfo) GoUserinfo added in v1.6.0

func (x *Userinfo) GoUserinfo() *url.Userinfo

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

func (*Userinfo) Reset added in v1.6.0

func (x *Userinfo) Reset()

func (*Userinfo) String added in v1.6.0

func (x *Userinfo) String() string

type WasmConfig added in v0.10.0

type WasmConfig struct {
	Reader io.Reader
	Sha256 string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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