url

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UrlType = cel.ObjectType("url", traits.ReceiverType)

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	Tool *UrlTool
}

func New

func New() *Plugin

func (*Plugin) CanRegisterFor

func (h *Plugin) CanRegisterFor(c class.Class) bool

func (*Plugin) Capabilities

func (h *Plugin) Capabilities() []api.Capability

func (*Plugin) Library

func (h *Plugin) Library() cel.EnvOption

func (*Plugin) VarValues

func (h *Plugin) VarValues(_ *papi.Policy, _ attestation.Subject, _ []attestation.Predicate) map[string]any

type TypeAdapter

type TypeAdapter struct{}

func (TypeAdapter) NativeToValue

func (TypeAdapter) NativeToValue(value any) ref.Val

type UrlTool

type UrlTool struct{}

func (*UrlTool) CompileOptions

func (ut *UrlTool) CompileOptions() []cel.EnvOption

func (*UrlTool) ConvertToNative

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

func (*UrlTool) ConvertToType

func (ut *UrlTool) ConvertToType(typeVal ref.Type) ref.Val

func (*UrlTool) Equal

func (*UrlTool) Equal(other ref.Val) ref.Val

func (*UrlTool) Functions

func (ut *UrlTool) Functions() []cel.EnvOption

func (*UrlTool) ProgramOptions

func (ut *UrlTool) ProgramOptions() []cel.ProgramOption

func (*UrlTool) Type

func (*UrlTool) Type() ref.Type

func (*UrlTool) Value

func (ut *UrlTool) Value() any

Jump to

Keyboard shortcuts

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