v1alpha1

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the pipeline v1alpha1 API group +kubebuilder:object:generate=true +groupName=pipeline.jquad.rocks

Index

Constants

View Source
const (
	BITBUCKET_PROVIDER_NAME = "Bitbucket"
	GITHUB_PROVIDER_NAME    = "Github"
)

Variables

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

func (in *Bitbucket) DeepCopy() *Bitbucket

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

func (*Bitbucket) DeepCopyInto

func (in *Bitbucket) DeepCopyInto(out *Bitbucket)

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

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) Equals

func (currentBranch *Branch) Equals(newBranch Branch) bool

type Branches

type Branches struct {
	Branches []Branch `json:"branches,omitempty"`
}

func (*Branches) BranchSetDifference

func (branches *Branches) BranchSetDifference(newBranches Branches) (diff []Branch)

func (*Branches) DeepCopy

func (in *Branches) DeepCopy() *Branches

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

func (*Branches) DeepCopyInto

func (in *Branches) DeepCopyInto(out *Branches)

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

func (*Branches) Equals

func (branches *Branches) Equals(newBranches Branches) bool

func (*Branches) GetBranches

func (branches *Branches) GetBranches() []Branch

func (*Branches) GetSize

func (branches *Branches) GetSize() int

func (*Branches) SetBranches

func (branches *Branches) SetBranches(newBranches []Branch)

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

func (in *Github) DeepCopy() *Github

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

func (*Github) DeepCopyInto

func (in *Github) DeepCopyInto(out *Github)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL