Documentation
¶
Overview ¶
+k8s:deepcopy-gen=package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination struct { // ObjectReference points to an Addressable. *corev1.ObjectReference `json:",inline"` // URI is for direct URI Designations. URI *apis.URL `json:"uri,omitempty"` // Path is used with the resulting URL from Addressable ObjectReference or URI. Must start // with `/`. An empty path should be represented as the nil value, not “ or `/`. Will be // appended to the path of the resulting URL from the Addressable, or URI. Path *string `json:"path,omitempty"` }
Destination represents a target of an invocation over HTTP.
func NewDestination ¶
func NewDestination(obj *corev1.ObjectReference, paths ...string) (*Destination, error)
NewDestination constructs a Destination from an object reference as a convenience.
func NewDestinationURI ¶
func NewDestinationURI(uri *apis.URL, paths ...string) (*Destination, error)
NewDestinationURI constructs a Destination from a URI.
func (*Destination) AppendPath ¶
func (current *Destination) AppendPath(paths ...string) error
AppendPath iteratively appends paths to the Destination. The path will always begin with "/" unless it is empty. An empty path ("" or "/") will always resolve to nil.
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) Validate ¶
func (current *Destination) Validate(ctx context.Context) *apis.FieldError
Click to show internal directories.
Click to hide internal directories.