v1alpha1

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 20 Imported by: 14

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=sources.tanzu.vmware.com

Index

Constants

View Source
const (
	// HorizonSourceConditionReady has status True when the HorizonSource is ready to send events.
	HorizonSourceConditionReady = apis.ConditionReady

	// HorizonSourceConditionSinkProvided has status True when the HorizonSource has been configured with a sink target.
	HorizonSourceConditionSinkProvided apis.ConditionType = "SinkProvided"

	// HorizonSourceConditionDeployed has status True when the HorizonSource has had it's adapter deployment created.
	HorizonSourceConditionDeployed apis.ConditionType = "Deployed"
)
View Source
const (
	// VSphereSourceConditionReady is set to reflect the overall state of the resource.
	VSphereSourceConditionReady = apis.ConditionReady

	// VSphereSourceConditionSourceReady is set to reflect the state of the source part of the VSphereSource.
	VSphereSourceConditionSourceReady = "SourceReady"

	// VSphereSourceConditionAuthReady is set to reflect the state of the auth part of the VSphereSource.
	VSphereSourceConditionAuthReady = "AuthReady"

	// VSphereSourceConditionAdapterReady is set to reflect the state of the adapter part of the VSphereSource.
	VSphereSourceConditionAdapterReady = "AdapterReady"
)
View Source
const (
	// VSphereBindingConditionReady is configured to indicate whether the Binding
	// has been configured for resources subject to its runtime contract.
	VSphereBindingConditionReady = apis.ConditionReady
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: sources.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type HorizonAuthSpec added in v0.33.0

type HorizonAuthSpec struct {
	// Address contains the URL of the vSphere API.
	Address apis.URL `json:"address"`

	// SkipTLSVerify specifies whether the client should skip TLS verification when
	// talking to the vsphere address.
	SkipTLSVerify bool `json:"skipTLSVerify,omitempty"`

	// SecretRef is a reference to a Kubernetes secret which contains keys for
	// "domain", "username" and "password", which will be used to authenticate with
	// the Horizon API at "address".
	SecretRef corev1.LocalObjectReference `json:"secretRef"`
}

HorizonAuthSpec is the information used to authenticate with a Horizon API

func (*HorizonAuthSpec) DeepCopy added in v0.33.0

func (in *HorizonAuthSpec) DeepCopy() *HorizonAuthSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizonAuthSpec.

func (*HorizonAuthSpec) DeepCopyInto added in v0.33.0

func (in *HorizonAuthSpec) DeepCopyInto(out *HorizonAuthSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*HorizonAuthSpec) Validate added in v0.33.0

func (auth *HorizonAuthSpec) Validate(ctx context.Context) (err *apis.FieldError)

Validate implements apis.Validatable

type HorizonSource added in v0.33.0

type HorizonSource struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the HorizonSource (from the client).
	Spec HorizonSourceSpec `json:"spec"`

	// Status communicates the observed state of the HorizonSource (from the controller).
	// +optional
	Status HorizonSourceStatus `json:"status,omitempty"`
}

+genclient +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*HorizonSource) DeepCopy added in v0.33.0

func (in *HorizonSource) DeepCopy() *HorizonSource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizonSource.

func (*HorizonSource) DeepCopyInto added in v0.33.0

func (in *HorizonSource) DeepCopyInto(out *HorizonSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*HorizonSource) DeepCopyObject added in v0.33.0

func (in *HorizonSource) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*HorizonSource) GetConditionSet added in v0.33.0

func (hs *HorizonSource) GetConditionSet() apis.ConditionSet

GetConditionSet returns HorizonSource ConditionSet.

func (*HorizonSource) GetGroupVersionKind added in v0.33.0

func (*HorizonSource) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind returns the GroupVersionKind.

func (*HorizonSource) GetStatus added in v0.33.0

func (hs *HorizonSource) GetStatus() *duckv1.Status

GetStatus retrieves the status of the resource. Implements the KRShaped interface.

func (*HorizonSource) SetDefaults added in v0.33.0

func (hs *HorizonSource) SetDefaults(ctx context.Context)

SetDefaults mutates HorizonSource.

func (*HorizonSource) Validate added in v0.33.0

func (src *HorizonSource) Validate(ctx context.Context) *apis.FieldError

Validate validates HorizonSource.

type HorizonSourceList added in v0.33.0

type HorizonSourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []HorizonSource `json:"items"`
}

HorizonSourceList is a list of HorizonSource resources

func (*HorizonSourceList) DeepCopy added in v0.33.0

