v1alpha1

package
v0.0.0-...-2bea0bf Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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

View Source
const (
	Group   = "store.petstore.crossplane.io"
	Version = "v1alpha1"
)

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 (
	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

func (in *Pet) DeepCopy() *Pet

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

func (*Pet) DeepCopyInto

func (in *Pet) DeepCopyInto(out *Pet)

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

func (*Pet) DeepCopyObject

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

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

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

GetProviderConfigReference of this Pet.

func (*Pet) GetProviderReference

func (mg *Pet) GetProviderReference() *xpv1.Reference

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

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

SetConditions of this Pet.

func (*Pet) SetDeletionPolicy

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

SetDeletionPolicy of this Pet.

func (*Pet) SetProviderConfigReference

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

SetProviderConfigReference of this Pet.

func (*Pet) SetProviderReference

func (mg *Pet) SetProviderReference(r *xpv1.Reference)

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

func (in *PetList) DeepCopy() *PetList

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

func (*PetList) DeepCopyInto

func (in *PetList) DeepCopyInto(out *PetList)

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

func (*PetList) DeepCopyObject

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

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

func (*PetList) GetItems

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

GetItems of this PetList.

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

func (in *PetSpec) DeepCopy() *PetSpec

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

func (*PetSpec) DeepCopyInto

func (in *PetSpec) DeepCopyInto(out *PetSpec)

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

func (in *PetStatus) DeepCopy() *PetStatus

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

func (*PetStatus) DeepCopyInto

func (in *PetStatus) DeepCopyInto(out *PetStatus)

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

func (in *PetTag) DeepCopy() *PetTag

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

func (*PetTag) DeepCopyInto

func (in *PetTag) DeepCopyInto(out *PetTag)

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