hasher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HasherType = cel.ObjectType("hasher", traits.ReceiverType)

Functions

This section is empty.

Types

type Hasher

type Hasher struct{}

func (*Hasher) CompileOptions

func (h *Hasher) CompileOptions() []cel.EnvOption

func (*Hasher) ConvertToNative

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

func (*Hasher) ConvertToType

func (h *Hasher) ConvertToType(typeVal ref.Type) ref.Val

func (*Hasher) Equal

func (h *Hasher) Equal(other ref.Val) ref.Val

func (*Hasher) Functions

func (h *Hasher) Functions() []cel.EnvOption

func (*Hasher) ProgramOptions

func (p *Hasher) ProgramOptions() []cel.ProgramOption

func (*Hasher) Type

func (h *Hasher) Type() ref.Type

func (*Hasher) TypeAdapters

func (h *Hasher) TypeAdapters() []cel.EnvOption

func (*Hasher) Types

func (h *Hasher) Types() []cel.EnvOption

func (*Hasher) Value

func (h *Hasher) Value() any

func (*Hasher) Variables

func (h *Hasher) Variables() []cel.EnvOption

type Plugin

type Plugin struct {
	Hasher *Hasher
}

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

Jump to

Keyboard shortcuts

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