Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package
Index ¶
- func ValidateDestination(dest Destination, allowDeprecatedFields bool) *apis.FieldError
- type Destination
- func (in *Destination) DeepCopy() *Destination
- func (in *Destination) DeepCopyInto(out *Destination)
- func (dest *Destination) GetRef() *corev1.ObjectReference
- func (dest *Destination) Validate(ctx context.Context) *apis.FieldError
- func (dest *Destination) ValidateDisallowDeprecated(ctx context.Context) *apis.FieldError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateDestination ¶
func ValidateDestination(dest Destination, allowDeprecatedFields bool) *apis.FieldError
ValidateDestination validates Destination and either allows or disallows Deprecated* fields depending on the flag.
Types ¶
type Destination ¶
type Destination struct { // Ref points to an Addressable. // +optional Ref *corev1.ObjectReference `json:"ref,omitempty"` // +optional DeprecatedAPIVersion string `json:"apiVersion,omitempty"` // +optional DeprecatedKind string `json:"kind,omitempty"` // +optional DeprecatedName string `json:"name,omitempty"` // +optional DeprecatedNamespace string `json:"namespace,omitempty"` // URI can be an absolute URL(non-empty scheme and non-empty host) pointing to the target or a relative URI. Relative URIs will be resolved using the base URI retrieved from Ref. // +optional URI *apis.URL `json:"uri,omitempty"` }
Destination represents a target of an invocation over HTTP.
func (*Destination) DeepCopy ¶
func (in *Destination) DeepCopy() *Destination
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Destination.
func (*Destination) DeepCopyInto ¶
func (in *Destination) DeepCopyInto(out *Destination)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Destination) GetRef ¶
func (dest *Destination) GetRef() *corev1.ObjectReference
GetRef gets the ObjectReference from this Destination, if one is present. If no ref is present, then nil is returned. Note: this mostly exists to abstract away the deprecated ObjectReference fields. Once they are removed, then this method should probably be removed too.
func (*Destination) Validate ¶
func (dest *Destination) Validate(ctx context.Context) *apis.FieldError
func (*Destination) ValidateDisallowDeprecated ¶
func (dest *Destination) ValidateDisallowDeprecated(ctx context.Context) *apis.FieldError