Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the pipeline v1alpha1 API group +kubebuilder:object:generate=true +groupName=pipeline.jquad.rocks
Index ¶
- Constants
- Variables
- type Bitbucket
- type Branch
- type Branches
- func (branches *Branches) BranchSetDifference(newBranches Branches) (diff []Branch)
- func (in *Branches) DeepCopy() *Branches
- func (in *Branches) DeepCopyInto(out *Branches)
- func (branches *Branches) Equals(newBranches Branches) bool
- func (branches *Branches) GetBranches() []Branch
- func (branches *Branches) GetSize() int
- func (branches *Branches) SetBranches(newBranches []Branch)
- type GitProvider
- type Github
- type PullRequest
- func (m *PullRequest) AddOrReplaceCondition(c metav1.Condition)
- func (in *PullRequest) DeepCopy() *PullRequest
- func (in *PullRequest) DeepCopyInto(out *PullRequest)
- func (in *PullRequest) DeepCopyObject() runtime.Object
- func (m *PullRequest) GetCondition(conditionType string) (metav1.Condition, bool)
- func (m *PullRequest) GetLastCondition() metav1.Condition
- func (m *PullRequest) ReplaceCondition(c metav1.Condition)
- type PullRequestList
- type PullRequestSpec
- type PullRequestStatus
Constants ¶
const ( BITBUCKET_PROVIDER_NAME = "Bitbucket" GITHUB_PROVIDER_NAME = "Github" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "pipeline.jquad.rocks", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Bitbucket ¶
type Bitbucket struct { // +kubebuilder:validation:Required RestEndpoint string `json:"restEndpoint"` // +kubebuilder:validation:Required Project string `json:"project"` // +kubebuilder:validation:Required Repository string `json:"repository"` }
func (*Bitbucket) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bitbucket.
func (*Bitbucket) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Branch ¶
type Branch struct { Name string `json:"name"` SHA string `json:"sha,omitempty"` Commit string `json:"commit,omitempty"` Details string `json:"details,omitempty"` }
func (*Branch) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Branch.
func (*Branch) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Branches ¶
type Branches struct {
Branches []Branch `json:"branches,omitempty"`
}
func (*Branches) BranchSetDifference ¶
func (*Branches) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Branches.
func (*Branches) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Branches) GetBranches ¶
func (*Branches) SetBranches ¶
type GitProvider ¶
type GitProvider struct { // Git Provider type // +kubebuilder:validation:Enum=Bitbucket;Github // +kubebuilder:validation:Required Provider string `json:"provider"` // Accept not trusted certificatse // +kubebuilder:validation:Required InsecureSkipVerify bool `json:"insecureSkipVerify"` // Git Provider credentials // +kubebuilder:validation:Optional SecretRef string `json:"secretRef"` // +kubebuilder:validation:Optional Bitbucket Bitbucket `json:"bitbucket"` // +kubebuilder:validation:Optional Github Github `json:"github"` }
func (*GitProvider) DeepCopy ¶
func (in *GitProvider) DeepCopy() *GitProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitProvider.
func (*GitProvider) DeepCopyInto ¶
func (in *GitProvider) DeepCopyInto(out *GitProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Github ¶
type Github struct { // +kubebuilder:validation:Required Url string `json:"url"` // +kubebuilder:validation:Required Owner string `json:"owner"` // +kubebuilder:validation:Required Repository string `json:"repository"` }
func (*Github) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Github.
func (*Github) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequest ¶
type PullRequest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PullRequestSpec `json:"spec,omitempty"` Status PullRequestStatus `json:"status,omitempty"` }
PullRequest is the Schema for the pullrequests API
func (*PullRequest) AddOrReplaceCondition ¶
func (m *PullRequest) AddOrReplaceCondition(c metav1.Condition)
func (*PullRequest) DeepCopy ¶
func (in *PullRequest) DeepCopy() *PullRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequest.
func (*PullRequest) DeepCopyInto ¶
func (in *PullRequest) DeepCopyInto(out *PullRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PullRequest) DeepCopyObject ¶
func (in *PullRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PullRequest) GetCondition ¶
func (m *PullRequest) GetCondition(conditionType string) (metav1.Condition, bool)
func (*PullRequest) GetLastCondition ¶
func (m *PullRequest) GetLastCondition() metav1.Condition
GetLastCondition retruns the last condition based on the condition timestamp. if no condition is present it return false.
func (*PullRequest) ReplaceCondition ¶
func (m *PullRequest) ReplaceCondition(c metav1.Condition)
type PullRequestList ¶
type PullRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PullRequest `json:"items"` }
PullRequestList contains a list of PullRequest
func (*PullRequestList) DeepCopy ¶
func (in *PullRequestList) DeepCopy() *PullRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestList.
func (*PullRequestList) DeepCopyInto ¶
func (in *PullRequestList) DeepCopyInto(out *PullRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PullRequestList) DeepCopyObject ¶
func (in *PullRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PullRequestSpec ¶
type PullRequestSpec struct { // GitProvider points at the object specifying the git provider, e.g. Bitbucket or Github // +kubebuilder:validation:Required GitProvider GitProvider `json:"gitProvider"` // TargetBranch points at the object specifying the target branch // +kubebuilder:validation:Required TargetBranch Branch `json:"targetBranch"` // Interval at which to reconcile the git provider. // +required Interval metav1.Duration `json:"interval"` }
PullRequestSpec defines the desired state of PullRequest
func (*PullRequestSpec) DeepCopy ¶
func (in *PullRequestSpec) DeepCopy() *PullRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestSpec.
func (*PullRequestSpec) DeepCopyInto ¶
func (in *PullRequestSpec) DeepCopyInto(out *PullRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequestStatus ¶
type PullRequestStatus struct { // The branches from which a pull requst was opened to the target branch SourceBranches Branches `json:"sourceBranches,omitempty"` ETag string `json:"etag,omitempty"` // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` }
PullRequestStatus defines the observed state of PullRequest
func (*PullRequestStatus) DeepCopy ¶
func (in *PullRequestStatus) DeepCopy() *PullRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestStatus.
func (*PullRequestStatus) DeepCopyInto ¶
func (in *PullRequestStatus) DeepCopyInto(out *PullRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.