v1

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	GitJobResourceName = "gitjobs"
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: gitjob.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

func (in *GitEvent) DeepCopy() *GitEvent

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

func (*GitEvent) DeepCopyInto

func (in *GitEvent) DeepCopyInto(out *GitEvent)

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

func (in *GitInfo) DeepCopy() *GitInfo

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

func (*GitInfo) DeepCopyInto

func (in *GitInfo) DeepCopyInto(out *GitInfo)

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 NewGitJob

func NewGitJob(namespace, name string, obj GitJob) *GitJob

func (*GitJob) DeepCopy

func (in *GitJob) DeepCopy() *GitJob

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

func (*GitJob) DeepCopyInto

func (in *GitJob) DeepCopyInto(out *GitJob)

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

func (*GitJob) DeepCopyObject

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

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

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 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.

Jump to

Keyboard shortcuts

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