purl

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PurlType = cel.ObjectType("purl")

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	Tool *PurlTool
}

func New

func New() *Plugin

func (*Plugin) CanRegisterFor

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

func (*Plugin) Capabilities

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

func (*Plugin) Library

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

func (*Plugin) VarValues

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

type PurlTool

type PurlTool struct{}

func (*PurlTool) CompileOptions

func (pt *PurlTool) CompileOptions() []cel.EnvOption

func (*PurlTool) ConvertToNative

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

func (*PurlTool) ConvertToType

func (pt *PurlTool) ConvertToType(typeVal ref.Type) ref.Val

func (*PurlTool) Equal

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

func (*PurlTool) Functions

func (pt *PurlTool) Functions() []cel.EnvOption

func (*PurlTool) ProgramOptions

func (pt *PurlTool) ProgramOptions() []cel.ProgramOption

func (*PurlTool) Type

func (*PurlTool) Type() ref.Type

func (*PurlTool) Value

func (pt *PurlTool) Value() any

type TypeAdapter

type TypeAdapter struct{}

func (TypeAdapter) NativeToValue

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

Jump to

Keyboard shortcuts

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