v1alpha1

package
v0.0.0-...-1c5cf69 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=branch.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "branch.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	Branch_Kind             = "Branch"
	Branch_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Branch_Kind}.String()
	Branch_KindAPIVersion   = Branch_Kind + "." + CRDGroupVersion.String()
	Branch_GroupVersionKind = CRDGroupVersion.WithKind(Branch_Kind)
)

Repository type metadata.

View Source
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
)

Functions

This section is empty.

Types

type Branch

type Branch struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              BranchSpec   `json:"spec"`
	Status            BranchStatus `json:"status,omitempty"`
}

Branch is the Schema for the Branchs API. Creates and manages branches within GitHub repositories. +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,github}

func (*Branch) DeepCopy

func (in *Branch) DeepCopy() *Branch

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

func (*Branch) DeepCopyInto

func (in *Branch) DeepCopyInto(out *Branch)

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

func (*Branch) DeepCopyObject

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

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

func (*Branch) GetCondition

func (mg *Branch) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Branch.

func (*Branch) GetConnectionDetailsMapping

func (tr *Branch) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Branch

func (*Branch) GetDeletionPolicy

func (mg *Branch) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Branch.

func (*Branch) GetID

func (tr *Branch) GetID() string

GetID returns ID of underlying Terraform resource of this Branch

func (*Branch) GetManagementPolicy

func (mg *Branch) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this Branch.

func (*Branch) GetObservation

func (tr *Branch) GetObservation() (map[string]any, error)

GetObservation of this Branch

func (*Branch) GetParameters

func (tr *Branch) GetParameters() (map[string]any, error)

GetParameters of this Branch

func (*Branch) GetProviderConfigReference

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

GetProviderConfigReference of this Branch.

func (*Branch) GetProviderReference

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

GetProviderReference of this Branch. Deprecated: Use GetProviderConfigReference.

func (*Branch) GetPublishConnectionDetailsTo

func (mg *Branch) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Branch.

func (*Branch) GetTerraformResourceType

func (mg *Branch) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Branch

func (*Branch) GetTerraformSchemaVersion

func (tr *Branch) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Branch) GetWriteConnectionSecretToReference

func (mg *Branch) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Branch.

func (*Branch) LateInitialize

func (tr *Branch) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Branch using its observed tfState. returns True if there are any spec changes for the resource.

func (*Branch) ResolveReferences

func (mg *Branch) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Branch.

func (*Branch) SetConditions

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

SetConditions of this Branch.

func (*Branch) SetDeletionPolicy

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

SetDeletionPolicy of this Branch.

func (*Branch) SetManagementPolicy

func (mg *Branch) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this Branch.

func (*Branch) SetObservation

func (tr *Branch) SetObservation(obs map[string]any) error

SetObservation for this Branch

func (*Branch) SetParameters

func (tr *Branch) SetParameters(params map[string]any) error

SetParameters for this Branch

func (*Branch) SetProviderConfigReference

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

SetProviderConfigReference of this Branch.

func (*Branch) SetProviderReference

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

SetProviderReference of this Branch. Deprecated: Use SetProviderConfigReference.

func (*Branch) SetPublishConnectionDetailsTo

func (mg *Branch) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Branch.

func (*Branch) SetWriteConnectionSecretToReference

func (mg *Branch) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Branch.

type BranchList

type BranchList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Branch `json:"items"`
}

BranchList contains a list of Branchs

func (*BranchList) DeepCopy

func (in *BranchList) DeepCopy() *BranchList

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

func (*BranchList) DeepCopyInto

func (in *BranchList) DeepCopyInto(out *BranchList)

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

func (*BranchList) DeepCopyObject

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

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

func (*BranchList) GetItems

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

GetItems of this BranchList.

type BranchObservation

type BranchObservation struct {

	// An etag representing the Branch object.
	// An etag representing the Branch object.
	Etag *string `json:"etag,omitempty" tf:"etag,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// A string representing a branch reference, in the form of refs/heads/<branch>.
	// A string representing a branch reference, in the form of 'refs/heads/<branch>'.
	Ref *string `json:"ref,omitempty" tf:"ref,omitempty"`

	// The GitHub repository name.
	// The GitHub repository name.
	Repository *string `json:"repository,omitempty" tf:"repository,omitempty"`

	// A string storing the reference's HEAD commit's SHA1.
	// A string storing the reference's HEAD commit's SHA1.
	Sha *string `json:"sha,omitempty" tf:"sha,omitempty"`

	// The branch name to start from. Defaults to main.
	// The branch name to start from. Defaults to 'main'.
	SourceBranch *string `json:"sourceBranch,omitempty" tf:"source_branch,omitempty"`

	// The commit hash to start from. Defaults to the tip of source_branch. If provided, source_branch is ignored.
	// The commit hash to start from. Defaults to the tip of 'source_branch'. If provided, 'source_branch' is ignored.
	SourceSha *string `json:"sourceSha,omitempty" tf:"source_sha,omitempty"`
}

func (*BranchObservation) DeepCopy

func (in *BranchObservation) DeepCopy() *BranchObservation

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

func (*BranchObservation) DeepCopyInto

func (in *BranchObservation) DeepCopyInto(out *BranchObservation)

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

type BranchParameters

type BranchParameters struct {

	// The GitHub repository name.
	// The GitHub repository name.
	// +crossplane:generate:reference:type=github.com/rezamt/provider-github/apis/repository/v1alpha1.Repository
	// +kubebuilder:validation:Optional
	Repository *string `json:"repository,omitempty" tf:"repository,omitempty"`

	// Reference to a Repository in repository to populate repository.
	// +kubebuilder:validation:Optional
	RepositoryRef *v1.Reference `json:"repositoryRef,omitempty" tf:"-"`

	// Selector for a Repository in repository to populate repository.
	// +kubebuilder:validation:Optional
	RepositorySelector *v1.Selector `json:"repositorySelector,omitempty" tf:"-"`

	// The branch name to start from. Defaults to main.
	// The branch name to start from. Defaults to 'main'.
	// +kubebuilder:validation:Optional
	SourceBranch *string `json:"sourceBranch,omitempty" tf:"source_branch,omitempty"`

	// The commit hash to start from. Defaults to the tip of source_branch. If provided, source_branch is ignored.
	// The commit hash to start from. Defaults to the tip of 'source_branch'. If provided, 'source_branch' is ignored.
	// +kubebuilder:validation:Optional
	SourceSha *string `json:"sourceSha,omitempty" tf:"source_sha,omitempty"`
}

func (*BranchParameters) DeepCopy

func (in *BranchParameters) DeepCopy() *BranchParameters

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

func (*BranchParameters) DeepCopyInto

func (in *BranchParameters) DeepCopyInto(out *BranchParameters)

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

type BranchSpec

type BranchSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     BranchParameters `json:"forProvider"`
}

BranchSpec defines the desired state of Branch

func (*BranchSpec) DeepCopy

func (in *BranchSpec) DeepCopy() *BranchSpec

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

func (*BranchSpec) DeepCopyInto

func (in *BranchSpec) DeepCopyInto(out *BranchSpec)

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

type BranchStatus

type BranchStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        BranchObservation `json:"atProvider,omitempty"`
}

BranchStatus defines the observed state of Branch.

func (*BranchStatus) DeepCopy

func (in *BranchStatus) DeepCopy() *BranchStatus

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

func (*BranchStatus) DeepCopyInto

func (in *BranchStatus) DeepCopyInto(out *BranchStatus)

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