Documentation ¶
Overview ¶
Package v1alpha1 contains the v1alpha1 group Sample resources of the PetStore provider. +kubebuilder:object:generate=true +groupName=store.petstore.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Pet
- func (in *Pet) DeepCopy() *Pet
- func (in *Pet) DeepCopyInto(out *Pet)
- func (in *Pet) DeepCopyObject() runtime.Object
- func (mg *Pet) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (mg *Pet) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *Pet) GetProviderConfigReference() *xpv1.Reference
- func (mg *Pet) GetProviderReference() *xpv1.Reference
- func (mg *Pet) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Pet) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (mg *Pet) SetConditions(c ...xpv1.Condition)
- func (mg *Pet) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Pet) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Pet) SetProviderReference(r *xpv1.Reference)
- func (mg *Pet) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Pet) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type PetCategory
- type PetList
- type PetObservation
- type PetParameters
- type PetSpec
- type PetStatus
- type PetTag
Constants ¶
const ( Group = "store.petstore.crossplane.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
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} )
var ( PetKind = reflect.TypeOf(Pet{}).Name() PetGroupKind = schema.GroupKind{Group: Group, Kind: PetKind}.String() PetKindAPIVersion = PetKind + "." + SchemeGroupVersion.String() PetGroupVersionKind = SchemeGroupVersion.WithKind(PetKind) )
Pet type metadata.
Functions ¶
This section is empty.
Types ¶
type Pet ¶
type Pet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PetSpec `json:"spec"` Status PetStatus `json:"status,omitempty"` }
A Pet is an example API type. +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,petstore}
func (*Pet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pet.
func (*Pet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Pet) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Pet) GetCondition ¶
func (mg *Pet) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Pet.
func (*Pet) GetDeletionPolicy ¶
func (mg *Pet) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Pet.
func (*Pet) GetProviderConfigReference ¶
GetProviderConfigReference of this Pet.
func (*Pet) GetProviderReference ¶
GetProviderReference of this Pet. Deprecated: Use GetProviderConfigReference.
func (*Pet) GetPublishConnectionDetailsTo ¶
func (mg *Pet) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Pet.
func (*Pet) GetWriteConnectionSecretToReference ¶
func (mg *Pet) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Pet.
func (*Pet) SetConditions ¶
SetConditions of this Pet.
func (*Pet) SetDeletionPolicy ¶
func (mg *Pet) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Pet.
func (*Pet) SetProviderConfigReference ¶
SetProviderConfigReference of this Pet.
func (*Pet) SetProviderReference ¶
SetProviderReference of this Pet. Deprecated: Use SetProviderConfigReference.
func (*Pet) SetPublishConnectionDetailsTo ¶
func (mg *Pet) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Pet.
func (*Pet) SetWriteConnectionSecretToReference ¶
func (mg *Pet) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Pet.
type PetCategory ¶
type PetCategory struct { // The id of the pet category Id int64 `json:"id"` // The name of the pet category Name string `json:"name"` }
func (*PetCategory) DeepCopy ¶
func (in *PetCategory) DeepCopy() *PetCategory
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PetCategory.
func (*PetCategory) DeepCopyInto ¶
func (in *PetCategory) DeepCopyInto(out *PetCategory)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PetList ¶
type PetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Pet `json:"items"` }
PetList contains a list of Pet
func (*PetList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PetList.
func (*PetList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PetList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PetObservation ¶
type PetObservation struct { // Id of the pet Id int64 `json:"id,omitempty"` // Status of the pet // +kubebuilder:validation:Enum=AVAILABLE;INPROGRESS;INACTIVE;PENDING;FAILED Status string `json:"status,omitempty"` }
PetObservation keeps the state of external resource
func (*PetObservation) DeepCopy ¶
func (in *PetObservation) DeepCopy() *PetObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PetObservation.
func (*PetObservation) DeepCopyInto ¶
func (in *PetObservation) DeepCopyInto(out *PetObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PetParameters ¶
type PetParameters struct { // The name of the Pet // +optional Name string `json:"name,omitempty"` // Category og the Pet // +optional Category *PetCategory `json:"category,omitempty"` // List of the pet tags // +optional Tags []PetTag `json:"tags,omitempty"` // List of pet photos url // +optional PhotoUrls []string `json:"photosUrls,omitempty"` }
PetParameters define the desired state of an pet
func (*PetParameters) DeepCopy ¶
func (in *PetParameters) DeepCopy() *PetParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PetParameters.
func (*PetParameters) DeepCopyInto ¶
func (in *PetParameters) DeepCopyInto(out *PetParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PetSpec ¶
type PetSpec struct { xpv1.ResourceSpec `json:",inline"` ForProvider PetParameters `json:"forProvider"` }
A PetSpec defines the desired state of a Pet.
func (*PetSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PetSpec.
func (*PetSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PetStatus ¶
type PetStatus struct { xpv1.ResourceStatus `json:",inline"` AtProvider PetObservation `json:"atProvider,omitempty"` }
A PetStatus represents the observed state of a Pet.
func (*PetStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PetStatus.
func (*PetStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PetTag ¶
type PetTag struct { // The id of the pet tag Id int64 `json:"id"` // The name of the pet tag Name string `json:"name"` }
func (*PetTag) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PetTag.
func (*PetTag) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.