Documentation ¶
Overview ¶
Package v1alpha3 contains API Schema definitions for the devops v1alpha3 API group +k8s:openapi-gen=true +kubebuilder:object:generate=true +k8s:conversion-gen=kubesphere.io/api/devops +k8s:defaulter-gen=TypeMeta +groupName=devops.kubesphere.io
Package v1alpha3 contains API Schema definitions for the devops v1alpha3 API group +k8s:openapi-gen=true +kubebuilder:object:generate=true +k8s:conversion-gen=kubesphere.io/api/devops +k8s:defaulter-gen=TypeMeta +groupName=devops.kubesphere.io
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Resource(resource string) schema.GroupResource
- type BitbucketServerSource
- type DevOpsProject
- type DevOpsProjectList
- type DevOpsProjectSpec
- type DevOpsProjectStatus
- type DiscarderProperty
- type DiscoverPRFromForks
- type GitCloneOption
- type GitSource
- type GithubSource
- type GitlabSource
- type MultiBranchJobTrigger
- type MultiBranchPipeline
- type NoScmPipeline
- type Parameter
- type Pipeline
- type PipelineList
- type PipelineSpec
- type PipelineStatus
- type RemoteTrigger
- type SingleSvnSource
- type SvnSource
- type TimerTrigger
Constants ¶
const ( CredentialFinalizerName = "finalizers.kubesphere.io/credential" DevOpsCredentialPrefix = "credential.devops.kubesphere.io/" DevOpsCredentialDataHash = DevOpsCredentialPrefix + "datahash" // SecretTypeBasicAuth contains data needed for basic authentication. // // Required at least one of fields: // - Secret.Data["username"] - username used for authentication // - Secret.Data["password"] - password or token needed for authentication SecretTypeBasicAuth v1.SecretType = DevOpsCredentialPrefix + "basic-auth" // BasicAuthUsernameKey is the key of the username for SecretTypeBasicAuth secrets BasicAuthUsernameKey = "username" // BasicAuthPasswordKey is the key of the password or token for SecretTypeBasicAuth secrets BasicAuthPasswordKey = "password" // SecretTypeSSHAuth contains data needed for ssh authentication. // // Required at least one of fields: // - Secret.Data["username"] - username used for authentication // - Secret.Data["passphrase"] - passphrase needed for authentication // - Secret.Data["privatekey"] - privatekey needed for authentication SecretTypeSSHAuth v1.SecretType = DevOpsCredentialPrefix + "ssh-auth" // SSHAuthUsernameKey is the key of the username for SecretTypeSSHAuth secrets SSHAuthUsernameKey = "username" // SSHAuthPrivateKey is the key of the passphrase for SecretTypeSSHAuth secrets SSHAuthPassphraseKey = "passphrase" // SSHAuthPrivateKey is the key of the privatekey for SecretTypeSSHAuth secrets SSHAuthPrivateKey = "private_key" // SecretTypeSecretText contains data. // // Required at least one of fields: // - Secret.Data["secret"] - secret SecretTypeSecretText v1.SecretType = DevOpsCredentialPrefix + "secret-text" // SecretTextSecretKey is the key of the secret for SecretTypeSecretText secrets SecretTextSecretKey = "secret" // SecretTypeKubeConfig contains data. // // Required at least one of fields: // - Secret.Data["secret"] - secret SecretTypeKubeConfig v1.SecretType = DevOpsCredentialPrefix + "kubeconfig" // KubeConfigSecretKey is the key of the secret for SecretTypeKubeConfig secrets KubeConfigSecretKey = "content" // CredentialAutoSyncAnnoKey is used to indicate whether the secret is automatically synchronized to devops. // In the old version, the credential is stored in jenkins and cannot be obtained. // This field is set to ensure that the secret is not overwritten by a nil value. CredentialAutoSyncAnnoKey = DevOpsCredentialPrefix + "autosync" CredentialSyncStatusAnnoKey = DevOpsCredentialPrefix + "syncstatus" CredentialSyncTimeAnnoKey = DevOpsCredentialPrefix + "synctime" CredentialSyncMsgAnnoKey = DevOpsCredentialPrefix + "syncmsg" )
* We use a special type of secret as a credential for DevOps. This file will not contain CRD, but the credential type constants and their fields.
const ( ResourceKindDevOpsProject = "DevOpsProject" ResourceSingularDevOpsProject = "devopsproject" ResourcePluralDevOpsProject = "devopsprojects" DevOpsProjectPrefix = "devopsproject.devops.kubesphere.io/" DevOpeProjectSyncStatusAnnoKey = DevOpsProjectPrefix + "syncstatus" DevOpeProjectSyncTimeAnnoKey = DevOpsProjectPrefix + "synctime" DevOpeProjectSyncMsgAnnoKey = DevOpsProjectPrefix + "syncmsg" )
const ( ResourceKindPipeline = "Pipeline" ResourceSingularPipeline = "pipeline" ResourcePluralPipeline = "pipelines" PipelinePrefix = "pipeline.devops.kubesphere.io/" PipelineSpecHash = PipelinePrefix + "spechash" PipelineSyncStatusAnnoKey = PipelinePrefix + "syncstatus" PipelineSyncTimeAnnoKey = PipelinePrefix + "synctime" PipelineSyncMsgAnnoKey = PipelinePrefix + "syncmsg" )
const ( NoScmPipelineType = "pipeline" MultiBranchPipelineType = "multi-branch-pipeline" )
const ( SourceTypeSVN = "svn" SourceTypeGit = "git" SourceTypeSingleSVN = "single_svn" SourceTypeGitlab = "gitlab" SourceTypeGithub = "github" SourceTypeBitbucket = "bitbucket_server" )
const DevOpsProjectFinalizerName = "devopsproject.finalizers.kubesphere.io"
const PipelineFinalizerName = "pipeline.finalizers.kubesphere.io"
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "devops.kubesphere.io", Version: "v1alpha3"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is required by pkg/client/... AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type BitbucketServerSource ¶
type BitbucketServerSource struct { ScmId string `json:"scm_id,omitempty" description:"uid of scm"` Owner string `json:"owner,omitempty" mapstructure:"owner" description:"owner of github repo"` Repo string `json:"repo,omitempty" mapstructure:"repo" description:"repo name of github repo"` CredentialId string `json:"credential_id,omitempty" mapstructure:"credential_id" description:"credential id to access github source"` ApiUri string `` /* 154-byte string literal not displayed */ DiscoverBranches int `json:"discover_branches,omitempty" mapstructure:"discover_branches" description:"Discover branch configuration"` DiscoverPRFromOrigin int `` /* 126-byte string literal not displayed */ DiscoverPRFromForks *DiscoverPRFromForks `json:"discover_pr_from_forks,omitempty" mapstructure:"discover_pr_from_forks" description:"Discover fork PR configuration"` DiscoverTags bool `json:"discover_tags,omitempty" mapstructure:"discover_tags" description:"Discover tag configuration"` CloneOption *GitCloneOption `json:"git_clone_option,omitempty" mapstructure:"git_clone_option" description:"advavced git clone options"` RegexFilter string `` /* 135-byte string literal not displayed */ }
func (*BitbucketServerSource) DeepCopy ¶
func (in *BitbucketServerSource) DeepCopy() *BitbucketServerSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BitbucketServerSource.
func (*BitbucketServerSource) DeepCopyInto ¶
func (in *BitbucketServerSource) DeepCopyInto(out *BitbucketServerSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevOpsProject ¶
type DevOpsProject struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DevOpsProjectSpec `json:"spec,omitempty"` Status DevOpsProjectStatus `json:"status,omitempty"` }
DevOpsProject is the Schema for the devopsprojects API +kubebuilder:resource:categories="devops",scope="Cluster" +k8s:openapi-gen=true
func (*DevOpsProject) DeepCopy ¶
func (in *DevOpsProject) DeepCopy() *DevOpsProject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevOpsProject.
func (*DevOpsProject) DeepCopyInto ¶
func (in *DevOpsProject) DeepCopyInto(out *DevOpsProject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DevOpsProject) DeepCopyObject ¶
func (in *DevOpsProject) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DevOpsProjectList ¶
type DevOpsProjectList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []DevOpsProject `json:"items"` }
DevOpsProjectList contains a list of DevOpsProject
func (*DevOpsProjectList) DeepCopy ¶
func (in *DevOpsProjectList) DeepCopy() *DevOpsProjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevOpsProjectList.
func (*DevOpsProjectList) DeepCopyInto ¶
func (in *DevOpsProjectList) DeepCopyInto(out *DevOpsProjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DevOpsProjectList) DeepCopyObject ¶
func (in *DevOpsProjectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DevOpsProjectSpec ¶
type DevOpsProjectSpec struct { }
DevOpsProjectSpec defines the desired state of DevOpsProject
func (*DevOpsProjectSpec) DeepCopy ¶
func (in *DevOpsProjectSpec) DeepCopy() *DevOpsProjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevOpsProjectSpec.
func (*DevOpsProjectSpec) DeepCopyInto ¶
func (in *DevOpsProjectSpec) DeepCopyInto(out *DevOpsProjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevOpsProjectStatus ¶
type DevOpsProjectStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file AdminNamespace string `json:"adminNamespace,omitempty"` }
DevOpsProjectStatus defines the observed state of DevOpsProject
func (*DevOpsProjectStatus) DeepCopy ¶
func (in *DevOpsProjectStatus) DeepCopy() *DevOpsProjectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevOpsProjectStatus.
func (*DevOpsProjectStatus) DeepCopyInto ¶
func (in *DevOpsProjectStatus) DeepCopyInto(out *DevOpsProjectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiscarderProperty ¶
type DiscarderProperty struct { DaysToKeep string `json:"days_to_keep,omitempty" mapstructure:"days_to_keep" description:"days to keep pipeline"` NumToKeep string `json:"num_to_keep,omitempty" mapstructure:"num_to_keep" description:"nums to keep pipeline"` }
func (*DiscarderProperty) DeepCopy ¶
func (in *DiscarderProperty) DeepCopy() *DiscarderProperty
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiscarderProperty.
func (*DiscarderProperty) DeepCopyInto ¶
func (in *DiscarderProperty) DeepCopyInto(out *DiscarderProperty)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiscoverPRFromForks ¶
type DiscoverPRFromForks struct { Strategy int `json:"strategy,omitempty" mapstructure:"strategy" description:"github discover strategy"` Trust int `json:"trust,omitempty" mapstructure:"trust" description:"trust user type"` }
func (*DiscoverPRFromForks) DeepCopy ¶
func (in *DiscoverPRFromForks) DeepCopy() *DiscoverPRFromForks
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiscoverPRFromForks.
func (*DiscoverPRFromForks) DeepCopyInto ¶
func (in *DiscoverPRFromForks) DeepCopyInto(out *DiscoverPRFromForks)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCloneOption ¶
type GitCloneOption struct { Shallow bool `json:"shallow,omitempty" mapstructure:"shallow" description:"Whether to use git shallow clone"` Timeout int `json:"timeout,omitempty" mapstructure:"timeout" description:"git clone timeout mins"` Depth int `json:"depth,omitempty" mapstructure:"depth" description:"git clone depth"` }
func (*GitCloneOption) DeepCopy ¶
func (in *GitCloneOption) DeepCopy() *GitCloneOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCloneOption.
func (*GitCloneOption) DeepCopyInto ¶
func (in *GitCloneOption) DeepCopyInto(out *GitCloneOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitSource ¶
type GitSource struct { ScmId string `json:"scm_id,omitempty" description:"uid of scm"` Url string `json:"url,omitempty" mapstructure:"url" description:"url of git source"` CredentialId string `json:"credential_id,omitempty" mapstructure:"credential_id" description:"credential id to access git source"` DiscoverBranches bool `json:"discover_branches,omitempty" mapstructure:"discover_branches" description:"Whether to discover a branch"` DiscoverTags bool `json:"discover_tags,omitempty" mapstructure:"discover_tags" description:"Discover tags configuration"` CloneOption *GitCloneOption `json:"git_clone_option,omitempty" mapstructure:"git_clone_option" description:"advavced git clone options"` RegexFilter string `` /* 135-byte string literal not displayed */ }
func (*GitSource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitSource.
func (*GitSource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GithubSource ¶
type GithubSource struct { ScmId string `json:"scm_id,omitempty" description:"uid of scm"` Owner string `json:"owner,omitempty" mapstructure:"owner" description:"owner of github repo"` Repo string `json:"repo,omitempty" mapstructure:"repo" description:"repo name of github repo"` CredentialId string `json:"credential_id,omitempty" mapstructure:"credential_id" description:"credential id to access github source"` ApiUri string `` /* 154-byte string literal not displayed */ DiscoverBranches int `json:"discover_branches,omitempty" mapstructure:"discover_branches" description:"Discover branch configuration"` DiscoverPRFromOrigin int `` /* 126-byte string literal not displayed */ DiscoverPRFromForks *DiscoverPRFromForks `json:"discover_pr_from_forks,omitempty" mapstructure:"discover_pr_from_forks" description:"Discover fork PR configuration"` DiscoverTags bool `json:"discover_tags,omitempty" mapstructure:"discover_tags" description:"Discover tag configuration"` CloneOption *GitCloneOption `json:"git_clone_option,omitempty" mapstructure:"git_clone_option" description:"advavced git clone options"` RegexFilter string `` /* 135-byte string literal not displayed */ }
GithubSource and BitbucketServerSource have the same structure, but we don't use one due to crd errors
func (*GithubSource) DeepCopy ¶
func (in *GithubSource) DeepCopy() *GithubSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GithubSource.
func (*GithubSource) DeepCopyInto ¶
func (in *GithubSource) DeepCopyInto(out *GithubSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitlabSource ¶
type GitlabSource struct { ScmId string `json:"scm_id,omitempty" description:"uid of scm"` Owner string `json:"owner,omitempty" mapstructure:"owner" description:"owner of gitlab repo"` Repo string `json:"repo,omitempty" mapstructure:"repo" description:"repo name of gitlab repo"` ServerName string `json:"server_name,omitempty" description:"the name of gitlab server which was configured in jenkins"` CredentialId string `json:"credential_id,omitempty" mapstructure:"credential_id" description:"credential id to access gitlab source"` ApiUri string `` /* 154-byte string literal not displayed */ DiscoverBranches int `json:"discover_branches,omitempty" mapstructure:"discover_branches" description:"Discover branch configuration"` DiscoverPRFromOrigin int `` /* 126-byte string literal not displayed */ DiscoverPRFromForks *DiscoverPRFromForks `json:"discover_pr_from_forks,omitempty" mapstructure:"discover_pr_from_forks" description:"Discover fork PR configuration"` DiscoverTags bool `json:"discover_tags,omitempty" mapstructure:"discover_tags" description:"Discover tags configuration"` CloneOption *GitCloneOption `json:"git_clone_option,omitempty" mapstructure:"git_clone_option" description:"advavced git clone options"` RegexFilter string `` /* 135-byte string literal not displayed */ }
func (*GitlabSource) DeepCopy ¶
func (in *GitlabSource) DeepCopy() *GitlabSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitlabSource.
func (*GitlabSource) DeepCopyInto ¶
func (in *GitlabSource) DeepCopyInto(out *GitlabSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MultiBranchJobTrigger ¶
type MultiBranchJobTrigger struct { CreateActionJobsToTrigger string `json:"create_action_job_to_trigger,omitempty" description:"pipeline name to trigger"` DeleteActionJobsToTrigger string `json:"delete_action_job_to_trigger,omitempty" description:"pipeline name to trigger"` }
func (*MultiBranchJobTrigger) DeepCopy ¶
func (in *MultiBranchJobTrigger) DeepCopy() *MultiBranchJobTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiBranchJobTrigger.
func (*MultiBranchJobTrigger) DeepCopyInto ¶
func (in *MultiBranchJobTrigger) DeepCopyInto(out *MultiBranchJobTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MultiBranchPipeline ¶
type MultiBranchPipeline struct { Name string `json:"name" description:"name of pipeline"` Description string `json:"description,omitempty" description:"description of pipeline"` Discarder *DiscarderProperty `json:"discarder,omitempty" description:"Discarder of pipeline, managing when to drop a pipeline"` TimerTrigger *TimerTrigger `json:"timer_trigger,omitempty" mapstructure:"timer_trigger" description:"Timer to trigger pipeline run"` SourceType string `json:"source_type" description:"type of scm, such as github/git/svn"` GitSource *GitSource `json:"git_source,omitempty" description:"git scm define"` GitHubSource *GithubSource `json:"github_source,omitempty" description:"github scm define"` GitlabSource *GitlabSource `json:"gitlab_source,omitempty" description:"gitlab scm define"` SvnSource *SvnSource `json:"svn_source,omitempty" description:"multi branch svn scm define"` SingleSvnSource *SingleSvnSource `json:"single_svn_source,omitempty" description:"single branch svn scm define"` BitbucketServerSource *BitbucketServerSource `json:"bitbucket_server_source,omitempty" description:"bitbucket server scm defile"` ScriptPath string `json:"script_path" mapstructure:"script_path" description:"script path in scm"` MultiBranchJobTrigger *MultiBranchJobTrigger `` /* 164-byte string literal not displayed */ }
func (*MultiBranchPipeline) DeepCopy ¶
func (in *MultiBranchPipeline) DeepCopy() *MultiBranchPipeline
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiBranchPipeline.
func (*MultiBranchPipeline) DeepCopyInto ¶
func (in *MultiBranchPipeline) DeepCopyInto(out *MultiBranchPipeline)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NoScmPipeline ¶
type NoScmPipeline struct { Name string `json:"name" description:"name of pipeline"` Description string `json:"description,omitempty" description:"description of pipeline"` Discarder *DiscarderProperty `json:"discarder,omitempty" description:"Discarder of pipeline, managing when to drop a pipeline"` Parameters []Parameter `json:"parameters,omitempty" description:"Parameters define of pipeline,user could pass param when run pipeline"` DisableConcurrent bool `` /* 141-byte string literal not displayed */ TimerTrigger *TimerTrigger `json:"timer_trigger,omitempty" mapstructure:"timer_trigger" description:"Timer to trigger pipeline run"` RemoteTrigger *RemoteTrigger `json:"remote_trigger,omitempty" mapstructure:"remote_trigger" description:"Remote api define to trigger pipeline run"` Jenkinsfile string `json:"jenkinsfile,omitempty" description:"Jenkinsfile's content'"` }
func (*NoScmPipeline) DeepCopy ¶
func (in *NoScmPipeline) DeepCopy() *NoScmPipeline
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NoScmPipeline.
func (*NoScmPipeline) DeepCopyInto ¶
func (in *NoScmPipeline) DeepCopyInto(out *NoScmPipeline)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Parameter ¶
type Parameter struct { Name string `json:"name" description:"name of param"` DefaultValue string `json:"default_value,omitempty" mapstructure:"default_value" description:"default value of param"` Type string `json:"type" description:"type of param"` Description string `json:"description,omitempty" description:"description of pipeline"` }
func (*Parameter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Parameter.
func (*Parameter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Pipeline ¶
type Pipeline struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PipelineSpec `json:"spec,omitempty"` Status PipelineStatus `json:"status,omitempty"` }
Pipeline is the Schema for the pipelines API +k8s:openapi-gen=true
func (*Pipeline) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pipeline.
func (*Pipeline) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Pipeline) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PipelineList ¶
type PipelineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Pipeline `json:"items"` }
PipelineList contains a list of Pipeline
func (*PipelineList) DeepCopy ¶
func (in *PipelineList) DeepCopy() *PipelineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineList.
func (*PipelineList) DeepCopyInto ¶
func (in *PipelineList) DeepCopyInto(out *PipelineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineList) DeepCopyObject ¶
func (in *PipelineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PipelineSpec ¶
type PipelineSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file Type string `json:"type" description:"type of devops pipeline, in scm or no scm"` Pipeline *NoScmPipeline `json:"pipeline,omitempty" description:"no scm pipeline structs"` MultiBranchPipeline *MultiBranchPipeline `json:"multi_branch_pipeline,omitempty" description:"in scm pipeline structs"` }
PipelineSpec defines the desired state of Pipeline
func (*PipelineSpec) DeepCopy ¶
func (in *PipelineSpec) DeepCopy() *PipelineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineSpec.
func (*PipelineSpec) DeepCopyInto ¶
func (in *PipelineSpec) DeepCopyInto(out *PipelineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineStatus ¶
type PipelineStatus struct { }
PipelineStatus defines the observed state of Pipeline
func (*PipelineStatus) DeepCopy ¶
func (in *PipelineStatus) DeepCopy() *PipelineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineStatus.
func (*PipelineStatus) DeepCopyInto ¶
func (in *PipelineStatus) DeepCopyInto(out *PipelineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RemoteTrigger ¶
type RemoteTrigger struct {
Token string `json:"token,omitempty" description:"remote trigger token"`
}
func (*RemoteTrigger) DeepCopy ¶
func (in *RemoteTrigger) DeepCopy() *RemoteTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteTrigger.
func (*RemoteTrigger) DeepCopyInto ¶
func (in *RemoteTrigger) DeepCopyInto(out *RemoteTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SingleSvnSource ¶
type SingleSvnSource struct { ScmId string `json:"scm_id,omitempty" description:"uid of scm"` Remote string `json:"remote,omitempty" description:"remote address url"` CredentialId string `json:"credential_id,omitempty" mapstructure:"credential_id" description:"credential id to access svn source"` }
func (*SingleSvnSource) DeepCopy ¶
func (in *SingleSvnSource) DeepCopy() *SingleSvnSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SingleSvnSource.
func (*SingleSvnSource) DeepCopyInto ¶
func (in *SingleSvnSource) DeepCopyInto(out *SingleSvnSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SvnSource ¶
type SvnSource struct { ScmId string `json:"scm_id,omitempty" description:"uid of scm"` Remote string `json:"remote,omitempty" description:"remote address url"` CredentialId string `json:"credential_id,omitempty" mapstructure:"credential_id" description:"credential id to access svn source"` Includes string `json:"includes,omitempty" description:"branches to run pipeline"` Excludes string `json:"excludes,omitempty" description:"branches do not run pipeline"` }
func (*SvnSource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SvnSource.
func (*SvnSource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TimerTrigger ¶
type TimerTrigger struct { // user in no scm job Cron string `json:"cron,omitempty" description:"jenkins cron script"` // use in multi-branch job Interval string `json:"interval,omitempty" description:"interval ms"` }
func (*TimerTrigger) DeepCopy ¶
func (in *TimerTrigger) DeepCopy() *TimerTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TimerTrigger.
func (*TimerTrigger) DeepCopyInto ¶
func (in *TimerTrigger) DeepCopyInto(out *TimerTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.