Documentation
¶
Overview ¶
Utilities for unmarshalling in config files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSetTo ¶
func IsSetTo[T comparable](opt Optional[T], t T) bool
Types ¶
type ObjectFilter ¶
type ObjectFilter struct { Cluster Optional[StringFilter] `json:"cluster"` Group Optional[StringFilter] `json:"group"` Resource Optional[StringFilter] `json:"resource"` Namespace Optional[StringFilter] `json:"namespace"` Name Optional[StringFilter] `json:"name"` }
func (*ObjectFilter) Matches ¶
func (filter *ObjectFilter) Matches(key utilobject.Key) bool
type Optional ¶
func (*Optional[T]) UnmarshalJSON ¶
type StringFilter ¶
type StringFilter struct {
// contains filtered or unexported fields
}
func (*StringFilter) Matches ¶
func (f *StringFilter) Matches(subject string) bool
func (*StringFilter) UnmarshalJSON ¶
func (f *StringFilter) UnmarshalJSON(buf []byte) error
Click to show internal directories.
Click to hide internal directories.