v1alpha1

package
v0.0.0-...-841a3e8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the training v1alpha1 API group +kubebuilder:object:generate=true +groupName=training.githubissues

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "training.githubissues", 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 GithubIssue

type GithubIssue struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GithubIssueSpec   `json:"spec,omitempty"`
	Status GithubIssueStatus `json:"status,omitempty"`
}

GithubIssue is the Schema for the githubissues API

func (*GithubIssue) DeepCopy

func (in *GithubIssue) DeepCopy() *GithubIssue

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

func (*GithubIssue) DeepCopyInto

func (in *GithubIssue) DeepCopyInto(out *GithubIssue)

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

func (*GithubIssue) DeepCopyObject

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

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

type GithubIssueList

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

GithubIssueList contains a list of GithubIssue

func (*GithubIssueList) DeepCopy

func (in *GithubIssueList) DeepCopy() *GithubIssueList

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

func (*GithubIssueList) DeepCopyInto

func (in *GithubIssueList) DeepCopyInto(out *GithubIssueList)

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

func (*GithubIssueList) DeepCopyObject

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

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

type GithubIssueSpec

type GithubIssueSpec struct {

	// +kubebuilder:validation:Pattern=`^https?:\/\/github.com+/[a-zA-Z0-9\_.-]+/[a-zA-Z0-9\_.-]`
	// Represent the github repo's URL - e.g https://github.com/rgolangh/dotfiles
	Repo string `json:"repo"`
	// The title of the issue
	Title string `json:"title"`
	// The issue's description
	Description string `json:"description"`
}

GithubIssueSpec defines the desired state of GithubIssue

func (*GithubIssueSpec) DeepCopy

func (in *GithubIssueSpec) DeepCopy() *GithubIssueSpec

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

func (*GithubIssueSpec) DeepCopyInto

func (in *GithubIssueSpec) DeepCopyInto(out *GithubIssueSpec)

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

type GithubIssueStatus

type GithubIssueStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// Represents the state of the real github issue. Could be open/closed or other text taken from the github API response.
	State string `json:"state"`
	// timestamp of the last time the state of the github issue was updated.
	LastUpdateTimestamp string `json:"lastUpdateTimestamp"`
	// The issue's number - used as primary key for finding if this is a new githubIssue
	Number int `json:"number,omitempty"`
}

GithubIssueStatus defines the observed state of GithubIssue

func (*GithubIssueStatus) DeepCopy

func (in *GithubIssueStatus) DeepCopy() *GithubIssueStatus

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

func (*GithubIssueStatus) DeepCopyInto

func (in *GithubIssueStatus) DeepCopyInto(out *GithubIssueStatus)

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