Documentation ¶
Index ¶
- func GetReflectNextElem(v reflect.Value) reflect.Value
- func ValidateID(name string) error
- type Display
- type JSONRef
- type Plugin
- type Regexp
- type URL
- func (u *URL) IsNilOrEmpty() bool
- func (u URL) MarshalJSON() ([]byte, error)
- func (u *URL) MarshalText() ([]byte, error)
- func (u URL) MarshalYAML() (interface{}, error)
- func (u *URL) UnmarshalJSON(data []byte) error
- func (u *URL) UnmarshalText(text []byte) error
- func (u *URL) UnmarshalYAML(unmarshal func(interface{}) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateID ¶ added in v0.12.0
ValidateID checks for forbidden items in substring used inside id
Types ¶
type JSONRef ¶
type JSONRef struct { // Ref is the JSON reference. // That's the only thing used during the marshalling / unmarshalling process. // Other attributes are ignored during these processes. Ref string `json:"$ref" yaml:"$ref"` // Path is a list of string that will be used to find from the root of the struct the object pointed. Path []string `json:"-" yaml:"-"` // Object will contain the pointer to the actual object referenced by Ref Object interface{} `json:"-" yaml:"-"` }
func (*JSONRef) UnmarshalJSON ¶
func (*JSONRef) UnmarshalYAML ¶
type Plugin ¶ added in v0.11.0
type Plugin struct { Kind string `json:"kind" yaml:"kind"` // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:Schemaless Spec interface{} `json:"spec" yaml:"spec"` }
func (Plugin) JSONMarshal ¶ added in v0.11.0
func (*Plugin) UnmarshalJSON ¶ added in v0.11.0
func (*Plugin) UnmarshalYAML ¶ added in v0.11.0
type Regexp ¶
Regexp encapsulates a regexp.Regexp and makes it JSON/YAML marshalable.
func MustNewRegexp ¶
MustNewRegexp works like NewRegexp, but panics if the regular expression does not compile.
func NewRegexp ¶
NewRegexp creates a new anchored Regexp and returns an error if the passed-in regular expression does not compile.
func (Regexp) MarshalJSON ¶
func (Regexp) MarshalYAML ¶
func (*Regexp) UnmarshalJSON ¶
func (*Regexp) UnmarshalYAML ¶
type URL ¶ added in v0.43.0
func MustParseURL ¶ added in v0.45.0
func (*URL) IsNilOrEmpty ¶ added in v0.43.0
func (URL) MarshalJSON ¶ added in v0.43.0
MarshalJSON implements the json.Marshaler interface for URL.
func (*URL) MarshalText ¶ added in v0.43.0
MarshalText implements the encoding.TextMarshaler interface.
func (URL) MarshalYAML ¶ added in v0.43.0
MarshalYAML implements the yaml.Marshaler interface for URLs.
func (*URL) UnmarshalJSON ¶ added in v0.43.0
UnmarshalJSON implements the json.Marshaler interface for URL.
func (*URL) UnmarshalText ¶ added in v0.43.0
UnmarshalText implements the encoding.TextUnmarshaler interface.
func (*URL) UnmarshalYAML ¶ added in v0.43.0
UnmarshalYAML implements the yaml.Unmarshaler interface for URLs.