v1alpha1

package
v0.0.0-...-5dfa7fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL