Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=gitjob.cattle.io
+k8s:deepcopy-gen=package +groupName=gitjob.cattle.io
+k8s:deepcopy-gen=package +groupName=gitjob.cattle.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var (
GitJobResourceName = "gitjobs"
)
var SchemeGroupVersion = schema.GroupVersion{Group: gitjob.GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Credential ¶
type Credential struct { // CABundle is a PEM encoded CA bundle which will be used to validate the repo's certificate. CABundle []byte `json:"caBundle,omitempty"` // InsecureSkipTLSverify will use insecure HTTPS to download the repo's index. InsecureSkipTLSverify bool `json:"insecureSkipTLSVerify,omitempty"` // Hostname of git server GitHostname string `json:"gitHostName,omitempty"` // Secret Name of git credential GitSecretName string `json:"gitSecretName,omitempty"` }
func (*Credential) DeepCopy ¶
func (in *Credential) DeepCopy() *Credential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Credential.
func (*Credential) DeepCopyInto ¶
func (in *Credential) DeepCopyInto(out *Credential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitEvent ¶
type GitEvent struct { Commit string `json:"commit,omitempty"` *GithubMeta }
func (*GitEvent) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitEvent.
func (*GitEvent) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitInfo ¶
type GitInfo struct { Credential Provider string `json:"provider,omitempty"` Repo string `json:"repo,omitempty"` Revision string `json:"revision,omitempty"` Branch string `json:"branch,omitempty"` Github }
func (*GitInfo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitInfo.
func (*GitInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitJob ¶
type GitJob struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitjobSpec `json:"spec,omitempty"` Status GitjobStatus `json:"status,omitempty"` }
func (*GitJob) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitJob.
func (*GitJob) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitJob) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitJobList ¶
type GitJobList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []GitJob `json:"items"` }
GitJobList is a list of GitJob resources
func (*GitJobList) DeepCopy ¶
func (in *GitJobList) DeepCopy() *GitJobList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitJobList.
func (*GitJobList) DeepCopyInto ¶
func (in *GitJobList) DeepCopyInto(out *GitJobList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitJobList) DeepCopyObject ¶
func (in *GitJobList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Github ¶
type Github struct { // Secret Token is used to validate if payload is coming from github Token string `json:"secret,omitempty"` }
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 GithubMeta ¶
type GithubMeta struct { Initialized bool `json:"initialized,omitempty"` Event string `json:"event,omitempty"` }
func (*GithubMeta) DeepCopy ¶
func (in *GithubMeta) DeepCopy() *GithubMeta
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GithubMeta.
func (*GithubMeta) DeepCopyInto ¶
func (in *GithubMeta) DeepCopyInto(out *GithubMeta)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitjobSpec ¶
type GitjobSpec struct { Git GitInfo `json:"git,omitempty"` JobSpec v1.JobSpec `json:"jobSpec,omitempty"` // define interval(in seconds) for controller to sync repo and fetch commits SyncInterval int `json:"syncInterval,omitempty"` }
func (*GitjobSpec) DeepCopy ¶
func (in *GitjobSpec) DeepCopy() *GitjobSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitjobSpec.
func (*GitjobSpec) DeepCopyInto ¶
func (in *GitjobSpec) DeepCopyInto(out *GitjobSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitjobStatus ¶
type GitjobStatus struct { GitEvent Conditions []genericcondition.GenericCondition `json:"conditions,omitempty"` }
func (*GitjobStatus) DeepCopy ¶
func (in *GitjobStatus) DeepCopy() *GitjobStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitjobStatus.
func (*GitjobStatus) DeepCopyInto ¶
func (in *GitjobStatus) DeepCopyInto(out *GitjobStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.