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

type String

var stringOneArgOverloads

var stringWrapperType

// Add implements traits.Adder.Add.
func (s String) Add(other ref.Val) ref.Val {}

// Compare implements traits.Comparer.Compare.
func (s String) Compare(other ref.Val) ref.Val {}

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

// ConvertToType implements ref.Val.ConvertToType.
func (s String) ConvertToType(typeVal ref.Type) ref.Val {}

// Equal implements ref.Val.Equal.
func (s String) Equal(other ref.Val) ref.Val {}

// IsZeroValue returns true if the string is empty.
func (s String) IsZeroValue() bool {}

// Match implements traits.Matcher.Match.
func (s String) Match(pattern ref.Val) ref.Val {}

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

// Size implements traits.Sizer.Size.
func (s String) Size() ref.Val {}

// Type implements ref.Val.Type.
func (s String) Type() ref.Type {}

// Value implements ref.Val.Value.
func (s String) Value() any {}

// StringContains returns whether the string contains a substring.
func StringContains(s, sub ref.Val) ref.Val {}

// StringEndsWith returns whether the target string contains the input suffix.
func StringEndsWith(s, suf ref.Val) ref.Val {}

// StringStartsWith returns whether the target string contains the input prefix.
func StringStartsWith(s, pre ref.Val) ref.Val {}