kubernetes/vendor/github.com/google/cel-go/common/types/duration.go

type Duration

func durationOf(d time.Duration) Duration {}

var durationValueType

var durationZeroArgOverloads

// Add implements traits.Adder.Add.
func (d Duration) Add(other ref.Val) ref.Val {}

// Compare implements traits.Comparer.Compare.
func (d Duration) Compare(other ref.Val) ref.Val {}

// ConvertToNative implements ref.Val.ConvertToNative.
func (d Duration) ConvertToNative(typeDesc reflect.Type) (any, error) {}

// ConvertToType implements ref.Val.ConvertToType.
func (d Duration) ConvertToType(typeVal ref.Type) ref.Val {}

// Equal implements ref.Val.Equal.
func (d Duration) Equal(other ref.Val) ref.Val {}

// IsZeroValue returns true if the duration value is zero
func (d Duration) IsZeroValue() bool {}

// Negate implements traits.Negater.Negate.
func (d Duration) Negate() ref.Val {}

// Receive implements traits.Receiver.Receive.
func (d Duration) Receive(function string, overload string, args []ref.Val) ref.Val {}

// Subtract implements traits.Subtractor.Subtract.
func (d Duration) Subtract(subtrahend ref.Val) ref.Val {}

// Type implements ref.Val.Type.
func (d Duration) Type() ref.Type {}

// Value implements ref.Val.Value.
func (d Duration) Value() any {}

// DurationGetHours returns the duration in hours.
func DurationGetHours(val ref.Val) ref.Val {}

// DurationGetMinutes returns duration in minutes.
func DurationGetMinutes(val ref.Val) ref.Val {}

// DurationGetSeconds returns duration in seconds.
func DurationGetSeconds(val ref.Val) ref.Val {}

// DurationGetMilliseconds returns duration in milliseconds.
func DurationGetMilliseconds(val ref.Val) ref.Val {}