v1

package
v0.0.0-...-25b1e04 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1 contains the v1 group Sample resources of the anynines provider. +kubebuilder:object:generate=true +groupName=dataservices.anynines.com +versionName=v1

Index

Constants

View Source
const (
	Group   = "dataservices.anynines.com"
	Version = "v1"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	ServiceBindingKind             = reflect.TypeOf(ServiceBinding{}).Name()
	ServiceBindingGroupKind        = schema.GroupKind{Group: Group, Kind: ServiceBindingKind}.String()
	ServiceBindingKindAPIVersion   = ServiceBindingKind + "." + SchemeGroupVersion.String()
	ServiceBindingGroupVersionKind = SchemeGroupVersion.WithKind(ServiceBindingKind)
)

ServiceBinding type metadata.

Functions

This section is empty.

Types

type BindResource

type BindResource struct {
	AppGUID *string `json:"appGuid,omitempty"`

	Route *string `json:"route,omitempty"`
}

BindResource contains data for platform resources associated with a binding.

func (*BindResource) DeepCopy

func (in *BindResource) DeepCopy() *BindResource

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

func (*BindResource) DeepCopyInto

func (in *BindResource) DeepCopyInto(out *BindResource)

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

type ConnectionDetails

type ConnectionDetails struct {
	// HostURL is the URL used to connect with the data service instance.
	HostURL string `json:"hostURL,omitempty"`

	// Port is the Port used to connect with the data service instance.
	Port string `json:"port,omitempty"`
}

ConnectionDetails contains the network details required for connecting to the data service instance.

func (*ConnectionDetails) DeepCopy

func (in *ConnectionDetails) DeepCopy() *ConnectionDetails

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

func (*ConnectionDetails) DeepCopyInto

func (in *ConnectionDetails) DeepCopyInto(out *ConnectionDetails)

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

func (*ConnectionDetails) HasMissingFields

func (sbo *ConnectionDetails) HasMissingFields() bool

type OriginatingIdentity

type OriginatingIdentity struct {
	// The name of the platform to which the user belongs
	Platform string `json:"platform,omitempty"`

	// A serialized JSON object that describes the user in a way that makes
	// sense to the platform
	Value string `json:"value,omitempty"`
}

OriginatingIdentity requires a client API version >=2.13.

OriginatingIdentity is used to pass to the broker service an identity from the platform

func (*OriginatingIdentity) DeepCopy

func (in *OriginatingIdentity) DeepCopy() *OriginatingIdentity

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

func (*OriginatingIdentity) DeepCopyInto

func (in *OriginatingIdentity) DeepCopyInto(out *OriginatingIdentity)

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

type ServiceBinding

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

	Spec   ServiceBindingSpec   `json:"spec"`
	Status ServiceBindingStatus `json:"status,omitempty"`
}

+kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,anynines}

func (*ServiceBinding) DeepCopy

func (in *ServiceBinding) DeepCopy() *ServiceBinding

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

func (*ServiceBinding) DeepCopyInto

func (in *ServiceBinding) DeepCopyInto(out *ServiceBinding)

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

func (*ServiceBinding) DeepCopyObject

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

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

func (*ServiceBinding) GetCondition

func (mg *ServiceBinding) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this ServiceBinding.

func (*ServiceBinding) GetDeletionPolicy

func (mg *ServiceBinding) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this ServiceBinding.

func (*ServiceBinding) GetManagementPolicies

func (mg *ServiceBinding) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this ServiceBinding.

func (*ServiceBinding) GetProviderConfigReference

func (mg *ServiceBinding) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this ServiceBinding.

func (*ServiceBinding) GetPublishConnectionDetailsTo

func (mg *ServiceBinding) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this ServiceBinding.

func (*ServiceBinding) GetWriteConnectionSecretToReference

func (mg *ServiceBinding) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this ServiceBinding.

func (*ServiceBinding) SetConditions

func (mg *ServiceBinding) SetConditions(c ...xpv1.Condition)

SetConditions of this ServiceBinding.

func (*ServiceBinding) SetDeletionPolicy

func (mg *ServiceBinding) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this ServiceBinding.

func (*ServiceBinding) SetDeletionStatusIfNotDeleted

func (sb *ServiceBinding) SetDeletionStatusIfNotDeleted(status string)

func (*ServiceBinding) SetManagementPolicies

func (mg *ServiceBinding) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this ServiceBinding.

func (*ServiceBinding) SetProviderConfigReference

func (mg *ServiceBinding) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this ServiceBinding.

func (*ServiceBinding) SetPublishConnectionDetailsTo

func (mg *ServiceBinding) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this ServiceBinding.

func (*ServiceBinding) SetWriteConnectionSecretToReference

func (mg *ServiceBinding) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this ServiceBinding.

type ServiceBindingList

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

ServiceBindingList contains a list of ServiceBinding

func (*ServiceBindingList) DeepCopy

func (in *ServiceBindingList) DeepCopy() *ServiceBindingList

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

func (*ServiceBindingList) DeepCopyInto

func (in *ServiceBindingList) DeepCopyInto(out *ServiceBindingList)

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

func (*ServiceBindingList) DeepCopyObject

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

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

func (*ServiceBindingList) GetItems

func (l *ServiceBindingList) GetItems() []resource.Managed

GetItems of this ServiceBindingList.

type ServiceBindingObservation

type ServiceBindingObservation struct {
	// +kubebuilder:default:=Pending
	// +required
	State string `json:"state"`
	// +optional
	ServiceBindingID int `json:"serviceBindingID,omitempty"`

	// InstanceID is the ID of the data service instance to bind.
	InstanceID string `json:"instanceId,omitempty"`

	// PlanID is the Plan ID of the data service instance.
	PlanID string `json:"planID,omitempty"`

	// ServiceID is the Service ID of the data service instance.
	ServiceID string `json:"serviceID,omitempty"`

	// ConnectionDetails is a struct that contains the network details of the data service instance.
	ConnectionDetails ConnectionDetails `json:"connectionDetails,omitempty"`
}

ServiceBindingObservation are the observable fields of a ServiceBinding.

func (*ServiceBindingObservation) DeepCopy

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

func (*ServiceBindingObservation) DeepCopyInto

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

func (*ServiceBindingObservation) HasMissingFields

func (sbo *ServiceBindingObservation) HasMissingFields() bool

type ServiceBindingParameters

type ServiceBindingParameters struct {
	// InstanceName is the name of the claim owning the instance to bind to.
	InstanceName string `json:"instanceName"`

	// AcceptsIncomplete requires a client API version >= 2.14.
	//
	// AcceptsIncomplete indicates whether the client can accept asynchronous
	// binding. If the broker cannot fulfill a request synchronously and
	// AcceptsIncomplete is set to false, the broker will reject the request. A
	// broker may choose to response to a request with AcceptsIncomplete set to
	// true either synchronously or asynchronously.
	AcceptsIncomplete bool `json:"acceptsIncomplete"`

	// Deprecated; use bind_resource.app_guid to send this value instead.
	// This field will never be used but for completeness reasons we keep it.
	AppGUID *string `json:"appGuid,omitempty"`

	// BindResource holds extra information about a binding. Optional, but
	// it's complicated.
	BindResource *BindResource `json:"bindResource,omitempty"`

	// Parameters is configuration parameters for the binding. Optional.
	// Parameters are currently unsupported.
	Parameters map[string]string `json:"parameters,omitempty"`

	// Context requires a client API version >= 2.13.
	//
	// Context is platform-specific contextual information under which the
	// service binding is to be created.
	Context map[string]string `json:"context,omitempty"`

	// OriginatingIdentity requires a client API version >= 2.13.
	//
	// OriginatingIdentity is the identity on the platform of the user making
	// this request.
	OriginatingIdentity *OriginatingIdentity `json:"originatingIdentity,omitempty"`

	// Credentials is a free-form hash of credentials that can be used by
	// applications or users to access the service.
	Credentials map[string]string `json:"credentials,omitempty"`
}

func (*ServiceBindingParameters) DeepCopy

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

func (*ServiceBindingParameters) DeepCopyInto

func (in *ServiceBindingParameters) DeepCopyInto(out *ServiceBindingParameters)

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

type ServiceBindingSpec

type ServiceBindingSpec struct {
	xpv1.ResourceSpec `json:",inline"`

	// Instance identifies the Data Service Instance that the ServiceBinding binds to.
	ForProvider ServiceBindingParameters `json:"forProvider"`
}

A ServiceBindingSpec defines the desired state of a ServiceBinding.

func (*ServiceBindingSpec) DeepCopy

func (in *ServiceBindingSpec) DeepCopy() *ServiceBindingSpec

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

func (*ServiceBindingSpec) DeepCopyInto

func (in *ServiceBindingSpec) DeepCopyInto(out *ServiceBindingSpec)

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

type ServiceBindingStatus

type ServiceBindingStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          ServiceBindingObservation `json:"atProvider,omitempty"`
}

A ServiceBindingStatus represents the observed state of a ServiceBinding.

func (*ServiceBindingStatus) DeepCopy

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

func (*ServiceBindingStatus) DeepCopyInto

func (in *ServiceBindingStatus) DeepCopyInto(out *ServiceBindingStatus)

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

Jump to

Keyboard shortcuts

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