Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=gitrepository.spikeidp.cit.com +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type InitializationInitParameters
- type InitializationObservation
- type InitializationParameters
- type Repository
- func (in *Repository) DeepCopy() *Repository
- func (in *Repository) DeepCopyInto(out *Repository)
- func (in *Repository) DeepCopyObject() runtime.Object
- func (mg *Repository) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Repository) GetConnectionDetailsMapping() map[string]string
- func (mg *Repository) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Repository) GetID() string
- func (tr *Repository) GetInitParameters() (map[string]any, error)
- func (mg *Repository) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Repository) GetObservation() (map[string]any, error)
- func (tr *Repository) GetParameters() (map[string]any, error)
- func (mg *Repository) GetProviderConfigReference() *xpv1.Reference
- func (mg *Repository) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Repository) GetTerraformResourceType() string
- func (tr *Repository) GetTerraformSchemaVersion() int
- func (mg *Repository) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Repository) LateInitialize(attrs []byte) (bool, error)
- func (mg *Repository) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Repository) SetConditions(c ...xpv1.Condition)
- func (mg *Repository) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Repository) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Repository) SetObservation(obs map[string]any) error
- func (tr *Repository) SetParameters(params map[string]any) error
- func (mg *Repository) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Repository) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Repository) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type RepositoryInitParameters
- type RepositoryList
- type RepositoryObservation
- type RepositoryParameters
- type RepositorySpec
- type RepositoryStatus
Constants ¶
const ( CRDGroup = "gitrepository.spikeidp.cit.com" 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 ( Repository_Kind = "Repository" Repository_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Repository_Kind}.String() Repository_KindAPIVersion = Repository_Kind + "." + CRDGroupVersion.String() Repository_GroupVersionKind = CRDGroupVersion.WithKind(Repository_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type InitializationInitParameters ¶
type InitializationInitParameters struct { // The type of repository to create. Valid values: Uninitialized, Clean or Import. InitType *string `json:"initType,omitempty" tf:"init_type,omitempty"` // The id of service connection used to authenticate to a private repository for import initialization. ServiceConnectionID *string `json:"serviceConnectionId,omitempty" tf:"service_connection_id,omitempty"` // Type of the source repository. Used if the init_type is Import. Valid values: Git. SourceType *string `json:"sourceType,omitempty" tf:"source_type,omitempty"` // The URL of the source repository. Used if the init_type is Import. SourceURL *string `json:"sourceUrl,omitempty" tf:"source_url,omitempty"` }
func (*InitializationInitParameters) DeepCopy ¶
func (in *InitializationInitParameters) DeepCopy() *InitializationInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InitializationInitParameters.
func (*InitializationInitParameters) DeepCopyInto ¶
func (in *InitializationInitParameters) DeepCopyInto(out *InitializationInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InitializationObservation ¶
type InitializationObservation struct { // The type of repository to create. Valid values: Uninitialized, Clean or Import. InitType *string `json:"initType,omitempty" tf:"init_type,omitempty"` // The id of service connection used to authenticate to a private repository for import initialization. ServiceConnectionID *string `json:"serviceConnectionId,omitempty" tf:"service_connection_id,omitempty"` // Type of the source repository. Used if the init_type is Import. Valid values: Git. SourceType *string `json:"sourceType,omitempty" tf:"source_type,omitempty"` // The URL of the source repository. Used if the init_type is Import. SourceURL *string `json:"sourceUrl,omitempty" tf:"source_url,omitempty"` }
func (*InitializationObservation) DeepCopy ¶
func (in *InitializationObservation) DeepCopy() *InitializationObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InitializationObservation.
func (*InitializationObservation) DeepCopyInto ¶
func (in *InitializationObservation) DeepCopyInto(out *InitializationObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InitializationParameters ¶
type InitializationParameters struct { // The type of repository to create. Valid values: Uninitialized, Clean or Import. // +kubebuilder:validation:Optional InitType *string `json:"initType" tf:"init_type,omitempty"` // The id of service connection used to authenticate to a private repository for import initialization. // +kubebuilder:validation:Optional ServiceConnectionID *string `json:"serviceConnectionId,omitempty" tf:"service_connection_id,omitempty"` // Type of the source repository. Used if the init_type is Import. Valid values: Git. // +kubebuilder:validation:Optional SourceType *string `json:"sourceType,omitempty" tf:"source_type,omitempty"` // The URL of the source repository. Used if the init_type is Import. // +kubebuilder:validation:Optional SourceURL *string `json:"sourceUrl,omitempty" tf:"source_url,omitempty"` }
func (*InitializationParameters) DeepCopy ¶
func (in *InitializationParameters) DeepCopy() *InitializationParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InitializationParameters.
func (*InitializationParameters) DeepCopyInto ¶
func (in *InitializationParameters) DeepCopyInto(out *InitializationParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Repository ¶
type Repository 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.initialization) || (has(self.initProvider) && has(self.initProvider.initialization))",message="spec.forProvider.initialization is a required parameter" // +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 RepositorySpec `json:"spec"` Status RepositoryStatus `json:"status,omitempty"` }
Repository is the Schema for the Repositorys API. Manages a git repository within Azure DevOps organization. +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,azure-devops}
func (*Repository) DeepCopy ¶
func (in *Repository) DeepCopy() *Repository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repository.
func (*Repository) DeepCopyInto ¶
func (in *Repository) DeepCopyInto(out *Repository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Repository) DeepCopyObject ¶
func (in *Repository) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Repository) GetCondition ¶
func (mg *Repository) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Repository.
func (*Repository) GetConnectionDetailsMapping ¶
func (tr *Repository) GetConnectionDetailsMapping() map[string]string
GetConnectionDetailsMapping for this Repository
func (*Repository) GetDeletionPolicy ¶
func (mg *Repository) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Repository.
func (*Repository) GetID ¶
func (tr *Repository) GetID() string
GetID returns ID of underlying Terraform resource of this Repository
func (*Repository) GetInitParameters ¶
func (tr *Repository) GetInitParameters() (map[string]any, error)
GetInitParameters of this Repository
func (*Repository) GetManagementPolicies ¶
func (mg *Repository) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Repository.
func (*Repository) GetObservation ¶
func (tr *Repository) GetObservation() (map[string]any, error)
GetObservation of this Repository
func (*Repository) GetParameters ¶
func (tr *Repository) GetParameters() (map[string]any, error)
GetParameters of this Repository
func (*Repository) GetProviderConfigReference ¶
func (mg *Repository) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this Repository.
func (*Repository) GetPublishConnectionDetailsTo ¶
func (mg *Repository) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Repository.
func (*Repository) GetTerraformResourceType ¶
func (mg *Repository) GetTerraformResourceType() string
GetTerraformResourceType returns Terraform resource type for this Repository
func (*Repository) GetTerraformSchemaVersion ¶
func (tr *Repository) GetTerraformSchemaVersion() int
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Repository) GetWriteConnectionSecretToReference ¶
func (mg *Repository) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Repository.
func (*Repository) LateInitialize ¶
func (tr *Repository) LateInitialize(attrs []byte) (bool, error)
LateInitialize this Repository using its observed tfState. returns True if there are any spec changes for the resource.
func (*Repository) ResolveReferences ¶
ResolveReferences of this Repository.
func (*Repository) SetConditions ¶
func (mg *Repository) SetConditions(c ...xpv1.Condition)
SetConditions of this Repository.
func (*Repository) SetDeletionPolicy ¶
func (mg *Repository) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Repository.
func (*Repository) SetManagementPolicies ¶
func (mg *Repository) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Repository.
func (*Repository) SetObservation ¶
func (tr *Repository) SetObservation(obs map[string]any) error
SetObservation for this Repository
func (*Repository) SetParameters ¶
func (tr *Repository) SetParameters(params map[string]any) error
SetParameters for this Repository
func (*Repository) SetProviderConfigReference ¶
func (mg *Repository) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this Repository.
func (*Repository) SetPublishConnectionDetailsTo ¶
func (mg *Repository) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Repository.
func (*Repository) SetWriteConnectionSecretToReference ¶
func (mg *Repository) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Repository.
type RepositoryInitParameters ¶
type RepositoryInitParameters struct { // The ref of the default branch. Will be used as the branch name for initialized repositories. DefaultBranch *string `json:"defaultBranch,omitempty" tf:"default_branch,omitempty"` // An initialization block as documented below. Initialization []InitializationInitParameters `json:"initialization,omitempty" tf:"initialization,omitempty"` // The name of the git repository. Name *string `json:"name,omitempty" tf:"name,omitempty"` // The ID of a Git project from which a fork is to be created. ParentRepositoryID *string `json:"parentRepositoryId,omitempty" tf:"parent_repository_id,omitempty"` }
func (*RepositoryInitParameters) DeepCopy ¶
func (in *RepositoryInitParameters) DeepCopy() *RepositoryInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryInitParameters.
func (*RepositoryInitParameters) DeepCopyInto ¶
func (in *RepositoryInitParameters) DeepCopyInto(out *RepositoryInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryList ¶
type RepositoryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Repository `json:"items"` }
RepositoryList contains a list of Repositorys
func (*RepositoryList) DeepCopy ¶
func (in *RepositoryList) DeepCopy() *RepositoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryList.
func (*RepositoryList) DeepCopyInto ¶
func (in *RepositoryList) DeepCopyInto(out *RepositoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RepositoryList) DeepCopyObject ¶
func (in *RepositoryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RepositoryList) GetItems ¶
func (l *RepositoryList) GetItems() []resource.Managed
GetItems of this RepositoryList.
type RepositoryObservation ¶
type RepositoryObservation struct { // The ref of the default branch. Will be used as the branch name for initialized repositories. DefaultBranch *string `json:"defaultBranch,omitempty" tf:"default_branch,omitempty"` // Is the repository disabled? Disabled *bool `json:"disabled,omitempty" tf:"disabled,omitempty"` // The ID of the Git repository. ID *string `json:"id,omitempty" tf:"id,omitempty"` // An initialization block as documented below. Initialization []InitializationObservation `json:"initialization,omitempty" tf:"initialization,omitempty"` // True if the repository was created as a fork. IsFork *bool `json:"isFork,omitempty" tf:"is_fork,omitempty"` // The name of the git repository. Name *string `json:"name,omitempty" tf:"name,omitempty"` // The ID of a Git project from which a fork is to be created. ParentRepositoryID *string `json:"parentRepositoryId,omitempty" tf:"parent_repository_id,omitempty"` // The project ID or project name. ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"` // Git HTTPS URL of the repository RemoteURL *string `json:"remoteUrl,omitempty" tf:"remote_url,omitempty"` // Git SSH URL of the repository. SSHURL *string `json:"sshUrl,omitempty" tf:"ssh_url,omitempty"` // Size in bytes. Size *float64 `json:"size,omitempty" tf:"size,omitempty"` // REST API URL of the repository. URL *string `json:"url,omitempty" tf:"url,omitempty"` // Web link to the repository. WebURL *string `json:"webUrl,omitempty" tf:"web_url,omitempty"` }
func (*RepositoryObservation) DeepCopy ¶
func (in *RepositoryObservation) DeepCopy() *RepositoryObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryObservation.
func (*RepositoryObservation) DeepCopyInto ¶
func (in *RepositoryObservation) DeepCopyInto(out *RepositoryObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryParameters ¶
type RepositoryParameters struct { // The ref of the default branch. Will be used as the branch name for initialized repositories. // +kubebuilder:validation:Optional DefaultBranch *string `json:"defaultBranch,omitempty" tf:"default_branch,omitempty"` // An initialization block as documented below. // +kubebuilder:validation:Optional Initialization []InitializationParameters `json:"initialization,omitempty" tf:"initialization,omitempty"` // The name of the git repository. // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` // The ID of a Git project from which a fork is to be created. // +kubebuilder:validation:Optional ParentRepositoryID *string `json:"parentRepositoryId,omitempty" tf:"parent_repository_id,omitempty"` // The project ID or project name. // +crossplane:generate:reference:type=github.com/spikeidp/provider-azure-devops/apis/project/v1alpha1.Project // +kubebuilder:validation:Optional ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"` // Reference to a Project in project to populate projectId. // +kubebuilder:validation:Optional ProjectIDRef *v1.Reference `json:"projectIdRef,omitempty" tf:"-"` // Selector for a Project in project to populate projectId. // +kubebuilder:validation:Optional ProjectIDSelector *v1.Selector `json:"projectIdSelector,omitempty" tf:"-"` }
func (*RepositoryParameters) DeepCopy ¶
func (in *RepositoryParameters) DeepCopy() *RepositoryParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryParameters.
func (*RepositoryParameters) DeepCopyInto ¶
func (in *RepositoryParameters) DeepCopyInto(out *RepositoryParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositorySpec ¶
type RepositorySpec struct { v1.ResourceSpec `json:",inline"` ForProvider RepositoryParameters `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 RepositoryInitParameters `json:"initProvider,omitempty"` }
RepositorySpec defines the desired state of Repository
func (*RepositorySpec) DeepCopy ¶
func (in *RepositorySpec) DeepCopy() *RepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositorySpec.
func (*RepositorySpec) DeepCopyInto ¶
func (in *RepositorySpec) DeepCopyInto(out *RepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryStatus ¶
type RepositoryStatus struct { v1.ResourceStatus `json:",inline"` AtProvider RepositoryObservation `json:"atProvider,omitempty"` }
RepositoryStatus defines the observed state of Repository.
func (*RepositoryStatus) DeepCopy ¶
func (in *RepositoryStatus) DeepCopy() *RepositoryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryStatus.
func (*RepositoryStatus) DeepCopyInto ¶
func (in *RepositoryStatus) DeepCopyInto(out *RepositoryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.