Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the github v1alpha1 API group +kubebuilder:object:generate=true +groupName=github.colossyan.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "github.colossyan.com", Version: "v1alpha1"} // nolint:gochecknoglobals // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // nolint:gochecknoglobals // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme // nolint:gochecknoglobals )
Functions ¶
This section is empty.
Types ¶
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) 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.
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 { // The details of the repository this pull request belongs to Repository RepositoryDetail `json:"repository"` // The git ref to the head of the pull request HeadRef string `json:"headRef"` // The git ref to the base of the pull request BaseRef string `json:"baseRef"` // The ID of the pull request ID int64 `json:"id"` // The number of the pull request Number int `json:"number"` }
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 PullRequestState ¶
type PullRequestState string
PullRequestState describes the current state of the GitHub pull request. +kubebuilder:validation:Enum=Open;Closed
const ( // Open means that the GitHub pull request is currently open. Open PullRequestState = "Open" // Closed represents a closed (either merged or unmerged) GitHub pull request state. Closed PullRequestState = "Closed" )
type PullRequestStatus ¶
type PullRequestStatus struct { // The current state of the GitHub pull request. State PullRequestState `json:"state"` // The labels of the pull request Labels []string `json:"labels,omitempty"` // Whether there is a workflow in progress at the head of the pull request Workflows []WorkflowRunStatus `json:"workflowFinished,omitempty"` }
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.
func (*PullRequestStatus) IsEqual ¶
func (s *PullRequestStatus) IsEqual(other *PullRequestStatus) bool
type Repository ¶
type Repository struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RepositorySpec `json:"spec,omitempty"` Status RepositoryStatus `json:"status,omitempty"` }
Repository is the Schema for the repositories API
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.
type RepositoryDetail ¶
type RepositoryDetail struct { // The owner of the repository Owner string `json:"owner"` // The name of the repository Name string `json:"name"` }
func (*RepositoryDetail) DeepCopy ¶
func (in *RepositoryDetail) DeepCopy() *RepositoryDetail
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryDetail.
func (*RepositoryDetail) DeepCopyInto ¶
func (in *RepositoryDetail) DeepCopyInto(out *RepositoryDetail)
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 Repository
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.
type RepositorySpec ¶
type RepositorySpec struct { // The owner of the repository Owner string `json:"owner"` // The name of the repository Name string `json:"name"` // The name of the Kubernetes secret containing the OAuth token required // for the controller to access private repositories SecretName string `json:"secretName,omitempty"` // Whether the controller should sync all the pull requests belonging to the repository SyncPullRequests SyncPullRequests `json:"syncPullRequests"` }
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 { // Whether the Repository has been accessed and the controller has the authorization to get details. Accessed bool `json:"accessed"` }
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.
type SyncPullRequests ¶
type SyncPullRequests struct { // Whether the controller should synchronize the pull requests Enabled bool `json:"enabled"` // Ignores pull requests IgnoreLabels []string `json:"ignoreLabels,omitempty"` }
Rules to synchronize pull requests in the repository
func (*SyncPullRequests) DeepCopy ¶
func (in *SyncPullRequests) DeepCopy() *SyncPullRequests
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncPullRequests.
func (*SyncPullRequests) DeepCopyInto ¶
func (in *SyncPullRequests) DeepCopyInto(out *SyncPullRequests)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkflowRunStatus ¶
type WorkflowRunStatus struct { // The ID of the workflow run ID int64 `json:"id"` // The status of the run Status string `json:"status"` // The SHA sum of the HEAD that the workflow refers HeadSHA string `json:"headSHA"` // nolint:tagliatelle // The conclusion of the run Conclusion string `json:"conclusion,omitempty"` }
func (*WorkflowRunStatus) DeepCopy ¶
func (in *WorkflowRunStatus) DeepCopy() *WorkflowRunStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowRunStatus.
func (*WorkflowRunStatus) DeepCopyInto ¶
func (in *WorkflowRunStatus) DeepCopyInto(out *WorkflowRunStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.