Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true +groupName=core.oam.dev
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( GroupVersionKind = schema.GroupVersionKind{ Group: "core.oam.dev", Kind: "ServiceBinding", Version: "v1alpha1", } // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: GroupVersionKind.Group, Version: GroupVersionKind.Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Binding struct { // Source indicates the source object to get binding data from. From DataSource `json:"from,omitempty"` // Target indicates the target objects to inject the binding data to. To DataTarget `json:"to,omitempty"` ContainerSelector *ContainerSelector `json:"containerSelector,omitempty"` }
func (*Binding) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Binding.
func (*Binding) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerSelector ¶
type ContainerSelector struct {
ByNames []string `json:"byNames,omitempty"`
}
func (*ContainerSelector) DeepCopy ¶
func (in *ContainerSelector) DeepCopy() *ContainerSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerSelector.
func (*ContainerSelector) DeepCopyInto ¶
func (in *ContainerSelector) DeepCopyInto(out *ContainerSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DataSource ¶
type DataSource struct { Secret *SecretSource `json:"secret,omitempty"` Volume *VolumeSource `json:"volume,omitempty"` }
func (*DataSource) DeepCopy ¶
func (in *DataSource) DeepCopy() *DataSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataSource.
func (*DataSource) DeepCopyInto ¶
func (in *DataSource) DeepCopyInto(out *DataSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DataTarget ¶
type DataTarget struct { // The path of the file where the data source is mounted. FilePath string `json:"filePath,omitempty"` // Env indicates whether to inject all `K=V` pairs from data source into environment variables. Env bool `json:"env,omitempty"` }
Target defines what target objects to inject the binding data to.
func (*DataTarget) DeepCopy ¶
func (in *DataTarget) DeepCopy() *DataTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataTarget.
func (*DataTarget) DeepCopyInto ¶
func (in *DataTarget) DeepCopyInto(out *DataTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretNameFromField ¶
type SecretNameFromField struct { // APIVersion of the referenced workload. APIVersion string `json:"apiVersion,omitempty"` // Kind of the referenced workload. Kind string `json:"kind,omitempty"` // Name of the referenced workload. Name string `json:"name,omitempty"` // The path of the field whose value is the secret name. E.g. ".status.secret". FieldPath string `json:"fieldPath,omitempty"` }
func (*SecretNameFromField) DeepCopy ¶
func (in *SecretNameFromField) DeepCopy() *SecretNameFromField
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretNameFromField.
func (*SecretNameFromField) DeepCopyInto ¶
func (in *SecretNameFromField) DeepCopyInto(out *SecretNameFromField)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretSource ¶
type SecretSource struct { // NameFromField indicates the object field where the secret name is written. NameFromField *SecretNameFromField `json:"nameFromField,omitempty"` // Name of the secret. Name string `json:"name,omitempty"` }
func (*SecretSource) DeepCopy ¶
func (in *SecretSource) DeepCopy() *SecretSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretSource.
func (*SecretSource) DeepCopyInto ¶
func (in *SecretSource) DeepCopyInto(out *SecretSource)
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,omitempty"` Status ServiceBindingStatus `json:"status,omitempty"` }
ServiceBinding is the Schema for the servicebindings API
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.
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.
type ServiceBindingSpec ¶
type ServiceBindingSpec struct { Bindings []Binding `json:"bindings,omitempty"` WorkloadRef *WorkloadReference `json:"workloadRef,omitempty"` }
ServiceBindingSpec defines the desired state of 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 { }
func (*ServiceBindingStatus) DeepCopy ¶
func (in *ServiceBindingStatus) DeepCopy() *ServiceBindingStatus
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.
type VolumeSource ¶
type VolumeSource struct { // PVCName indicates the name of the PVC as the volume source to inject. PVCName string `json:"pvcName,omitempty"` }
func (*VolumeSource) DeepCopy ¶
func (in *VolumeSource) DeepCopy() *VolumeSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSource.
func (*VolumeSource) DeepCopyInto ¶
func (in *VolumeSource) DeepCopyInto(out *VolumeSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadReference ¶
type WorkloadReference struct { // APIVersion of the referenced workload. APIVersion string `json:"apiVersion"` // Kind of the referenced workload. Kind string `json:"kind"` // Name of the referenced workload. Name string `json:"name"` }
A WorkloadReference refers to an OAM workload resource.
func (*WorkloadReference) DeepCopy ¶
func (in *WorkloadReference) DeepCopy() *WorkloadReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadReference.
func (*WorkloadReference) DeepCopyInto ¶
func (in *WorkloadReference) DeepCopyInto(out *WorkloadReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.