Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=gitrepositorybranch.chelala.one +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type RepositoryBranch
- func (in *RepositoryBranch) DeepCopy() *RepositoryBranch
- func (in *RepositoryBranch) DeepCopyInto(out *RepositoryBranch)
- func (in *RepositoryBranch) DeepCopyObject() runtime.Object
- func (mg *RepositoryBranch) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *RepositoryBranch) GetConnectionDetailsMapping() map[string]string
- func (mg *RepositoryBranch) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *RepositoryBranch) GetID() string
- func (tr *RepositoryBranch) GetInitParameters() (map[string]any, error)
- func (mg *RepositoryBranch) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *RepositoryBranch) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *RepositoryBranch) GetObservation() (map[string]any, error)
- func (tr *RepositoryBranch) GetParameters() (map[string]any, error)
- func (mg *RepositoryBranch) GetProviderConfigReference() *xpv1.Reference
- func (mg *RepositoryBranch) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *RepositoryBranch) GetTerraformResourceType() string
- func (tr *RepositoryBranch) GetTerraformSchemaVersion() int
- func (mg *RepositoryBranch) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *RepositoryBranch) LateInitialize(attrs []byte) (bool, error)
- func (mg *RepositoryBranch) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *RepositoryBranch) SetConditions(c ...xpv1.Condition)
- func (mg *RepositoryBranch) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *RepositoryBranch) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *RepositoryBranch) SetObservation(obs map[string]any) error
- func (tr *RepositoryBranch) SetParameters(params map[string]any) error
- func (mg *RepositoryBranch) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *RepositoryBranch) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *RepositoryBranch) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type RepositoryBranchInitParameters
- type RepositoryBranchList
- type RepositoryBranchObservation
- type RepositoryBranchParameters
- type RepositoryBranchSpec
- type RepositoryBranchStatus
Constants ¶
const ( CRDGroup = "gitrepositorybranch.chelala.one" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // CRDGroupVersion is the API Group Version used to register the objects CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( RepositoryBranch_Kind = "RepositoryBranch" RepositoryBranch_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: RepositoryBranch_Kind}.String() RepositoryBranch_KindAPIVersion = RepositoryBranch_Kind + "." + CRDGroupVersion.String() RepositoryBranch_GroupVersionKind = CRDGroupVersion.WithKind(RepositoryBranch_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type RepositoryBranch ¶
type RepositoryBranch struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" Spec RepositoryBranchSpec `json:"spec"` Status RepositoryBranchStatus `json:"status,omitempty"` }
RepositoryBranch is the Schema for the RepositoryBranchs API. Manages a Git Repository Branch. +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,azuredevops}
func (*RepositoryBranch) DeepCopy ¶
func (in *RepositoryBranch) DeepCopy() *RepositoryBranch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryBranch.
func (*RepositoryBranch) DeepCopyInto ¶
func (in *RepositoryBranch) DeepCopyInto(out *RepositoryBranch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RepositoryBranch) DeepCopyObject ¶
func (in *RepositoryBranch) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RepositoryBranch) GetCondition ¶
func (mg *RepositoryBranch) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this RepositoryBranch.
func (*RepositoryBranch) GetConnectionDetailsMapping ¶
func (tr *RepositoryBranch) GetConnectionDetailsMapping() map[string]string
GetConnectionDetailsMapping for this RepositoryBranch
func (*RepositoryBranch) GetDeletionPolicy ¶
func (mg *RepositoryBranch) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this RepositoryBranch.
func (*RepositoryBranch) GetID ¶
func (tr *RepositoryBranch) GetID() string
GetID returns ID of underlying Terraform resource of this RepositoryBranch
func (*RepositoryBranch) GetInitParameters ¶
func (tr *RepositoryBranch) GetInitParameters() (map[string]any, error)
GetInitParameters of this RepositoryBranch
func (*RepositoryBranch) GetManagementPolicies ¶
func (mg *RepositoryBranch) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this RepositoryBranch.
func (*RepositoryBranch) GetMergedParameters ¶
func (tr *RepositoryBranch) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
GetInitParameters of this RepositoryBranch
func (*RepositoryBranch) GetObservation ¶
func (tr *RepositoryBranch) GetObservation() (map[string]any, error)
GetObservation of this RepositoryBranch
func (*RepositoryBranch) GetParameters ¶
func (tr *RepositoryBranch) GetParameters() (map[string]any, error)
GetParameters of this RepositoryBranch
func (*RepositoryBranch) GetProviderConfigReference ¶
func (mg *RepositoryBranch) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this RepositoryBranch.
func (*RepositoryBranch) GetPublishConnectionDetailsTo ¶
func (mg *RepositoryBranch) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this RepositoryBranch.
func (*RepositoryBranch) GetTerraformResourceType ¶
func (mg *RepositoryBranch) GetTerraformResourceType() string
GetTerraformResourceType returns Terraform resource type for this RepositoryBranch
func (*RepositoryBranch) GetTerraformSchemaVersion ¶
func (tr *RepositoryBranch) GetTerraformSchemaVersion() int
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*RepositoryBranch) GetWriteConnectionSecretToReference ¶
func (mg *RepositoryBranch) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this RepositoryBranch.
func (*RepositoryBranch) LateInitialize ¶
func (tr *RepositoryBranch) LateInitialize(attrs []byte) (bool, error)
LateInitialize this RepositoryBranch using its observed tfState. returns True if there are any spec changes for the resource.
func (*RepositoryBranch) ResolveReferences ¶
ResolveReferences of this RepositoryBranch.
func (*RepositoryBranch) SetConditions ¶
func (mg *RepositoryBranch) SetConditions(c ...xpv1.Condition)
SetConditions of this RepositoryBranch.
func (*RepositoryBranch) SetDeletionPolicy ¶
func (mg *RepositoryBranch) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this RepositoryBranch.
func (*RepositoryBranch) SetManagementPolicies ¶
func (mg *RepositoryBranch) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this RepositoryBranch.
func (*RepositoryBranch) SetObservation ¶
func (tr *RepositoryBranch) SetObservation(obs map[string]any) error
SetObservation for this RepositoryBranch
func (*RepositoryBranch) SetParameters ¶
func (tr *RepositoryBranch) SetParameters(params map[string]any) error
SetParameters for this RepositoryBranch
func (*RepositoryBranch) SetProviderConfigReference ¶
func (mg *RepositoryBranch) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this RepositoryBranch.
func (*RepositoryBranch) SetPublishConnectionDetailsTo ¶
func (mg *RepositoryBranch) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this RepositoryBranch.
func (*RepositoryBranch) SetWriteConnectionSecretToReference ¶
func (mg *RepositoryBranch) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this RepositoryBranch.
type RepositoryBranchInitParameters ¶
type RepositoryBranchInitParameters struct { // The name of the branch in short format not prefixed with refs/heads/. Name *string `json:"name,omitempty" tf:"name,omitempty"` // The commit object ID to create the branch from. Conflict with ref_branch, ref_tag. RefCommitID *string `json:"refCommitId,omitempty" tf:"ref_commit_id,omitempty"` // The reference to the tag to create the branch from, in <name> or refs/tags/<name> format. Conflict with ref_branch, ref_commit_id. RefTag *string `json:"refTag,omitempty" tf:"ref_tag,omitempty"` }
func (*RepositoryBranchInitParameters) DeepCopy ¶
func (in *RepositoryBranchInitParameters) DeepCopy() *RepositoryBranchInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryBranchInitParameters.
func (*RepositoryBranchInitParameters) DeepCopyInto ¶
func (in *RepositoryBranchInitParameters) DeepCopyInto(out *RepositoryBranchInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryBranchList ¶
type RepositoryBranchList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RepositoryBranch `json:"items"` }
RepositoryBranchList contains a list of RepositoryBranchs
func (*RepositoryBranchList) DeepCopy ¶
func (in *RepositoryBranchList) DeepCopy() *RepositoryBranchList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryBranchList.
func (*RepositoryBranchList) DeepCopyInto ¶
func (in *RepositoryBranchList) DeepCopyInto(out *RepositoryBranchList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RepositoryBranchList) DeepCopyObject ¶
func (in *RepositoryBranchList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RepositoryBranchList) GetItems ¶
func (l *RepositoryBranchList) GetItems() []resource.Managed
GetItems of this RepositoryBranchList.
type RepositoryBranchObservation ¶
type RepositoryBranchObservation struct { // The ID of the Git Repository Branch, in the format <repository_id>:<name>. ID *string `json:"id,omitempty" tf:"id,omitempty"` // The commit object ID of last commit on the branch. LastCommitID *string `json:"lastCommitId,omitempty" tf:"last_commit_id,omitempty"` // The name of the branch in short format not prefixed with refs/heads/. Name *string `json:"name,omitempty" tf:"name,omitempty"` // The reference to the source branch to create the branch from, in <name> or refs/heads/<name> format. Conflict with ref_tag, ref_commit_id. RefBranch *string `json:"refBranch,omitempty" tf:"ref_branch,omitempty"` // The commit object ID to create the branch from. Conflict with ref_branch, ref_tag. RefCommitID *string `json:"refCommitId,omitempty" tf:"ref_commit_id,omitempty"` // The reference to the tag to create the branch from, in <name> or refs/tags/<name> format. Conflict with ref_branch, ref_commit_id. RefTag *string `json:"refTag,omitempty" tf:"ref_tag,omitempty"` // The ID of the repository the branch is created against. RepositoryID *string `json:"repositoryId,omitempty" tf:"repository_id,omitempty"` }
func (*RepositoryBranchObservation) DeepCopy ¶
func (in *RepositoryBranchObservation) DeepCopy() *RepositoryBranchObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryBranchObservation.
func (*RepositoryBranchObservation) DeepCopyInto ¶
func (in *RepositoryBranchObservation) DeepCopyInto(out *RepositoryBranchObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryBranchParameters ¶
type RepositoryBranchParameters struct { // The name of the branch in short format not prefixed with refs/heads/. // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` // The reference to the source branch to create the branch from, in <name> or refs/heads/<name> format. Conflict with ref_tag, ref_commit_id. // +crossplane:generate:reference:type=github.com/chelala/provider-azuredevops/apis/gitrepositorybranch/v1alpha1.RepositoryBranch // +kubebuilder:validation:Optional RefBranch *string `json:"refBranch,omitempty" tf:"ref_branch,omitempty"` // Reference to a RepositoryBranch in gitrepositorybranch to populate refBranch. // +kubebuilder:validation:Optional RefBranchRef *v1.Reference `json:"refBranchRef,omitempty" tf:"-"` // Selector for a RepositoryBranch in gitrepositorybranch to populate refBranch. // +kubebuilder:validation:Optional RefBranchSelector *v1.Selector `json:"refBranchSelector,omitempty" tf:"-"` // The commit object ID to create the branch from. Conflict with ref_branch, ref_tag. // +kubebuilder:validation:Optional RefCommitID *string `json:"refCommitId,omitempty" tf:"ref_commit_id,omitempty"` // The reference to the tag to create the branch from, in <name> or refs/tags/<name> format. Conflict with ref_branch, ref_commit_id. // +kubebuilder:validation:Optional RefTag *string `json:"refTag,omitempty" tf:"ref_tag,omitempty"` // The ID of the repository the branch is created against. // +crossplane:generate:reference:type=github.com/chelala/provider-azuredevops/apis/gitrepository/v1alpha1.Repository // +crossplane:generate:reference:extractor=github.com/chelala/provider-azuredevops/apis/gitrepository/v1alpha1.ExtractResourceID() // +kubebuilder:validation:Optional RepositoryID *string `json:"repositoryId,omitempty" tf:"repository_id,omitempty"` // Reference to a Repository in gitrepository to populate repositoryId. // +kubebuilder:validation:Optional RepositoryIDRef *v1.Reference `json:"repositoryIdRef,omitempty" tf:"-"` // Selector for a Repository in gitrepository to populate repositoryId. // +kubebuilder:validation:Optional RepositoryIDSelector *v1.Selector `json:"repositoryIdSelector,omitempty" tf:"-"` }
func (*RepositoryBranchParameters) DeepCopy ¶
func (in *RepositoryBranchParameters) DeepCopy() *RepositoryBranchParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryBranchParameters.
func (*RepositoryBranchParameters) DeepCopyInto ¶
func (in *RepositoryBranchParameters) DeepCopyInto(out *RepositoryBranchParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryBranchSpec ¶
type RepositoryBranchSpec struct { v1.ResourceSpec `json:",inline"` ForProvider RepositoryBranchParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception // of Identifier and other resource reference fields. The fields that are // in InitProvider are merged into ForProvider when the resource is created. // The same fields are also added to the terraform ignore_changes hook, to // avoid updating them after creation. This is useful for fields that are // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. InitProvider RepositoryBranchInitParameters `json:"initProvider,omitempty"` }
RepositoryBranchSpec defines the desired state of RepositoryBranch
func (*RepositoryBranchSpec) DeepCopy ¶
func (in *RepositoryBranchSpec) DeepCopy() *RepositoryBranchSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryBranchSpec.
func (*RepositoryBranchSpec) DeepCopyInto ¶
func (in *RepositoryBranchSpec) DeepCopyInto(out *RepositoryBranchSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryBranchStatus ¶
type RepositoryBranchStatus struct { v1.ResourceStatus `json:",inline"` AtProvider RepositoryBranchObservation `json:"atProvider,omitempty"` }
RepositoryBranchStatus defines the observed state of RepositoryBranch.
func (*RepositoryBranchStatus) DeepCopy ¶
func (in *RepositoryBranchStatus) DeepCopy() *RepositoryBranchStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryBranchStatus.
func (*RepositoryBranchStatus) DeepCopyInto ¶
func (in *RepositoryBranchStatus) DeepCopyInto(out *RepositoryBranchStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.