func (in *HorizonSourceList) DeepCopy() *HorizonSourceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizonSourceList.

func (*HorizonSourceList) DeepCopyInto added in v0.33.0

func (in *HorizonSourceList) DeepCopyInto(out *HorizonSourceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*HorizonSourceList) DeepCopyObject added in v0.33.0

func (in *HorizonSourceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HorizonSourceSpec added in v0.33.0

type HorizonSourceSpec struct {
	// inherits duck/v1 SourceSpec, which currently provides:
	// * Sink - a reference to an object that will resolve to a domain name or
	//   a URI directly to use as the sink.
	// * CloudEventOverrides - defines overrides to control the output format
	//   and modifications of the event sent to the sink.
	duckv1.SourceSpec `json:",inline"`

	// ServiceAccountName holds the name of the Kubernetes service account
	// as which the underlying K8s resources should be run. If unspecified
	// this will default to the "default" service account for the namespace
	// in which the HorizonSource exists.
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`

	HorizonAuthSpec `json:",inline"`
}

HorizonSourceSpec holds the desired state of the HorizonSource (from the client).

func (*HorizonSourceSpec) DeepCopy added in v0.33.0

func (in *HorizonSourceSpec) DeepCopy() *HorizonSourceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizonSourceSpec.

func (*HorizonSourceSpec) DeepCopyInto added in v0.33.0

func (in *HorizonSourceSpec) DeepCopyInto(out *HorizonSourceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*HorizonSourceSpec) Validate added in v0.33.0

func (spec *HorizonSourceSpec) Validate(ctx context.Context) *apis.FieldError

Validate validates HorizonSourceSpec.

type HorizonSourceStatus added in v0.33.0

type HorizonSourceStatus struct {
	// inherits duck/v1 SourceStatus, which currently provides:
	// * ObservedGeneration - the 'Generation' of the Service that was last
	//   processed by the controller.
	// * Conditions - the latest available observations of a resource's current
	//   state.
	// * SinkURI - the current active sink URI that has been configured for the
	//   Source.
	duckv1.SourceStatus `json:",inline"`
}

HorizonSourceStatus communicates the observed state of the HorizonSource (from the controller).

func (*HorizonSourceStatus) DeepCopy added in v0.33.0

func (in *HorizonSourceStatus) DeepCopy() *HorizonSourceStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizonSourceStatus.

func (*HorizonSourceStatus) DeepCopyInto added in v0.33.0

func (in *HorizonSourceStatus) DeepCopyInto(out *HorizonSourceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*HorizonSourceStatus) GetCondition added in v0.33.0

func (hss *HorizonSourceStatus) GetCondition(t apis.ConditionType) *apis.Condition

GetCondition returns the condition currently associated with the given type, or nil.

func (*HorizonSourceStatus) InitializeConditions added in v0.33.0

func (hss *HorizonSourceStatus) InitializeConditions()

InitializeConditions sets relevant unset conditions to Unknown state.

func (*HorizonSourceStatus) IsReady added in v0.33.0

func (hss *HorizonSourceStatus) IsReady() bool

IsReady returns true if the resource is ready overall.

func (*HorizonSourceStatus) MarkNoSink added in v0.33.0

func (hss *HorizonSourceStatus) MarkNoSink(reason, messageFormat string, messageA ...interface{})

MarkNoSink sets the condition that the source does not have a sink configured.

func (*HorizonSourceStatus) MarkSink added in v0.33.0

func (hss *HorizonSourceStatus) MarkSink(uri *apis.URL)

MarkSink sets the condition that the source has a sink configured.

func (*HorizonSourceStatus) PropagateDeploymentAvailability added in v0.33.0

func (hss *HorizonSourceStatus) PropagateDeploymentAvailability(d *appsv1.Deployment)

PropagateDeploymentAvailability uses the availability of the provided Deployment to determine if HorizonSourceConditionDeployed should be marked as true or false.

type VAuthSpec

type VAuthSpec struct {
	// Address contains the URL of the vSphere API.
	Address apis.URL `json:"address"`

	// SkipTLSVerify specifies whether the client should skip TLS verification when
	// talking to the vsphere address.
	SkipTLSVerify bool `json:"skipTLSVerify,omitempty"`

	// SecretRef is a reference to a Kubernetes secret of type kubernetes.io/basic-auth
	// which contains keys for "username" and "password", which will be used to authenticate
	//  with the vSphere API at "address".
	SecretRef corev1.LocalObjectReference `json:"secretRef"`
}

VAuthSpec is the information used to authenticate with a vSphere API

func (*VAuthSpec) DeepCopy

func (in *VAuthSpec) DeepCopy() *VAuthSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VAuthSpec.

func (*VAuthSpec) DeepCopyInto

func (in *VAuthSpec) DeepCopyInto(out *VAuthSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VAuthSpec) Validate

func (vas *VAuthSpec) Validate(ctx context.Context) (err *apis.FieldError)

Validate implements apis.Validatable

type VCheckpointSpec added in v0.21.0

type VCheckpointSpec struct {
	MaxAgeSeconds int64 `json:"maxAgeSeconds"`
	PeriodSeconds int64 `json:"periodSeconds"`
}

func (*VCheckpointSpec) DeepCopy added in v0.21.0

func (in *VCheckpointSpec) DeepCopy() *VCheckpointSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VCheckpointSpec.

func (*VCheckpointSpec) DeepCopyInto added in v0.21.0

func (in *VCheckpointSpec) DeepCopyInto(out *VCheckpointSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (VCheckpointSpec) Validate added in v0.21.0

func (vcs VCheckpointSpec) Validate(ctx context.Context) (err *apis.FieldError)

type VSphereBinding

type VSphereBinding struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VSphereBindingSpec   `json:"spec"`
	Status VSphereBindingStatus `json:"status"`
}

VSphereBinding describes a Binding that makes authenticating against a vSphere API simple.

func (*VSphereBinding) DeepCopy

func (in *VSphereBinding) DeepCopy() *VSphereBinding

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VSphereBinding.

func (*VSphereBinding) DeepCopyInto

func (in *VSphereBinding) DeepCopyInto(out *VSphereBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VSphereBinding) DeepCopyObject

func (in *VSphereBinding) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*VSphereBinding) Do

func (vsb *VSphereBinding) Do(ctx context.Context, ps *duckv1.WithPod)

Do implements psbinding.Bindable

func (*VSphereBinding) GetBindingStatus

func (vsb *VSphereBinding) GetBindingStatus() duck.BindableStatus

GetBindingStatus implements psbinding.Bindable

func (*VSphereBinding) GetGroupVersionKind

func (vsb *VSphereBinding) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind returns the GroupVersionKind.

func (*VSphereBinding) GetSubject

func (vsb *VSphereBinding) GetSubject() tracker.Reference

GetSubject implements psbinding.Bindable

func (*VSphereBinding) GetUntypedSpec

func (vsb *VSphereBinding) GetUntypedSpec() interface{}

GetUntypedSpec implements apis.HasSpec

func (*VSphereBinding) SetDefaults

func (vsb *VSphereBinding) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*VSphereBinding) Undo

func (vsb *VSphereBinding) Undo(ctx context.Context, ps *duckv1.WithPod)

func (*VSphereBinding) Validate

func (vsb *VSphereBinding) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type VSphereBindingList

type VSphereBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VSphereBinding `json:"items"`
}

VSphereBindingList contains a list of VSphereBinding

func (*VSphereBindingList) DeepCopy

func (in *VSphereBindingList) DeepCopy() *VSphereBindingList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VSphereBindingList.

func (*VSphereBindingList) DeepCopyInto

func (in *VSphereBindingList) DeepCopyInto(out *VSphereBindingList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VSphereBindingList) DeepCopyObject

func (in *VSphereBindingList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VSphereBindingSpec

type VSphereBindingSpec struct {
	duckv1alpha1.BindingSpec `json:",inline"`

	VAuthSpec `json:",inline"`
}

VSphereBindingSpec holds the desired state of the VSphereBinding (from the client).

func (*VSphereBindingSpec) DeepCopy

func (in *VSphereBindingSpec) DeepCopy() *VSphereBindingSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VSphereBindingSpec.

func (*VSphereBindingSpec) DeepCopyInto

func (in *VSphereBindingSpec) DeepCopyInto(out *VSphereBindingSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VSphereBindingSpec) Validate

func (fbs *VSphereBindingSpec) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type VSphereBindingStatus

type VSphereBindingStatus struct {
	duckv1.Status `json:",inline"`
}

VSphereBindingStatus communicates the observed state of the VSphereBinding (from the controller).

func (*VSphereBindingStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VSphereBindingStatus.

func (*VSphereBindingStatus) DeepCopyInto

func (in *VSphereBindingStatus) DeepCopyInto(out *VSphereBindingStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VSphereBindingStatus) InitializeConditions

func (sbs *VSphereBindingStatus) InitializeConditions()

InitializeConditions populates the VSphereBindingStatus's conditions field with all of its conditions configured to Unknown.

func (*VSphereBindingStatus) MarkBindingAvailable

func (sbs *VSphereBindingStatus) MarkBindingAvailable()

MarkBindingAvailable marks the VSphereBinding's Ready condition to True.

func (*VSphereBindingStatus) MarkBindingUnavailable

func (sbs *VSphereBindingStatus) MarkBindingUnavailable(reason, message string)

MarkBindingUnavailable marks the VSphereBinding's Ready condition to False with the provided reason and message.

func (*VSphereBindingStatus) SetObservedGeneration

func (sbs *VSphereBindingStatus) SetObservedGeneration(gen int64)

SetObservedGeneration implements psbinding.BindableStatus

type VSphereSource

type VSphereSource struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the VSphereSource (from the client).
	// +optional
	Spec VSphereSourceSpec `json:"spec,omitempty"`

	// Status communicates the observed state of the VSphereSource (from the controller).
	// +optional
	Status VSphereSourceStatus `json:"status,omitempty"`
}

VSphereSource is a Knative abstraction that encapsulates the interface by which Knative components express a desire to have a particular image cached.

func (*VSphereSource) DeepCopy

func (in *VSphereSource) DeepCopy() *VSphereSource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VSphereSource.

func (*VSphereSource) DeepCopyInto

func (in *VSphereSource) DeepCopyInto(out *VSphereSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VSphereSource) DeepCopyObject

func (in *VSphereSource) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*VSphereSource) GetConditionSet added in v0.16.0

func (*VSphereSource) GetConditionSet() apis.ConditionSet

GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.

func (*VSphereSource) GetGroupVersionKind

func (vs *VSphereSource) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind implements kmeta.OwnerRefable

func (*VSphereSource) GetStatus added in v0.16.0

func (vs *VSphereSource) GetStatus() *duckv1.Status

GetStatus retrieves the status of the VSphereSource. Implements the KRShaped interface.

func (*VSphereSource) SetDefaults

func (vs *VSphereSource) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*VSphereSource) Validate

func (vs *VSphereSource) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type VSphereSourceList

type VSphereSourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []VSphereSource `json:"items"`
}

VSphereSourceList is a list of VSphereSource resources

func (*VSphereSourceList) DeepCopy

func (in *VSphereSourceList) DeepCopy() *VSphereSourceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VSphereSourceList.

func (*VSphereSourceList) DeepCopyInto

func (in *VSphereSourceList) DeepCopyInto(out *VSphereSourceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VSphereSourceList) DeepCopyObject

func (in *VSphereSourceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VSphereSourceSpec

type VSphereSourceSpec struct {
	duckv1.SourceSpec `json:",inline"`

	VAuthSpec        `json:",inline"`
	CheckpointConfig VCheckpointSpec `json:"checkpointConfig"`
	PayloadEncoding  string          `json:"payloadEncoding"`
	// ServiceAccountName holds the name of the Kubernetes service account
	// as which the underlying K8s resources should be run. If unspecified
	// this will default to the "default" service account for the namespace
	// in which the HorizonSource exists.
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
}

VSphereSourceSpec holds the desired state of the VSphereSource (from the client).

func (*VSphereSourceSpec) DeepCopy

func (in *VSphereSourceSpec) DeepCopy() *VSphereSourceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VSphereSourceSpec.

func (*VSphereSourceSpec) DeepCopyInto

func (in *VSphereSourceSpec) DeepCopyInto(out *VSphereSourceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VSphereSourceSpec) Validate

func (vsss *VSphereSourceSpec) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type VSphereSourceStatus

type VSphereSourceStatus struct {
	duckv1.SourceStatus `json:",inline"`
}

VSphereSourceStatus communicates the observed state of the VSphereSource (from the controller).

func (*VSphereSourceStatus) DeepCopy

func (in *VSphereSourceStatus) DeepCopy() *VSphereSourceStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VSphereSourceStatus.

func (*VSphereSourceStatus) DeepCopyInto

func (in *VSphereSourceStatus) DeepCopyInto(out *VSphereSourceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VSphereSourceStatus) InitializeConditions

func (vss *VSphereSourceStatus) InitializeConditions()

func (*VSphereSourceStatus) PropagateAdapterStatus

func (vss *VSphereSourceStatus) PropagateAdapterStatus(d appsv1.DeploymentStatus)

func (*VSphereSourceStatus) PropagateAuthStatus

func (vss *VSphereSourceStatus) PropagateAuthStatus(status duckv1.Status)

Jump to

Keyboard shortcuts

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