Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the types v1alpha1 API group this group is a duck type only package that hosts common objects and interfaces in katanomi very similar to knative.dev/pkg/apis/duck/v1 or k8s.io/apimachinery/pkg/apis/meta/v1 +kubebuilder:object:generate=true +k8s:deepcopy-gen=package +groupName=meta.katanomi.dev
Index ¶
- Constants
- Variables
- func ArtifactResourceAttributes(verb string) authv1.ResourceAttributes
- func AttributeResourceAttributes(verb string) authv1.ResourceAttributes
- func BranchResourceAttributes(verb string) authv1.ResourceAttributes
- func CodeQualityResourceAttributes(verb string) authv1.ResourceAttributes
- func CopyAnnotations(object, dest metav1.Object)
- func CopyLabels(object, dest metav1.Object)
- func CopyMapStringString(object, dest map[string]string) map[string]string
- func FilterMapKeys(mapObj map[string]string, ignorePrefixes ...string) map[string]string
- func GetCondition(conditions apis.Conditions, t apis.ConditionType) *apis.Condition
- func GetNamespacedNameFromObject(obj metav1.Object) (named types.NamespacedName)
- func GetNamespacedNameFromRef(ref *corev1.ObjectReference) (named types.NamespacedName)
- func GetObjectReferenceFromObject(obj metav1.Object, opts ...ObjectRefOptionsFunc) (ref corev1.ObjectReference)
- func GetSearchValue(option ListOptions) string
- func GitBranchResourceAttributes(verb string) authv1.ResourceAttributes
- func GitCommitResourceAttributes(verb string) authv1.ResourceAttributes
- func GitRepositoryResourceAttributes(verb string) authv1.ResourceAttributes
- func GitRepositoryTagResourceAttributes(verb string) authv1.ResourceAttributes
- func HasAnnotation(obj metav1.Object, key, value string) bool
- func HasAnnotationKey(obj metav1.Object, key string) bool
- func HasLabel(obj metav1.Object, key, value string) bool
- func HasLabelKey(obj metav1.Object, key string) bool
- func IsConditionChanged(current, old apis.ConditionAccessor, conditionType apis.ConditionType) bool
- func IsTheSameObject(obj, compared corev1.ObjectReference) bool
- func IsTheSameObjectReference(obj, compared *corev1.ObjectReference) bool
- func IsTimeout(startTime *metav1.Time, timeout metav1.Duration) bool
- func IssueResourceAttributes(verb string) authv1.ResourceAttributes
- func LabelFilter(label string) func(*Variable) bool
- func MapContainsKey(mapObj map[string]string, key string) bool
- func MapContainsKeyValue(mapObj map[string]string, key, value string) bool
- func ObjectReferenceValGetter(obj *corev1.ObjectReference) substitution.GetValWithKeyFunc
- func ParseEnvs(env []string) map[string]string
- func ProjectResourceAttributes(verb string) authv1.ResourceAttributes
- func PropagateCondition(conditionManager apis.ConditionManager, conditionType apis.ConditionType, ...)
- func RBACSubjectValGetter(subject *rbac.Subject) substitution.GetValWithKeyFunc
- func ReasonForError(err error) string
- func RepositoryResourceAttributes(verb string) authv1.ResourceAttributes
- func SetConditionByError(conditionManager apis.ConditionManager, condition apis.ConditionType, ...)
- func SetConditionByErrorReason(conditionManager apis.ConditionManager, condition apis.ConditionType, ...)
- func TestCaseExecutionResourceAttributes(verb string) authv1.ResourceAttributes
- func TestCaseResourceAttributes(verb string) authv1.ResourceAttributes
- func TestModuleResourceAttributes(verb string) authv1.ResourceAttributes
- func TestPlanResourceAttributes(verb string) authv1.ResourceAttributes
- func UserResourceAttributes(verb string) authv1.ResourceAttributes
- func ValidateUser(ctx context.Context, user rbacv1.Subject, path *field.Path) (errs field.ErrorList)
- func VariableResourceAttributes(verb string) authv1.ResourceAttributes
- type Approval
- func (in *Approval) DeepCopy() *Approval
- func (in *Approval) DeepCopyInto(out *Approval)
- func (a *Approval) HasApprover() bool
- func (r *Approval) Validate(ctx context.Context, path *field.Path) (errs field.ErrorList)
- func (r *Approval) ValidateChange(ctx context.Context, old *Approval, path *field.Path) (errs field.ErrorList)
- type ApprovalCheckStatus
- type ApprovalPolicy
- type ApprovalSpec
- func (in *ApprovalSpec) DeepCopy() *ApprovalSpec
- func (in *ApprovalSpec) DeepCopyInto(out *ApprovalSpec)
- func (a *ApprovalSpec) GetApprovalUsers() []rbacv1.Subject
- func (a *ApprovalSpec) HasApprover() bool
- func (a *ApprovalSpec) IsEnabled() bool
- func (a *ApprovalSpec) TimeoutEnabled() bool
- func (r *ApprovalSpec) Validate(ctx context.Context, path *field.Path) (errs field.ErrorList)
- type ApprovalStatus
- type ApprovalStatuses
- type Artifact
- type ArtifactEnvFilter
- type ArtifactExtraAttrs
- type ArtifactFilter
- type ArtifactFilterRegexList
- type ArtifactFilterSet
- type ArtifactLabelFilter
- type ArtifactList
- type ArtifactOptions
- type ArtifactParameterSpec
- type ArtifactProperties
- type ArtifactReference
- type ArtifactSpec
- type ArtifactTag
- type ArtifactTagFilter
- type ArtifactTagOptions
- type ArtifactType
- type Attribute
- type AttributeSpec
- type AttributeStatus
- type AuthCheck
- type AuthCheckOptions
- type AuthCheckSpec
- type AuthCheckStatus
- type AuthToken
- type AuthTokenStatus
- type AuthType
- type BaseGitStatus
- type BlobStore
- type BlobStoreList
- type BlobStoreSpec
- type Branch
- type BranchList
- type BranchSpec
- type BuildGitBranchStatus
- func (b *BuildGitBranchStatus) AssignByGitBranch(gitBranch *GitBranch) *BuildGitBranchStatus
- func (in *BuildGitBranchStatus) DeepCopy() *BuildGitBranchStatus
- func (in *BuildGitBranchStatus) DeepCopyInto(out *BuildGitBranchStatus)
- func (b *BuildGitBranchStatus) GetValWithKey(ctx context.Context, path *field.Path) map[string]string
- type BuildGitCommitStatus
- func (b *BuildGitCommitStatus) AssignByGitCommit(gitCommit *GitCommit) *BuildGitCommitStatus
- func (in *BuildGitCommitStatus) DeepCopy() *BuildGitCommitStatus
- func (in *BuildGitCommitStatus) DeepCopyInto(out *BuildGitCommitStatus)
- func (b *BuildGitCommitStatus) GetValWithKey(ctx context.Context, path *field.Path) map[string]string
- type BuildGitPullRequestStatus
- func (b *BuildGitPullRequestStatus) AssignByGitPullRequest(gitPullRequest *GitPullRequest) *BuildGitPullRequestStatus
- func (in *BuildGitPullRequestStatus) DeepCopy() *BuildGitPullRequestStatus
- func (in *BuildGitPullRequestStatus) DeepCopyInto(out *BuildGitPullRequestStatus)
- func (b *BuildGitPullRequestStatus) GetValWithKey(ctx context.Context, path *field.Path) map[string]string
- type BuildMetaData
- type BuildMetaDataStatus
- type BuildRunGitStatus
- type BuildStateType
- type Check
- func (in *Check) DeepCopy() *Check
- func (in *Check) DeepCopyInto(out *Check)
- func (c *Check) GetApprovalUsers() UserApprovals
- func (c *Check) HasApprover() bool
- func (c *Check) IsNotSet() bool
- func (r *Check) Validate(ctx context.Context, path *field.Path) (errs field.ErrorList)
- func (r *Check) ValidateChange(ctx context.Context, old *Check, path *field.Path) (errs field.ErrorList)
- type CloudEvent
- type CodeInfo
- type CodeQuality
- type CodeQualityAnalyzeMetric
- type CodeQualityBaseOption
- type CodeQualityBranch
- type CodeQualityLineChart
- type CodeQualityLineChartOption
- type CodeQualityLineChartSpec
- type CodeQualityProjectOverview
- type CodeQualityProjectOverviewComponent
- type CodeQualityProjectOverviewSpec
- type CodeQualityProjectOverviewSpecSummary
- type CodeQualitySpec
- type CodeQualityTaskMetrics
- type CodeQualityTaskMetricsSpec
- type CodeQualityTaskMetricsSpecComponent
- type CodeQualityTaskMetricsSpecSummary
- type CodeQualityTaskMetricsSpecSummaryOverview
- type CodeQualityTaskMetricsSpecTask
- type CodeQualityTaskMetricsStatus
- type CodeQualityTaskOption
- type CodeScanReportSyncReason
- type Comment
- type CommitProperties
- type ConditionType
- type ContextKey
- type CreateBranchParams
- type CreateBranchPayload
- type CreateCommitCommentParam
- type CreateCommitCommentPayload
- type CreateCommitStatusParam
- type CreateCommitStatusPayload
- type CreatePullRequestCommentParam
- type CreatePullRequestCommentPayload
- type CreatePullRequestPayload
- type CreateRepoFileParams
- type CreateRepoFilePayload
- type CreatedBy
- func (in *CreatedBy) DeepCopy() *CreatedBy
- func (in *CreatedBy) DeepCopyInto(out *CreatedBy)
- func (by *CreatedBy) FromAnnotation(annotations map[string]string) (*CreatedBy, error)
- func (by *CreatedBy) IsZero() bool
- func (by *CreatedBy) SetIntoAnnotation(annotations map[string]string) (map[string]string, error)
- type DataMap
- func (c DataMap) BoolVal(key string) (*bool, error)
- func (in DataMap) DeepCopy() DataMap
- func (in DataMap) DeepCopyInto(out *DataMap)
- func (c DataMap) IntVal(key string) (*int, error)
- func (c DataMap) MustBoolVal(key string, dft bool) bool
- func (c DataMap) MustIntVal(key string, dft int) int
- func (c DataMap) MustStringVal(key string, dft string) string
- func (c DataMap) MustTimeDurationVal(key string, dft time.Duration) time.Duration
- func (c DataMap) StringVal(key string) *string
- func (c DataMap) TimeDurationVal(key string) (*time.Duration, error)
- type DefinitionTriggeredType
- type DownloadURL
- type EnvironmentSpec
- type ExtendedAddress
- type GitBranch
- type GitBranchBaseInfo
- type GitBranchList
- type GitBranchOption
- type GitBranchSpec
- type GitCommit
- type GitCommitBasicInfo
- type GitCommitComment
- type GitCommitCommentList
- type GitCommitCommentSpec
- type GitCommitInfo
- type GitCommitList
- type GitCommitListOption
- type GitCommitOption
- type GitCommitSpec
- type GitCommitStatus
- type GitCommitStatusInfo
- type GitCommitStatusInfoList
- type GitCommitStatusList
- type GitCommitStatusSpec
- type GitCommitStatusStatus
- type GitOperateLogBaseInfo
- type GitPullRequest
- type GitPullRequestList
- type GitPullRequestListOption
- type GitPullRequestNote
- type GitPullRequestNoteList
- type GitPullRequestNoteSpec
- type GitPullRequestOption
- type GitPullRequestSpec
- type GitRepo
- type GitRepoFile
- type GitRepoFileOption
- type GitRepoFileSpec
- type GitRepoFileTreeOption
- type GitRepository
- type GitRepositoryFileTree
- type GitRepositoryFileTreeNode
- type GitRepositoryFileTreeNodeType
- type GitRepositoryFileTreeSpec
- type GitRepositoryList
- type GitRepositorySpec
- type GitRepositoryTag
- type GitRepositoryTagInfo
- type GitRepositoryTagList
- type GitRepositoryTagListOption
- type GitRepositoryTagOption
- type GitRepositoryTagSpec
- type GitRevision
- type GitRevisionDetail
- type GitRevisionList
- type GitRevisionSpec
- type GitRevisionType
- type GitUserBaseInfo
- type HistoryLimits
- type ImageConfig
- type ImageConfigSpec
- type Issue
- type IssueInfo
- type IssueList
- type IssueOptions
- type IssuePriority
- type IssueProject
- type IssueSpec
- type IssueType
- type ListMeta
- type ListOptions
- func (in *ListOptions) DeepCopy() *ListOptions
- func (in *ListOptions) DeepCopyInto(out *ListOptions)
- func (opt *ListOptions) DefaultPager()
- func (opt *ListOptions) GetSearchFirstElement(key string) (value string)
- func (opt *ListOptions) MatchSearchValue(name string) bool
- func (opt *ListOptions) MatchSubResource(name string) bool
- func (opt *ListOptions) SearchSet(key, value string)
- type MergeStatus
- type NamedValue
- type ObjectCondition
- type ObjectConditionAccessor
- type ObjectConditionChanger
- type ObjectConditionManager
- type ObjectConditionSet
- func (o *ObjectConditionSet) GetObjectConditionByObjRef(objref corev1.ObjectReference) *ObjectCondition
- func (o *ObjectConditionSet) GetObjectConditions() ObjectConditions
- func (o *ObjectConditionSet) MarkFalse(objref corev1.ObjectReference, reason, messageFormat string, ...)
- func (o *ObjectConditionSet) MarkTrue(objref corev1.ObjectReference)
- func (o *ObjectConditionSet) MarkTrueWithReason(objref corev1.ObjectReference, reason, messageFormat string, ...)
- func (o *ObjectConditionSet) MarkUnknown(objref corev1.ObjectReference, reason, messageFormat string, ...)
- func (o *ObjectConditionSet) RemoveObjectConditionByObjRef(objref corev1.ObjectReference)
- func (o *ObjectConditionSet) SetConditionType(objref corev1.ObjectReference, conditionType apis.ConditionType)
- func (o *ObjectConditionSet) SetObjectCondition(objc ObjectCondition)
- func (o *ObjectConditionSet) SetObjectConditions(objcs ObjectConditions)
- func (o *ObjectConditionSet) SetSeverity(objref corev1.ObjectReference, severity apis.ConditionSeverity)
- type ObjectConditions
- func (in ObjectConditions) DeepCopy() ObjectConditions
- func (in ObjectConditions) DeepCopyInto(out *ObjectConditions)
- func (o ObjectConditions) GetObjectConditionByObjRef(objref corev1.ObjectReference) *ObjectCondition
- func (o ObjectConditions) Manage(accessor ObjectConditionAccessor) ObjectConditionManager
- func (o ObjectConditions) RemoveObjectConditionByObjRef(objref corev1.ObjectReference) ObjectConditions
- func (o ObjectConditions) SetObjectCondition(objc ObjectCondition) ObjectConditions
- type ObjectRefOptionsFunc
- type Pager
- type Param
- type ParamSpec
- type Project
- type ProjectList
- type ProjectSpec
- type ProjectSubType
- type PullRequestState
- type RelateIssue
- type ReportSyncReason
- type Repository
- type RepositoryList
- type RepositoryOptions
- type RepositorySpec
- type RepositorySubType
- type ResourcePathScene
- type ResourceURI
- type ResourceURL
- type SortBy
- type SortOptions
- type SortOrder
- type TestBuildStatusInfo
- type TestCase
- type TestCaseExecution
- type TestCaseExecutionList
- type TestCaseExecutionSpec
- type TestCaseExecutionStatus
- type TestCaseList
- type TestCaseRelatedObjectInfo
- type TestCaseSpec
- type TestCaseStatus
- type TestCaseStepInfo
- type TestModule
- type TestModuleCaseRef
- type TestModuleList
- type TestModuleSpec
- type TestObjectRef
- type TestPlan
- type TestPlanList
- type TestPlanSpec
- type TestPlanStatus
- type TestProjectOptions
- type TimeCursor
- type TopLevelConditionObject
- type TriggeredBy
- func (in *TriggeredBy) DeepCopy() *TriggeredBy
- func (in *TriggeredBy) DeepCopyInto(out *TriggeredBy)
- func (by *TriggeredBy) FromAnnotation(annotations map[string]string) (*TriggeredBy, error)
- func (by *TriggeredBy) GetValWithKey(ctx context.Context, path *field.Path) (values map[string]string)
- func (by *TriggeredBy) IsZero() bool
- func (by TriggeredBy) SetIntoAnnotation(annotations map[string]string) (map[string]string, error)
- type UpdatePullRequestCommentPayload
- type User
- type UserApproval
- type UserApprovalInput
- type UserApprovals
- type UserInfo
- type UserList
- type UserOptions
- type UserSpec
- type Variable
- type VariableList
- type WebhookEventSupportType
- type WebhookRegisterSpec
- type WebhookRegisterStatus
Constants ¶
const ( AuthTypeBasic = AuthType(corev1.SecretTypeBasicAuth) AuthTypeOAuth2 = AuthType("katanomi.dev/oauth2") AuthTypeDynamic = AuthType("katanomi.dev/dynamic") )
const ( NotAllowedAuthCheckReason = "NotAllowed" NotImplementedAuthCheckReason = "NotImplemented" NeedsAuthorizationAuthCheckReason = "NeedsAuthorization" )
const ( CloudEventPrefix = "dev.katanomi.cloudevents" CloudEventExtGitReference = "reference" CloudEventExtGitBranch = "branch" CloudEventExtGitCommitMessage = "commitmessage" CloudEventExtGitCommitID = "commit" CloudEventExtGitSourceBranch = "sourcebranch" CloudEventExtGitTargetBranch = "targetbranch" CloudEventExtGitTag = "tag" CloudEventExtAction = "action" CloudEventExtSender = "sender" CloudEventExtPullRequestNumber = "number" CloudEventExtCodeRepository = "repository" CloudEventExtWebhookType = "webhooktype" // Triggered when a pull request's head branch is updated. // For example, when the head branch is updated from the base branch, when new commits are pushed to the head branch, or when the base branch is changed. // Used for matching events in trigger filter CloudEventExtPullRequestActionSynchronize = "synchronize" // pull request title changed or description changed. // Used for matching events in trigger filter CloudEventExtPullRequestActionEdited = "edited" // Triggered when a pull request is closed // Used for matching events in trigger filter CloudEventExtPullRequestActionClosed = "closed" // Triggered when a pull request is merged // Used for matching events in trigger filter CloudEventExtPullRequestActionMerged = "merged" // event type of open pull request CloudEventExtPullRequestActionOpened = "opened" // event type of reopen pull request CloudEventExtPullRequestActionReOpened = "reopened" // action of create branch // Used for matching events in trigger filter CloudEventExtBranchActionCreate = "create" // action of delete branch // Used for matching events in trigger filter CloudEventExtBranchActionDelete = "delete" // action of create tag // Used for matching events in trigger filter CloudEventExtTagActionCreate = "create" // action of delete tag // Used for matching events in trigger filter CloudEventExtTagActionDelete = "delete" CloudEventExtArtifactActionPush = "push" // artifact type. eg. OCIHelmChart OCIContainerImage CloudEventExtArtifactType = "artifacttype" // resource URL. eg. katanomi/core:latest CloudEventExtArtifactResourceURL = "resourceurl" // is the digest of the manifest. eg. sha256:92d648... CloudEventExtArtifactDigest = "digest" // is the tag of the artifact. (if not assigned, the value same as digest) CloudEventExtArtifactTag = "tag" // username of user who pushed artifact CloudEventExtArtifactOperator = "operator" // push time timestamp CloudEventExtArtifactOccurAt = "occurat" // concat os-arch-variant and os-variant strings of all artifact, use # connect each string. // eg. #linux-amd64-#linux-#linux-arm64-v8#linux-v8# (only supported when artifact_type is OCIContainerImage) CloudEventExtArtifactPlatform = "platform" )
const ( // SkippedReason a task/stage/step was skipped SkippedReason = "Skipped" // CancelledReason a task/stage/step was cancelled CancelledReason = "Cancelled" // PendingReason resource is in a pending state waiting for some condition PendingReason = "Pending" // ApprovedReason a request/approval was approved ApprovedReason = "Approved" // DeniedReason a request/approval was denied DeniedReason = "Denied" // NotRequired a request/approval is not required and therefore was "approved" NotRequiredReason = "NotRequired" // RunningReason entered in a running state, a quality gate check is executing RunningReason = "Running" // CreatedReason created the object CreatedReason = "Created" // FailedReason execution/tests/quality gates failed FailedReason = "Failed" // SucceededReason execution/tests/quality gates succeeded SucceededReason = "Succeeded" // TimeoutReason execution/tests/quality gates timed out TimeoutReason = "Timeout" // QueuedReason is in a queued state QueuedReason = "Queued" // ValidationError some validation error occurred ValidationError = "ValidationError" // ErrorReason some error occurred ErrorReason = "Error" // StartedReason resource started to be reconciled StartedReason = "Started" // BlockedReason a testPlan was blocked BlockedReason = "Blocked" )
const ( // GitRevisionTypePullRequest pull request type. Uses `refs/<type>/<pr id>/head` as reference. // <type> depends on the vendor. Gihub uses `pulls`, Gitlab uses `merge-requests`, etc. GitRevisionTypePullRequest = "PullRequest" // GitRevisionTypeBranch branch type. Generally uses `refs/head/<branch>` GitRevisionTypeBranch = "Branch" // GitRevisionTypeTag specific tag name. Uses `refs/tag/<tag>` as reference. GitRevisionTypeTag = "Tag" // GitRevisionTypeCommit specific commit GitRevisionTypeCommit = "Commit" )
const ( // key for additional information type StatusInfoTypePipelineKey = "pipeline" StatusInfoTypeVulnerabilityScanKey = "vulnerabilityScan" StatusInfoTypeCodeScanKey = "codeScan" StatusInfoTypeArtifactKey = "artifact" StatusInfoTypeUnittestKey = "unittest" StatusInfoTypeVersionKey = "version" // vulnerability scan severity level key VulnerabilityScanNoneLevelKey = "None" VulnerabilityScanNegligibleLevelKey = "Negligible" VulnerabilityScanUnknownLevelKey = "Unknown" VulnerabilityScanLowLevelKey = "Low" VulnerabilityScanMediumLevelKey = "Medium" VulnerabilityScanHighLevelKey = "High" VulnerabilityScanCriticalLevelKey = "Critical" )
const ( IntegrationLabel = IntegrationLabelKey ClusterIntegrationLabel = ClusterIntegrationLabelKey ProjectLabel = ProjectLabelKey RepositoryLabel = RepositoryLabelKey )
const ( // SourceLabelKey indicates the source of the resource SourceLabelKey = "katanomi.dev/source" // ManagerByLabelKey indicates the manager of the resource ManagerByLabelKey = "katanomi.dev/managedBy" // SecretLabelKey secret resource name SecretLabelKey = "core.kubernetes.io/secret" //nolint:gosec // NamespaceLabelKey namespace of a resource NamespaceLabelKey = "core.kubernetes.io/namespace" // IntegrationClassLabelKey for integrationclass resource IntegrationClassLabelKey = "core.katanomi.dev/integrationClass" // ClusterIntegrationLabelKey for cluster integration resources ClusterIntegrationLabelKey = "integrations.katanomi.dev/clusterIntegration" // IntegrationLabelKey for integration resources IntegrationLabelKey = "integrations.katanomi.dev/integration" // ProjectLabelKey for integration resources ProjectLabelKey = "integrations.katanomi.dev/project" // RepositoryLabelKey for integration resources RepositoryLabelKey = "integrations.katanomi.dev/repository" // IntegrationAutoGenerateAnnotation annotation key to store generate flag. IntegrationAutoGenerateAnnotation = "integrations.katanomi.dev/resourceScope.autoGenerate" // IntegrationAddressAnnotation annotation key to store integration server address IntegrationAddressAnnotation = "integrations.katanomi.dev/integration.address" // IntegrationResourceScope annotation key to store integration resource scope IntegrationResourceScope = "integrations.katanomi.dev/integration.resourceScope" // IntegrationSecretApplyNamespaces annotation key to store apply namespace for current secret IntegrationSecretApplyNamespaces = "integrations.katanomi.dev/secret.applyNamespaces" // IntegrationSecretResourcePathFmt annotation indicates resource path format for current secret IntegrationSecretResourcePathFmt = "integrations.katanomi.dev/secret.resourcePathFmt" // IntegrationSecretSubResourcePathFmt annotation indicates sub resource path format for current secret IntegrationSecretSubResourcePathFmt = "integrations.katanomi.dev/secret.subResourcePathFmt" // SecretSyncMutationLabelKey label key to select the suitable secret SecretSyncMutationLabelKey = "integrations.katanomi.dev/integration.mutation" // SettingsTypeLabelKey label key to select the settings secret SettingsTypeLabelKey = "settings.katanomi.dev/settingsType" // SecretSyncGeneratorLabelKey The name of the secret is the integration credentials that are automatically synced to the namespace SecretSyncGeneratorLabelKey = "integrations.katanomi.dev/integration.secretsync" // ClusterGitSourceLabelKey for cluster git source resources ClusterGitSourceLabelKey = "sources.katanomi.dev/clusterGitSource" // GitSourceLabelKey for git source resources GitSourceLabelKey = "sources.katanomi.dev/gitSource" )
Common labels
const ( // CreatedTimeAnnotationKey creation time for objects CreatedTimeAnnotationKey = "katanomi.dev/creationTime" // CrossClusterAnnotationKey annotates a cross cluster resource/action CrossClusterAnnotationKey = "katanomi.dev/crossCluster" // ReconcileTriggeredAnnotationKey annotation key to trigger reconcile of objects ReconcileTriggeredAnnotationKey = "katanomi.dev/reconcileTriggeredOn" // NamespaceAnnotationKey namespace of objects NamespaceAnnotationKey = "katanomi.dev/namespace" // TriggeredByAnnotationKey annotation to store a TriggeredBy struct json TriggeredByAnnotationKey = "katanomi.dev/triggeredBy" // CreatedByAnnotationKey annotation key to store resource creation username CreatedByAnnotationKey = "katanomi.dev/createdBy" // UpdatedByAnnotationKey annotation key to store resource update username UpdatedByAnnotationKey = "katanomi.dev/updatedBy" // SecretTypeAnnotationKey annotation key for an existed secret with a different type SecretTypeAnnotationKey = "katanomi.dev/secretType" //nolint:gosec // ClusterNameAnnotationKey annotation key to store resource cluster name ClusterNameAnnotationKey = "katanomi.dev/clusterName" // ClusterRefNamespaceAnnotationKey annotation key to store cluster reference namespace ClusterRefNamespaceAnnotationKey = "katanomi.dev/clusterRefNamespace" // TriggerNameAnnotationKey annotation key to store a friendly trigger name TriggerNameAnnotationKey = "katanomi.dev/triggerName" // SettingsConvertTypesKey annotation key to store the setting types need to be converted SettingsConvertTypesKey = "settings.katanomi.dev/convertTypes" // SettingsAutoGenerateKey annotation key to store whether the secret is automatically generated SettingsAutoGenerateKey = "settings.katanomi.dev/autoGenerate" // UIDescriptorsAnnotationKey annotation for storing ui descriptors in resources UIDescriptorsAnnotationKey = "ui.katanomi.dev/descriptors" // PodAnnotationKeyPrefix uses a prefix for pod annotations in katanomi PodAnnotationKeyPrefix = "pod.katanomi.dev/" )
Common Annotations
const ( AuthAttributeKey = "auth" ReplicationPolicyTypesAttributeKey = "replicationPolicyTypes" ResourceTypesAttributeKey = "resourceTypes" SettingsTypesAttributeKey = "settingsTypes" MethodsAttributeKey = "methods" AllowEmptySecretAttributeKey = "allowEmptySecret" DefaultProjectTypeAttributeKey = "defaultProjectSubType" // ResourcePathFormat indicates project path format, // eg. maven project access url is /repository/maven // the value should be a json string like // { // "web-console": "/repository/%s", // "api": "/api/repository/%s", // } ResourcePathFormatAttributeKey = "resourcePathFormat" // SubResourcePathFormat indicates sub resource path format, // eg. bitbucket project access url is /scm/devops/demo // the value should be a json string like // { // "http-clone": "/scm/%s/%s", // "web-console": "/projects/%s/repo/%s", // } SubResourcePathFormatAttributeKey = "subResourcePathFormat" // GitPRRevisionPrefixes allows git related integrations // define custom PR revision prefixes GitPRRevisionPrefixes = "gitPRRevisionPrefixes" // PYPISubResourceExtendedAddressSuffixKey Add the corresponding suffix to the specified subResource which for pypi. // TODO: In the future, we need to adopt a better way to add // an extended dependency repository address to the plug-in PYPISubResourceExtendedAddressSuffixKey = "pypiSubResourceExtendedAddressSuffix" )
Attribute keys for Integrations Keys used in IntegrationClass.status.attributes
const ( LabelSourceSystem = "system" LabelSourceUser = "user" LabelKatanomi = "katanomi" )
Attribute values for label source or manager
const ( // ArtifactAliasAnnotationKey indicates the alias of the artifact parameter in the delivery ArtifactAliasAnnotationKey = "alias" // ImageRegistryEndpoint for artifact endpoint ImageRegistryEndpoint = "imageRegistryEndpoint" )
Annotation keys for artifact parameter
const ( FirstPage = 1 DefaultPageSize = 20 )
const ( // Build metadata key. BuildMetadataKey = "builds.katanomi.dev/buildrun" // NOSONAR // ignore: "Key" detected here, make sure this is not a hard-coded credential )
const (
ConditionReasonNotSet = "NotSet"
)
const DefaultTestPlansPerPage = 20
Variables ¶
var ( CodeQualityGVK = GroupVersion.WithKind("CodeQuality") CodeQualityLineChartGVK = GroupVersion.WithKind("CodeQualityLineChart") CodeQualityTaskMetricsGVK = GroupVersion.WithKind("CodeQualityTaskMetrics") )
var ( // GitRevisionGVK is the GVK for GitRevision GitRevisionGVK = GroupVersion.WithKind("GitRevision") // GitRevisionListGVK is the GVK for GitRevisionList GitRevisionListGVK = GroupVersion.WithKind("GitRevisionList") )
var ( GitBranchGVK = GroupVersion.WithKind("GitBranch") GitBranchListGVK = GroupVersion.WithKind("GitBranchList") )
var ( GitCommitGVK = GroupVersion.WithKind("GitCommit") GitCommitListGVK = GroupVersion.WithKind("GitCommitList") )
var ( GitCommitCommentGVK = GroupVersion.WithKind("GitCommitComment") GitCommitCommentListGVK = GroupVersion.WithKind("GitCommitCommentList") )
var ( GitCommitStatusGVK = GroupVersion.WithKind("GitCommitStatus") GitCommitStatusListGVK = GroupVersion.WithKind("GitCommitStatusList") )
var ( GitPullRequestsGVK = GroupVersion.WithKind("GitPullRequest") GitPullRequestsListGVK = GroupVersion.WithKind("GitPullRequestList") GitPullRequestNotesGVK = GroupVersion.WithKind("GitPullRequestNote") GitPullRequestNoteListGVK = GroupVersion.WithKind("GitPullRequestNoteList") )
var ( GitRepoFileGVK = GroupVersion.WithKind("GitRepositoryFile") GitRepoFileListGVK = GroupVersion.WithKind("GitRepositoryFileList") )
var ( GitRepoGVK = GroupVersion.WithKind("GitRepository") GitRepoListGVK = GroupVersion.WithKind("GitRepositoryList") )
var ( GitRepositoryTagGVK = GroupVersion.WithKind("GitRepositoryTag") GitRepositoryTagListGVK = GroupVersion.WithKind("GitRepositoryTagList") )
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "meta.katanomi.dev", 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 )
var ( // VariableGVK is the GVK for Variable VariableGVK = GroupVersion.WithKind("Variable") // VariableListGVK is the GVK for VariableList VariableListGVK = GroupVersion.WithKind("VariableList") )
var ArtifactGVK = GroupVersion.WithKind("Artifact")
var ArtifactListGVK = GroupVersion.WithKind("ArtifactList")
var AttributeGVK = GroupVersion.WithKind("Attribute")
var AuthCheckGVK = GroupVersion.WithKind("AuthCheck")
var BranchGVK = GroupVersion.WithKind("Branch")
var BranchListGVK = GroupVersion.WithKind("BranchList")
var (
CodeQualityProjectOverviewGVK = GroupVersion.WithKind("CodeQualityProjectOverview")
)
var DefinitionTriggeredTypeValues = definitionTriggeredTypeValuesType{
Manual: "Manual",
Automated: "Automated",
}
var (
GitRepositoryFileTreeGVK = GroupVersion.WithKind("GitRepositoryFileTree")
)
var ImageConfigGVK = GroupVersion.WithKind("ImageConfig")
var IssueGVK = GroupVersion.WithKind("Issue")
var IssueListGVK = GroupVersion.WithKind("IssueList")
var ProjectGVK = GroupVersion.WithKind("Project")
var ProjectListGVK = GroupVersion.WithKind("ProjectList")
var RepositoryGVK = GroupVersion.WithKind("Repository")
var RepositoryListGVK = GroupVersion.WithKind("RepositoryList")
var TestCaseExecutionGVK = GroupVersion.WithKind("TestCaseExecution")
var TestCaseExecutionListGVK = GroupVersion.WithKind("TestCaseExecutionList")
var TestCaseGVK = GroupVersion.WithKind("TestCase")
var TestCaseListGVK = GroupVersion.WithKind("TestCaseList")
var TestModuleGVK = GroupVersion.WithKind("TestModule")
var TestModuleListGVK = GroupVersion.WithKind("TestModuleList")
var TestPlanGVK = GroupVersion.WithKind("TestPlan")
var TestPlanListGVK = GroupVersion.WithKind("TestPlanList")
var ToolServiceGVK = GroupVersion.WithKind("ToolService")
ToolServiceGVK is the GVK for the ToolService type
var UserGVK = GroupVersion.WithKind("User")
var UserListGVK = GroupVersion.WithKind("UserList")
Functions ¶
func ArtifactResourceAttributes ¶
func ArtifactResourceAttributes(verb string) authv1.ResourceAttributes
ArtifactResourceAttributes returns a ResourceAttribute object to be used in a filter
func AttributeResourceAttributes ¶ added in v0.3.0
func AttributeResourceAttributes(verb string) authv1.ResourceAttributes
AttributeResourceAttributes returns a ResourceAttribute object to be used in a filter
func BranchResourceAttributes ¶ added in v0.3.0
func BranchResourceAttributes(verb string) authv1.ResourceAttributes
BranchResourceAttributes returns a ResourceAttribute object to be used in a filter
func CodeQualityResourceAttributes ¶ added in v0.7.0
func CodeQualityResourceAttributes(verb string) authv1.ResourceAttributes
CodeQualityResourceAttributes returns a ResourceAttribute object to be used in a filter
func CopyAnnotations ¶
CopyAnnotations from the left side object to the right side will override any existing values
func CopyLabels ¶
CopyLabels from the left side object to the right side will override any existing labels
func CopyMapStringString ¶
CopyMapStringString copies content from a map to another
func FilterMapKeys ¶ added in v0.7.0
FilterMapKeys filters a map[string]string by a list of keys
func GetCondition ¶ added in v0.7.0
func GetCondition(conditions apis.Conditions, t apis.ConditionType) *apis.Condition
GetCondition will return the first condition pointer filter by type in conditions
func GetNamespacedNameFromObject ¶
func GetNamespacedNameFromObject(obj metav1.Object) (named types.NamespacedName)
GetNamespacedNameFromObject returns a types.NamespacedName from an object
func GetNamespacedNameFromRef ¶
func GetNamespacedNameFromRef(ref *corev1.ObjectReference) (named types.NamespacedName)
GetNamespacedNameFromRef returns a types.NamespacedName from an object reference
func GetObjectReferenceFromObject ¶
func GetObjectReferenceFromObject(obj metav1.Object, opts ...ObjectRefOptionsFunc) (ref corev1.ObjectReference)
GetObjectReferenceFromObject extracts an object reference from an object
func GetSearchValue ¶ added in v0.7.0
func GetSearchValue(option ListOptions) string
GetSearchValue get search value from option use `searchValue` instead of `name`
func GitBranchResourceAttributes ¶ added in v0.7.0
func GitBranchResourceAttributes(verb string) authv1.ResourceAttributes
GitBranchResourceAttributes returns a ResourceAttribute object to be used in a filter
func GitCommitResourceAttributes ¶ added in v0.7.0
func GitCommitResourceAttributes(verb string) authv1.ResourceAttributes
GitCommitResourceAttributes returns a ResourceAttribute object to be used in a filter
func GitRepositoryResourceAttributes ¶
func GitRepositoryResourceAttributes(verb string) authv1.ResourceAttributes
GitRepositoryResourceAttributes returns a ResourceAttribute object to be used in a filter
func GitRepositoryTagResourceAttributes ¶ added in v0.7.0
func GitRepositoryTagResourceAttributes(verb string) authv1.ResourceAttributes
GitRepositoryTagResourceAttributes returns a ResourceAttribute object to be used in a filter
func HasAnnotation ¶
HasAnnotation returns true if the object has the annotation and the values matches
func HasAnnotationKey ¶ added in v0.7.0
HasAnnotationKey returns true if the object has the annotation key
func HasLabelKey ¶ added in v0.7.0
HasLabelKey returns true if the object has the label key
func IsConditionChanged ¶
func IsConditionChanged(current, old apis.ConditionAccessor, conditionType apis.ConditionType) bool
IsConditionChanged given two condition accessors and a condition type will check if conditions changed
func IsTheSameObject ¶
func IsTheSameObject(obj, compared corev1.ObjectReference) bool
IsTheSameObject compares two corev1.ObjectReference comparing: APIVersion, Kind, Name and Namespace. All other attributes are ignored
func IsTheSameObjectReference ¶
func IsTheSameObjectReference(obj, compared *corev1.ObjectReference) bool
IsTheSameObjectReference uses pointers to make comparison of objects
func IsTimeout ¶ added in v0.7.0
IsTimeout determine if the current is timeout. Take the current time as a reference, and compare it to the start time and the timeout duration.
func IssueResourceAttributes ¶ added in v0.3.0
func IssueResourceAttributes(verb string) authv1.ResourceAttributes
IssueResourceAttributes returns a ResourceAttribute object to be used in a filter
func LabelFilter ¶ added in v0.7.0
LabelFilter label filter func
func MapContainsKey ¶ added in v0.7.0
MapContainsKey checks if a map[string]string has a key
func MapContainsKeyValue ¶
MapContainsKeyValue checks if a map[string]string has a key with a specific value
func ObjectReferenceValGetter ¶ added in v0.7.0
func ObjectReferenceValGetter(obj *corev1.ObjectReference) substitution.GetValWithKeyFunc
ObjectReferenceValGetter returns the list of keys and values to support variable substitution for corev1.ObjectReference
func ParseEnvs ¶ added in v0.7.0
ParseEnvs will parse string array to map, like from [ "a=b", "c=d" ] to {a:b, c:d}
func ProjectResourceAttributes ¶ added in v0.7.0
func ProjectResourceAttributes(verb string) authv1.ResourceAttributes
ProjectResourceAttributes returns a ResourceAttribute object to be used in a filter
func PropagateCondition ¶
func PropagateCondition(conditionManager apis.ConditionManager, conditionType apis.ConditionType, condition *apis.Condition)
PropagateCondition propagates a condition based on an external conditions used mainly when a resource depends on another and its conditions needs to be synced
func RBACSubjectValGetter ¶ added in v0.7.0
func RBACSubjectValGetter(subject *rbac.Subject) substitution.GetValWithKeyFunc
RBACSubjectValGetter returns the list of keys and values to support variable substitution for rbac.
func ReasonForError ¶
ReasonForError returns a string for Reason from an error. If the error is a apimachinery.StatusError will return its reason, otherwise will return unknown
func RepositoryResourceAttributes ¶
func RepositoryResourceAttributes(verb string) authv1.ResourceAttributes
RepositoryResourceAttributes returns a ResourceAttribute object to be used in a filter
func SetConditionByError ¶
func SetConditionByError(conditionManager apis.ConditionManager, condition apis.ConditionType, err error)
SetConditionByError sets a condition using an error to determine if it is True or False. If the given error is not nil will examine its reason and mark the condition as False otherwise will set condition to True
func SetConditionByErrorReason ¶ added in v0.7.0
func SetConditionByErrorReason(conditionManager apis.ConditionManager, condition apis.ConditionType, err error, reason string)
SetConditionByErrorReason sets a condition with error and reason If the given error is not nil will examine its reason and mark the condition as False otherwise will set condition to True If the given reason is empty, it will parse a string for reason from the error
func TestCaseExecutionResourceAttributes ¶ added in v0.7.0
func TestCaseExecutionResourceAttributes(verb string) authv1.ResourceAttributes
TestCaseExecutionResourceAttributes returns a ResourceAttribute object to be used in a filter
func TestCaseResourceAttributes ¶ added in v0.7.0
func TestCaseResourceAttributes(verb string) authv1.ResourceAttributes
TestCaseResourceAttributes returns a ResourceAttribute object to be used in a filter
func TestModuleResourceAttributes ¶ added in v0.7.0
func TestModuleResourceAttributes(verb string) authv1.ResourceAttributes
TestModuleResourceAttributes returns a ResourceAttribute object to be used in a filter
func TestPlanResourceAttributes ¶ added in v0.7.0
func TestPlanResourceAttributes(verb string) authv1.ResourceAttributes
TestPlanResourceAttributes returns a ResourceAttribute object to be used in a filter
func UserResourceAttributes ¶ added in v0.3.0
func UserResourceAttributes(verb string) authv1.ResourceAttributes
UserResourceAttributes returns a ResourceAttribute object to be used in a filter
func ValidateUser ¶ added in v0.7.0
func ValidateUser(ctx context.Context, user rbacv1.Subject, path *field.Path) (errs field.ErrorList)
ValidateUser validates an user for approval
func VariableResourceAttributes ¶ added in v0.7.0
func VariableResourceAttributes(verb string) authv1.ResourceAttributes
VariableResourceAttributes returns a ResourceAttribute object to be used in a filter
Types ¶
type Approval ¶ added in v0.7.0
type Approval struct {
// Users list of users that can perform approval for the Stage execution
// have a webhook to ensure that the patch operation will not erase data
Users UserApprovals `json:"users,omitempty"`
}
Approval runtime object for approval process
func (*Approval) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Approval.
func (*Approval) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Approval) HasApprover ¶ added in v0.7.0
HasApprover indicates whether the approver exists.
type ApprovalCheckStatus ¶ added in v0.7.0
type ApprovalCheckStatus struct {
// ApprovalStartTime is the time to actually start waiting for approval
// +optional
ApprovalStartTime *metav1.Time `json:"approvalStartTime,omitempty"`
// Approval status for approval process
// +optional
Approvals ApprovalStatuses `json:"approvals,omitempty"`
}
ApprovalCheckStatus contains approval status
func (*ApprovalCheckStatus) ApprovalIsStarted ¶ added in v0.7.0
func (cs *ApprovalCheckStatus) ApprovalIsStarted() bool
ApprovalIsStarted indicates whether the approver is started.
func (*ApprovalCheckStatus) DeepCopy ¶ added in v0.7.0
func (in *ApprovalCheckStatus) DeepCopy() *ApprovalCheckStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApprovalCheckStatus.
func (*ApprovalCheckStatus) DeepCopyInto ¶ added in v0.7.0
func (in *ApprovalCheckStatus) DeepCopyInto(out *ApprovalCheckStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApprovalCheckStatus) StartWaitingApproval ¶ added in v0.7.0
func (cs *ApprovalCheckStatus) StartWaitingApproval()
StartWaitingApproval set the approval start time, if it is empty.
type ApprovalPolicy ¶ added in v0.7.0
type ApprovalPolicy string
ApprovalPolicy indicate the policy of approval
const ( // ApprovalPolicyAny any one approved it, consider it passed. ApprovalPolicyAny ApprovalPolicy = "Any" // ApprovalPolicyAll must be approved by all users, consider it passed. ApprovalPolicyAll ApprovalPolicy = "All" // ApprovalPolicyInOrder must be approved by all users in order, consider it passed. ApprovalPolicyInOrder ApprovalPolicy = "InOrder" )
func (ApprovalPolicy) String ¶ added in v0.7.0
func (policy ApprovalPolicy) String() string
type ApprovalSpec ¶ added in v0.7.0
type ApprovalSpec struct {
// Users a list of users that can perform approval for the Stage execution
Users []rbacv1.Subject `json:"users,omitempty"`
// Policy defines the policy of approval, such as `Any`, `All`, `InOrder`. (Defaults is `Any`)
// +kubebuilder:default="Any"
// +kubebuilder:validation:Enum={"Any","All","InOrder"}
Policy ApprovalPolicy `json:"policy"`
// Timeout duration for approval. Once the StageRun starts approval,
// its execution will wait until it is approved.
// Once the timeout duration is reached it will automatically fail the StageRun
Timeout metav1.Duration `json:"timeout"`
// RequiresDifferentApprover If set to true will remove permission from a specific user to
// approve if himself is the one who triggered the resource
// +optional
RequiresDifferentApprover bool `json:"requiresDifferentApprover"`
}
ApprovalSpec Manual approval policy.
func (*ApprovalSpec) DeepCopy ¶ added in v0.7.0
func (in *ApprovalSpec) DeepCopy() *ApprovalSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApprovalSpec.
func (*ApprovalSpec) DeepCopyInto ¶ added in v0.7.0
func (in *ApprovalSpec) DeepCopyInto(out *ApprovalSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApprovalSpec) GetApprovalUsers ¶ added in v0.7.0
func (a *ApprovalSpec) GetApprovalUsers() []rbacv1.Subject
GetApprovalUsers returns the users that can approve.
func (*ApprovalSpec) HasApprover ¶ added in v0.7.0
func (a *ApprovalSpec) HasApprover() bool
HasApprover indicates whether the approver exists.
func (*ApprovalSpec) IsEnabled ¶ added in v0.7.0
func (a *ApprovalSpec) IsEnabled() bool
IsEnabled indicates whether the approval is enabled.
func (*ApprovalSpec) TimeoutEnabled ¶ added in v0.7.0
func (a *ApprovalSpec) TimeoutEnabled() bool
TimeoutEnabled indicates whether the timeout is enabled.
type ApprovalStatus ¶ added in v0.7.0
type ApprovalStatus struct {
// Approval user data
rbacv1.Subject `json:",inline"`
// Stores the user input for the approval.
// Once provided may determine the execution of StageRun
*UserApprovalInput `json:",inline"`
// Operator record the real operator of the approval
// Exist only when the actual approver is someone else.
// +optional
Operator *rbacv1.Subject `json:"operator,omitempty"`
// Time of approval
ApprovalTime *metav1.Time `json:"approvalTime,omitempty"`
}
ApprovalStatus status for approval process
func (*ApprovalStatus) DeepCopy ¶ added in v0.7.0
func (in *ApprovalStatus) DeepCopy() *ApprovalStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApprovalStatus.
func (*ApprovalStatus) DeepCopyInto ¶ added in v0.7.0
func (in *ApprovalStatus) DeepCopyInto(out *ApprovalStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApprovalStatuses ¶ added in v0.7.0
type ApprovalStatuses []ApprovalStatus
func (ApprovalStatuses) DeepCopy ¶ added in v0.7.0
func (in ApprovalStatuses) DeepCopy() ApprovalStatuses
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApprovalStatuses.
func (ApprovalStatuses) DeepCopyInto ¶ added in v0.7.0
func (in ApprovalStatuses) DeepCopyInto(out *ApprovalStatuses)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ApprovalStatuses) GetBySubject ¶ added in v0.7.0
func (as ApprovalStatuses) GetBySubject(subject rbacv1.Subject) *ApprovalStatus
type Artifact ¶
type Artifact struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ArtifactSpec `json:"spec"`
}
Artifact object for plugins TODO: move to pkg/apis/artifacts/v1alpha1
func (*Artifact) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Artifact.
func (*Artifact) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Artifact) ParseProperties ¶ added in v0.7.0
func (a Artifact) ParseProperties() (ArtifactProperties, error)
ParseProperties will parse spec.properties to ArtifactProperties
type ArtifactEnvFilter ¶ added in v0.7.0
type ArtifactEnvFilter struct {
// Name represent env name
Name string `json:"name,omitempty"`
// Regex regular expressions matches env
Regex ArtifactFilterRegexList `json:"regex,omitempty"`
}
ArtifactEnvFilter contains name and regular expressions used to match the artifact's env. TODO: move to pkg/apis/artifacts/v1alpha1
func (*ArtifactEnvFilter) DeepCopy ¶ added in v0.7.0
func (in *ArtifactEnvFilter) DeepCopy() *ArtifactEnvFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactEnvFilter.
func (*ArtifactEnvFilter) DeepCopyInto ¶ added in v0.7.0
func (in *ArtifactEnvFilter) DeepCopyInto(out *ArtifactEnvFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactExtraAttrs ¶ added in v0.7.0
type ArtifactExtraAttrs struct {
// OS system os type
OS string `json:"os,omitempty"`
// Architecture artifact arch
Architecture string `json:"architecture,omitempty"`
// Variant system variant
Variant string `json:"Variant,omitempty"`
// Config represent original container image config
Config v1.ImageConfig `json:"config,omitempty"`
}
ArtifactExtraAttrs represents artifact extra attributes like os TODO: move to pkg/apis/artifacts/v1alpha1 +k8s:deepcopy-gen=false
type ArtifactFilter ¶ added in v0.7.0
type ArtifactFilter struct {
// +optional
Tags []ArtifactTagFilter `json:"tags,omitempty"`
// +optional
Envs []ArtifactEnvFilter `json:"envs,omitempty"`
// +optional
Labels []ArtifactLabelFilter `json:"labels,omitempty"`
}
ArtifactFilter artifact filter. TODO: move to pkg/apis/artifacts/v1alpha1
func (*ArtifactFilter) DeepCopy ¶ added in v0.7.0
func (in *ArtifactFilter) DeepCopy() *ArtifactFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactFilter.
func (*ArtifactFilter) DeepCopyInto ¶ added in v0.7.0
func (in *ArtifactFilter) DeepCopyInto(out *ArtifactFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactFilterRegexList ¶ added in v0.7.0
type ArtifactFilterRegexList []string
ArtifactFilterRegexList string slice TODO: move to pkg/apis/artifacts/v1alpha1
func (ArtifactFilterRegexList) DeepCopy ¶ added in v0.7.0
func (in ArtifactFilterRegexList) DeepCopy() ArtifactFilterRegexList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactFilterRegexList.
func (ArtifactFilterRegexList) DeepCopyInto ¶ added in v0.7.0
func (in ArtifactFilterRegexList) DeepCopyInto(out *ArtifactFilterRegexList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactFilterSet ¶ added in v0.7.0
type ArtifactFilterSet struct {
// all nested filter expressions MUST evaluate to true in order for the all filter expression to be true.
// +optional
All []ArtifactFilter `json:"all,omitempty"`
// at least one nested filter expressions MUST evaluate to true in order for any filter expression to be true
// +optional
Any []ArtifactFilter `json:"any,omitempty"`
}
ArtifactFilterSet filters for ArtifactPromotionPolicy TODO: move to pkg/apis/artifacts/v1alpha1
func (*ArtifactFilterSet) DeepCopy ¶ added in v0.7.0
func (in *ArtifactFilterSet) DeepCopy() *ArtifactFilterSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactFilterSet.
func (*ArtifactFilterSet) DeepCopyInto ¶ added in v0.7.0
func (in *ArtifactFilterSet) DeepCopyInto(out *ArtifactFilterSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactLabelFilter ¶ added in v0.7.0
type ArtifactLabelFilter struct {
// Name represent label name
Name string `json:"name,omitempty"`
// Regex regular expressions matches label
Regex ArtifactFilterRegexList `json:"regex,omitempty"`
}
ArtifactLabelFilter contains name and regular expressions used to match the artifact's label.
func (*ArtifactLabelFilter) DeepCopy ¶ added in v0.7.0
func (in *ArtifactLabelFilter) DeepCopy() *ArtifactLabelFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactLabelFilter.
func (*ArtifactLabelFilter) DeepCopyInto ¶ added in v0.7.0
func (in *ArtifactLabelFilter) DeepCopyInto(out *ArtifactLabelFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactList ¶
type ArtifactList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []Artifact `json:"items"`
}
ArtifactList list of artifacts TODO: move to pkg/apis/artifacts/v1alpha1
func (*ArtifactList) DeepCopy ¶
func (in *ArtifactList) DeepCopy() *ArtifactList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactList.
func (*ArtifactList) DeepCopyInto ¶
func (in *ArtifactList) DeepCopyInto(out *ArtifactList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArtifactList) Filter ¶ added in v0.3.0
func (r *ArtifactList) Filter(filter func(artifact Artifact) bool) *ArtifactList
Filter takes a closure that returns true or false, if true, the artifact should be present
func (*ArtifactList) Paginate ¶ added in v0.3.0
func (r *ArtifactList) Paginate(page int, pageSize int) *ArtifactList
Paginate return a pagination subset of artifact list with specific page and page size
type ArtifactOptions ¶
type ArtifactOptions struct {
RepositoryOptions
// repository name
Repository string `json:"repository"`
// artifact name
Artifact string `json:"artifact"`
}
ArtifactOptions path params
func (*ArtifactOptions) DeepCopy ¶
func (in *ArtifactOptions) DeepCopy() *ArtifactOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactOptions.
func (*ArtifactOptions) DeepCopyInto ¶
func (in *ArtifactOptions) DeepCopyInto(out *ArtifactOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactParameterSpec ¶ added in v0.7.0
type ArtifactParameterSpec struct {
// URI for artifact, must be a complete identifier, i.e docker.io/katanomi/repository
// +optional
URI string `json:"uri,omitempty"`
// Type of artifact to be expected in this parameter
// +optional
Type ArtifactType `json:"type,omitempty"`
// Annotations for the artifact.
// +optional
Annotations map[string]string `json:"annotations,omitempty"`
// IntegrationClassName is instance name of IntegrationClass.
// +optional
IntegrationClassName string `json:"integrationClassName,omitempty"`
}
ArtifactParameterSpec specs for an strong typed parameter as an artifact TODO: move to pkg/apis/artifacts/v1alpha1
func (*ArtifactParameterSpec) DeepCopy ¶ added in v0.7.0
func (in *ArtifactParameterSpec) DeepCopy() *ArtifactParameterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactParameterSpec.
func (*ArtifactParameterSpec) DeepCopyInto ¶ added in v0.7.0
func (in *ArtifactParameterSpec) DeepCopyInto(out *ArtifactParameterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactProperties ¶ added in v0.7.0
type ArtifactProperties struct {
// Size represent size of artifact
Size int64 `json:"size,omitempty"`
// Tags represent all tags of current artifact
// +optional
Tags []ArtifactTag `json:"tags,omitempty"`
//ExtraAttrs artifact extra attributes
// +optional
ExtraAttrs ArtifactExtraAttrs `json:"extra_attrs,omitempty"`
//References artifact references
References []ArtifactReference `json:"references,omitempty"`
}
ArtifactProperties we should promote all shared field in properties into spec but just defined it before we do the promotion TODO: move to pkg/apis/artifacts/v1alpha1 +k8s:deepcopy-gen=false
type ArtifactReference ¶ added in v0.7.0
type ArtifactReference struct {
// ChildDigest child artifact digests
ChildDigest string `json:"child_digest"`
// Platform artifact platform
Platform *v1.Platform `json:"platform"`
}
ArtifactReference represents reference of artifact TODO: move to pkg/apis/artifacts/v1alpha1 +k8s:deepcopy-gen=false
func (ArtifactReference) PlatformString ¶ added in v0.7.0
func (ref ArtifactReference) PlatformString() string
PlatformString will return format os/arch
type ArtifactSpec ¶
type ArtifactSpec struct {
// Address API related access URL
// +optional
Address *duckv1.Addressable `json:"address,omitempty"`
// Access stores the webconsole address if any
// +optional
Access *duckv1.Addressable `json:"access,omitempty"`
// Type of repository content
Type string `json:"type"`
// Version of specified artifact
Version string `json:"version"`
// UpdatedTime updated time for repository
// +optional
UpdatedTime metav1.Time `json:"updatedTime"`
// PullTime latest pull time for repository
// +optional
PullTime *metav1.Time `json:"pullTime,omitempty"`
// Properties extended properties for Artifact
// +optional
Properties *runtime.RawExtension `json:"properties,omitempty"`
}
ArtifactSpec spec for repository TODO: add more necessary spec data TODO: move to pkg/apis/artifacts/v1alpha1
func (*ArtifactSpec) DeepCopy ¶
func (in *ArtifactSpec) DeepCopy() *ArtifactSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactSpec.
func (*ArtifactSpec) DeepCopyInto ¶
func (in *ArtifactSpec) DeepCopyInto(out *ArtifactSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactTag ¶ added in v0.7.0
type ArtifactTag struct {
// Name artifact tag name
Name string `json:"name,omitempty"`
}
ArtifactTag represent tag of artifact TODO: move to pkg/apis/artifacts/v1alpha1 +k8s:deepcopy-gen=false
type ArtifactTagFilter ¶ added in v0.7.0
type ArtifactTagFilter struct {
// Regex regular expressions matches tag
Regex ArtifactFilterRegexList `json:"regex,omitempty"`
}
ArtifactTagFilter contains regular expressions used to match the artifact's tag. TODO: move to pkg/apis/artifacts/v1alpha1
func (*ArtifactTagFilter) DeepCopy ¶ added in v0.7.0
func (in *ArtifactTagFilter) DeepCopy() *ArtifactTagFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactTagFilter.
func (*ArtifactTagFilter) DeepCopyInto ¶ added in v0.7.0
func (in *ArtifactTagFilter) DeepCopyInto(out *ArtifactTagFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactTagOptions ¶ added in v0.7.0
type ArtifactTagOptions struct {
ArtifactOptions
// repository name
Tag string `json:"tag"`
}
ArtifactTagOptions path params
func (*ArtifactTagOptions) DeepCopy ¶ added in v0.7.0
func (in *ArtifactTagOptions) DeepCopy() *ArtifactTagOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactTagOptions.
func (*ArtifactTagOptions) DeepCopyInto ¶ added in v0.7.0
func (in *ArtifactTagOptions) DeepCopyInto(out *ArtifactTagOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactType ¶ added in v0.7.0
type ArtifactType string
ArtifactType type of artifacts parameter enum
const ( // OCIHelmChartArtifactParameterType helm charts as OCI artifact // Deprecated: use pkg/apis/artifacts/v1alpha1.ArtifactTypeHelmChart instead OCIHelmChartArtifactParameterType ArtifactType = "OCIHelmChart" // OCIContainerImageArtifactParameterType runnable container image used to deploy workloads' // Deprecated: use pkg/apis/artifacts/v1alpha1.ArtifactTypeContainerImage instead OCIContainerImageArtifactParameterType ArtifactType = "OCIContainerImage" )
type Attribute ¶ added in v0.3.0
type Attribute struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec AttributeSpec `json:"spec"`
}
Attribute object for project management issue attribute
func (*Attribute) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Attribute.
func (*Attribute) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AttributeSpec ¶ added in v0.3.0
type AttributeSpec struct {
// Issue type of user self define in project
Types []IssueType `json:"types"`
// Issue priority of user self define in project
Priorities []IssuePriority `json:"priorities"`
// Issue status of user self define in project
Statuses []AttributeStatus `json:"statuses"`
}
AttributeSpec for issue
func (*AttributeSpec) DeepCopy ¶ added in v0.7.0
func (in *AttributeSpec) DeepCopy() *AttributeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttributeSpec.
func (*AttributeSpec) DeepCopyInto ¶ added in v0.7.0
func (in *AttributeSpec) DeepCopyInto(out *AttributeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AttributeStatus ¶ added in v0.3.0
type AttributeStatus struct {
// project attribute status id
ID string `json:"id"`
// project attribute status name
Name string `json:"name"`
}
AttributeStatus for issue status type
func (*AttributeStatus) DeepCopy ¶ added in v0.7.0
func (in *AttributeStatus) DeepCopy() *AttributeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttributeStatus.
func (*AttributeStatus) DeepCopyInto ¶ added in v0.7.0
func (in *AttributeStatus) DeepCopyInto(out *AttributeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthCheck ¶ added in v0.2.0
type AuthCheck struct {
metav1.TypeMeta `json:",inline"`
Spec *AuthCheckSpec `json:"spec,omitempty"`
Status AuthCheckStatus `json:"status"`
}
AuthCheck consists of result for an auth check request +k8s:deepcopy-gen=false
type AuthCheckOptions ¶ added in v0.2.0
type AuthCheckOptions struct {
RedirectURL string `json:"redirectURL"`
}
AuthCheckOptions options for AuthCheck most of the necessary data is already embed in headers
func (*AuthCheckOptions) DeepCopy ¶ added in v0.3.0
func (in *AuthCheckOptions) DeepCopy() *AuthCheckOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthCheckOptions.
func (*AuthCheckOptions) DeepCopyInto ¶ added in v0.3.0
func (in *AuthCheckOptions) DeepCopyInto(out *AuthCheckOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthCheckSpec ¶ added in v0.2.0
type AuthCheckSpec struct {
RedirectURL string `json:"redirectURL"`
Secret *corev1.ObjectReference `json:"secretRef,omitempty"`
IntegrationClassName string `json:"integrationClassName,omitempty"`
BaseURL string `json:"baseURL,omitempty"`
Version string `json:"version,omitempty"`
}
func (*AuthCheckSpec) DeepCopy ¶ added in v0.3.0
func (in *AuthCheckSpec) DeepCopy() *AuthCheckSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthCheckSpec.
func (*AuthCheckSpec) DeepCopyInto ¶ added in v0.3.0
func (in *AuthCheckSpec) DeepCopyInto(out *AuthCheckSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthCheckStatus ¶ added in v0.2.0
type AuthCheckStatus struct {
// Allowed describes if the headers used where accepted or not by the integrated system.
// `True` when accepted,
// `False` when not accepted or when secret data is incomplete (oAuth2 flow),
// `Unknown` for a standard `not implemented` response.
Allowed corev1.ConditionStatus `json:"allowed"`
// Message a message explaining the response content
Message string `json:"message,omitempty"`
// Reason specific reason enum for the given status
Reason string `json:"reason,omitempty"`
// RedirectURL the provided redirect url for oauthFlow
// +optional
RedirectURL string `json:"redirectURL,omitempty"`
// AuthorizeURL url for the oAuth2 flow
// +optional
AuthorizeURL string `json:"authorizeURL,omitempty"`
// Provides the ability to convert username and password, and token refresh.
// +optional
RefreshData *AuthTokenStatus `json:"refreshData,omitempty"`
}
AuthCheckStatus status for authcheck +k8s:deepcopy-gen=false
type AuthToken ¶ added in v0.2.0
type AuthToken struct {
metav1.TypeMeta `json:",inline"`
Status AuthTokenStatus `json:"status"`
}
AuthToken access token request response +k8s:deepcopy-gen=false
type AuthTokenStatus ¶ added in v0.2.0
type AuthTokenStatus struct {
// AccessTokenKey store the key for accessToken it is mainly for git clone as userName
AccessTokenKey string `json:"accessTokenKey"`
// AccessToken access token used for oAuth2
AccessToken string `json:"accessToken"`
// RefreshToken to renew access token when expired
RefreshToken string `json:"refreshToken,omitempty"`
// TokenType provides a token type for consumers, usually is a bearer type
TokenType string `json:"tokenType"`
// ExpiresIn token expiration duration
ExpiresIn time.Duration `json:"expiresIn"`
// CreatedAt time which access token was generated.
// Used with ExpiresIn to calculate expiration time
CreatedAt time.Time `json:"createdAt"`
}
AuthTokenStatus access token request response status +k8s:deepcopy-gen=false
type BaseGitStatus ¶ added in v0.7.0
type BaseGitStatus struct {
// URL means git repository url of current buildrun
// +optional
URL string `json:"url,omitempty" variable:"example=https://github.com/repository/tree/main"`
// Revision code revision used. uses a git clone format
// refs/head/main or refs/pulls/1/head etc
// +optional
Revision *GitRevision `json:"revision,omitempty" variable:"example=refs/head/main"`
// LastCommit means last commit status of current build
// +optional
LastCommit *BuildGitCommitStatus `json:"lastCommit,omitempty" variable:"example=3cb8901f"`
// PullRequest means pull request status of current build
// +optional
PullRequest *BuildGitPullRequestStatus `json:"pullRequest,omitempty" variable:"example=1"`
// Branch status of current build
// +optional
Branch *BuildGitBranchStatus `json:"branch,omitempty" variable:"example=main"`
// Target branch status of current build for Pull requests
// +optional
Target *BuildGitBranchStatus `json:"target,omitempty" variable:"example=main"`
}
BaseGitStatus is the base git status
func (*BaseGitStatus) DeepCopy ¶ added in v0.7.0
func (in *BaseGitStatus) DeepCopy() *BaseGitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaseGitStatus.
func (*BaseGitStatus) DeepCopyInto ¶ added in v0.7.0
func (in *BaseGitStatus) DeepCopyInto(out *BaseGitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BaseGitStatus) GetValWithKey ¶ added in v0.7.0
type BlobStore ¶ added in v0.2.0
type BlobStore struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec BlobStoreSpec `json:"spec"`
}
func (*BlobStore) DeepCopy ¶ added in v0.3.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlobStore.
func (*BlobStore) DeepCopyInto ¶ added in v0.3.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BlobStoreList ¶ added in v0.2.0
type BlobStoreList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []BlobStore `json:"items"`
}
func (*BlobStoreList) DeepCopy ¶ added in v0.3.0
func (in *BlobStoreList) DeepCopy() *BlobStoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlobStoreList.
func (*BlobStoreList) DeepCopyInto ¶ added in v0.3.0
func (in *BlobStoreList) DeepCopyInto(out *BlobStoreList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BlobStoreSpec ¶ added in v0.2.0
type BlobStoreSpec struct {
Type string `json:"type"`
}
func (*BlobStoreSpec) DeepCopy ¶ added in v0.3.0
func (in *BlobStoreSpec) DeepCopy() *BlobStoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlobStoreSpec.
func (*BlobStoreSpec) DeepCopyInto ¶ added in v0.3.0
func (in *BlobStoreSpec) DeepCopyInto(out *BlobStoreSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Branch ¶ added in v0.3.0
type Branch struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec BranchSpec `json:"spec"`
}
Branch object for plugin
func (*Branch) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Branch.
func (*Branch) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BranchList ¶ added in v0.3.0
type BranchList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []Branch `json:"items"`
}
BranchList list of branch
func (*BranchList) DeepCopy ¶ added in v0.7.0
func (in *BranchList) DeepCopy() *BranchList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchList.
func (*BranchList) DeepCopyInto ¶ added in v0.7.0
func (in *BranchList) DeepCopyInto(out *BranchList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BranchSpec ¶ added in v0.3.0
type BranchSpec struct {
// issue info
Issue IssueInfo `json:"issue"`
// Branch author
Author UserSpec `json:"author"`
// Address stores the branch address
Address *duckv1.Addressable `json:"address"`
// CodeInfo stores the branch info in code repo
CodeInfo CodeInfo `json:"codeInfo"`
}
BranchSpec for branch
func (*BranchSpec) DeepCopy ¶ added in v0.7.0
func (in *BranchSpec) DeepCopy() *BranchSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchSpec.
func (*BranchSpec) DeepCopyInto ¶ added in v0.7.0
func (in *BranchSpec) DeepCopyInto(out *BranchSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BranchSpec) Equal ¶ added in v0.7.0
func (b *BranchSpec) Equal(item BranchSpec) bool
Equal compares two branchSpec for equality.
type BuildGitBranchStatus ¶ added in v0.3.0
type BuildGitBranchStatus struct {
// Name of git branch
// +optional
Name string `json:"name,omitempty" variable:"label=default;example=main"`
// Protected represent if is the protected branch
// +optional
Protected bool `json:"protected" variable:"example=true"`
// Default represent if is the protected branch
// +optional
Default bool `json:"default" variable:"example=true"`
// WebURL to access the branch
// +optional
WebURL string `json:"webURL,omitempty" variable:"example=https://github.com/repository/tree/main"`
}
BuildGitBranchStatus represent branch status of build run
func (*BuildGitBranchStatus) AssignByGitBranch ¶ added in v0.7.0
func (b *BuildGitBranchStatus) AssignByGitBranch(gitBranch *GitBranch) *BuildGitBranchStatus
AssignByGitBranch is used to assign the information from GitBranch
func (*BuildGitBranchStatus) DeepCopy ¶ added in v0.3.0
func (in *BuildGitBranchStatus) DeepCopy() *BuildGitBranchStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildGitBranchStatus.
func (*BuildGitBranchStatus) DeepCopyInto ¶ added in v0.3.0
func (in *BuildGitBranchStatus) DeepCopyInto(out *BuildGitBranchStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildGitBranchStatus) GetValWithKey ¶ added in v0.7.0
type BuildGitCommitStatus ¶ added in v0.3.0
type BuildGitCommitStatus struct {
// ShortID means last commit short id
// +optional
ShortID string `json:"shortID,omitempty" variable:"label=default;example=3cb8901f"`
// ID represent last commit id
// +optional
ID string `json:"id,omitempty" variable:"example=3cb8901fb325228ea27b751fcf0d6c0658a57f01"`
// Title represent last commit title
// +optional
Title string `json:"title,omitempty" variable:"example=Update README.md"`
// Message of last commit
// +optional
Message string `json:"message,omitempty" variable:"example=Author email when running build"`
// AuthorEmail of last commit
// +optional
AuthorEmail string `json:"authorEmail,omitempty" variable:"example=joedoe@example.com"`
// PushedAt means push time of last commit
// +optional
PushedAt *metav1.Time `json:"pushedAt,omitempty" variable:"example=2022-08-04T17:21:36Z"`
// webURL access link of the commit
// +optional
WebURL string `json:"webURL,omitempty" variable:"example=https://github.com/repository/commit/3cb8901fb325228ea27b751fcf0d6c0658a57f01"`
}
func (*BuildGitCommitStatus) AssignByGitCommit ¶ added in v0.7.0
func (b *BuildGitCommitStatus) AssignByGitCommit(gitCommit *GitCommit) *BuildGitCommitStatus
AssignByGitCommit is used to assign the information from GitCommit
func (*BuildGitCommitStatus) DeepCopy ¶ added in v0.3.0
func (in *BuildGitCommitStatus) DeepCopy() *BuildGitCommitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildGitCommitStatus.
func (*BuildGitCommitStatus) DeepCopyInto ¶ added in v0.3.0
func (in *BuildGitCommitStatus) DeepCopyInto(out *BuildGitCommitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildGitCommitStatus) GetValWithKey ¶ added in v0.7.0
type BuildGitPullRequestStatus ¶ added in v0.3.0
type BuildGitPullRequestStatus struct {
// ID is identity of pull request
// +optional
ID string `json:"id,omitempty" variable:"label=default;example=1"`
// Title of pullrequest if current build is building a pull request
// +optional
Title string `json:"title,omitempty" variable:"example=Lets merge code"`
// Source of pullrequest if current build is building a pull request
// +optional
Source string `json:"source,omitempty" variable:"label=default;example=branch"`
// Target of pullrequest if current build is building a pull request
// +optional
Target string `json:"target,omitempty" variable:"label=default;example=main"`
// AuthorEmail of pull request
// +optional
AuthorEmail string `json:"authorEmail,omitempty" variable:"example=joedoe@example.com"`
// WebURL to access pull request
// +optional
WebURL string `json:"webURL,omitempty" variable:"example=https://github.com/repository/pull/1"`
// HasConflicts represent if has conflicts in pull request
// +optional
HasConflicts bool `json:"hasConflicts" variable:"example=false"`
}
func (*BuildGitPullRequestStatus) AssignByGitPullRequest ¶ added in v0.7.0
func (b *BuildGitPullRequestStatus) AssignByGitPullRequest(gitPullRequest *GitPullRequest) *BuildGitPullRequestStatus
AssignByGitPullRequest is used to assign the information from GitPullRequest
func (*BuildGitPullRequestStatus) DeepCopy ¶ added in v0.3.0
func (in *BuildGitPullRequestStatus) DeepCopy() *BuildGitPullRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildGitPullRequestStatus.
func (*BuildGitPullRequestStatus) DeepCopyInto ¶ added in v0.3.0
func (in *BuildGitPullRequestStatus) DeepCopyInto(out *BuildGitPullRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildGitPullRequestStatus) GetValWithKey ¶ added in v0.7.0
type BuildMetaData ¶ added in v0.3.0
type BuildMetaData struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Status BuildMetaDataStatus `json:"status,omitempty"`
}
BuildMetaData this structure is a derivative of buildrun and is used for artifacts to record build information.
func (*BuildMetaData) DeepCopy ¶ added in v0.3.0
func (in *BuildMetaData) DeepCopy() *BuildMetaData
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildMetaData.
func (*BuildMetaData) DeepCopyInto ¶ added in v0.3.0
func (in *BuildMetaData) DeepCopyInto(out *BuildMetaData)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuildMetaDataStatus ¶ added in v0.3.0
type BuildMetaDataStatus struct {
// Git represent code repository status of buildrun
// +optional
Git *BuildRunGitStatus `json:"git,omitempty"`
// TriggeredBy is the reason for the event trigger
// +optional
TriggeredBy *TriggeredBy `json:"triggeredBy,omitempty"`
}
func (*BuildMetaDataStatus) DeepCopy ¶ added in v0.3.0
func (in *BuildMetaDataStatus) DeepCopy() *BuildMetaDataStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildMetaDataStatus.
func (*BuildMetaDataStatus) DeepCopyInto ¶ added in v0.3.0
func (in *BuildMetaDataStatus) DeepCopyInto(out *BuildMetaDataStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuildRunGitStatus ¶ added in v0.3.0
type BuildRunGitStatus struct {
// BaseGitStatus is the base git status
BaseGitStatus `json:",inline"`
// VersionPhase is the phase on the versionscheme that matches this git revision.
// +optional
VersionPhase string `json:"versionPhase,omitempty" variable:"-"`
// Version is the version generated for this git revision
// +optional
Version string `json:"version,omitempty" variable:"-"`
// VersionVariants are different variants generated based on version
// key is the name of the variant, value is the value after the variant.
// +optional
VersionVariants map[string]string `json:"versionVariants,omitempty"`
}
BuildRunGitStatus represent code repository status
func (*BuildRunGitStatus) DeepCopy ¶ added in v0.3.0
func (in *BuildRunGitStatus) DeepCopy() *BuildRunGitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildRunGitStatus.
func (*BuildRunGitStatus) DeepCopyInto ¶ added in v0.3.0
func (in *BuildRunGitStatus) DeepCopyInto(out *BuildRunGitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BuildRunGitStatus) GetValWithKey ¶ added in v0.7.0
type BuildStateType ¶ added in v0.7.0
type BuildStateType string
BuildStateType represents a build state of the repository.
const ( // Each tool needs to be converted to the corresponding value BuildStatePending BuildStateType = "Pending" BuildStateCreated BuildStateType = "Created" BuildStateRunning BuildStateType = "Running" BuildStateSuccess BuildStateType = "Success" BuildStateFailed BuildStateType = "Failed" BuildStateCanceled BuildStateType = "Canceled" BuildStateSkipped BuildStateType = "Skipped" BuildStateManual BuildStateType = "Manual" BuildStateError BuildStateType = "Error" )
These constants represent all valid build states.
type Check ¶ added in v0.7.0
type Check struct {
// Approval manual runtime approval data for execution
Approval *Approval `json:"approval,omitempty"`
}
Check runtime checking process
func (*Check) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Check.
func (*Check) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Check) GetApprovalUsers ¶ added in v0.7.0
func (c *Check) GetApprovalUsers() UserApprovals
GetApprovalUsers get the approval users
func (*Check) HasApprover ¶ added in v0.7.0
HasApprover indicates whether the approver exists.
type CloudEvent ¶
type CloudEvent struct {
ID string `json:"id,omitempty" variable:"example=b51b6a90be6a6f7a2aa65049ad.2022-08-05-05-34"`
Source string `json:"source,omitempty" variable:"example=https://github.com/repository"`
Subject string `json:"subject,omitempty" variable:"example=58127"`
// Type of event
Type string `json:"type,omitempty" variable:"example=dev.katanomi.cloudevents.gitlab.Merge Request Hook"`
// Data event payload
Data string `json:"data,omitempty" variable:"-"`
Time metav1.Time `json:"time,omitempty" variable:"example=2022-08-05T05:34:39Z"`
SpecVersion string `json:"specversion,omitempty" variable:"example=1.0"`
DataContentType string `json:"datacontenttype,omitempty" variable:"example=application/json"`
Extensions map[string]string `json:"extensions,omitempty"`
}
func (*CloudEvent) DeepCopy ¶
func (in *CloudEvent) DeepCopy() *CloudEvent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEvent.
func (*CloudEvent) DeepCopyInto ¶
func (in *CloudEvent) DeepCopyInto(out *CloudEvent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudEvent) From ¶
func (evt *CloudEvent) From(event cloudevents.Event) *CloudEvent
func (*CloudEvent) GetValWithKey ¶ added in v0.7.0
func (evt *CloudEvent) GetValWithKey(ctx context.Context, path *field.Path) (values map[string]string)
GetValWithKey returns the list of keys and values to support variable substitution
type CodeInfo ¶ added in v0.3.0
type CodeInfo struct {
// Address stores the repo address
Address *duckv1.Addressable `json:"address"`
// code repo integration name
IntegrationName string `json:"integrationName"`
// code project name
Project string `json:"project"`
// code repo name
Repository string `json:"repository"`
// issue relate branch
Branch string `json:"branch"`
// issue relate base branch
// +optional
BaseBranch string `json:"baseBranch"`
}
func (*CodeInfo) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeInfo.
func (*CodeInfo) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQuality ¶ added in v0.2.0
type CodeQuality struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CodeQualitySpec `json:"spec"`
}
CodeQuality object for plugin
func (*CodeQuality) DeepCopy ¶ added in v0.2.0
func (in *CodeQuality) DeepCopy() *CodeQuality
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQuality.
func (*CodeQuality) DeepCopyInto ¶ added in v0.2.0
func (in *CodeQuality) DeepCopyInto(out *CodeQuality)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityAnalyzeMetric ¶ added in v0.2.0
type CodeQualityAnalyzeMetric struct {
// Value defines the value of this metric
Value string `json:"value"`
// Level defines the level of the value
// +optional
Level *string `json:"level,omitempty"`
}
CodeQualityAnalyzeMetric present CodeQualityProject analyze result
func (*CodeQualityAnalyzeMetric) DeepCopy ¶ added in v0.2.0
func (in *CodeQualityAnalyzeMetric) DeepCopy() *CodeQualityAnalyzeMetric
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityAnalyzeMetric.
func (*CodeQualityAnalyzeMetric) DeepCopyInto ¶ added in v0.2.0
func (in *CodeQualityAnalyzeMetric) DeepCopyInto(out *CodeQualityAnalyzeMetric)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityBaseOption ¶ added in v0.2.0
type CodeQualityBaseOption struct {
ProjectKey string `json:"projectKey"`
BranchKey string `json:"branchKey"`
}
func (*CodeQualityBaseOption) DeepCopy ¶ added in v0.2.0
func (in *CodeQualityBaseOption) DeepCopy() *CodeQualityBaseOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityBaseOption.
func (*CodeQualityBaseOption) DeepCopyInto ¶ added in v0.2.0
func (in *CodeQualityBaseOption) DeepCopyInto(out *CodeQualityBaseOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityBranch ¶ added in v0.2.0
type CodeQualityBranch struct {
HTML string `json:"html"`
Name string `json:"name"`
IsMain bool `json:"isMain"`
QualityGateStatus string `json:"qualityGateStatus"`
AnalysisDate metav1.Time `json:"analysisDate"`
Metrics map[string]CodeQualityAnalyzeMetric `json:"metrics"`
}
func (*CodeQualityBranch) DeepCopy ¶ added in v0.2.0
func (in *CodeQualityBranch) DeepCopy() *CodeQualityBranch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityBranch.
func (*CodeQualityBranch) DeepCopyInto ¶ added in v0.2.0
func (in *CodeQualityBranch) DeepCopyInto(out *CodeQualityBranch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityLineChart ¶ added in v0.2.0
type CodeQualityLineChart struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CodeQualityLineChartSpec `json:"spec"`
}
CodeQualityLineChart object for plugin
func (*CodeQualityLineChart) DeepCopy ¶ added in v0.2.0
func (in *CodeQualityLineChart) DeepCopy() *CodeQualityLineChart
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityLineChart.
func (*CodeQualityLineChart) DeepCopyInto ¶ added in v0.2.0
func (in *CodeQualityLineChart) DeepCopyInto(out *CodeQualityLineChart)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityLineChartOption ¶ added in v0.2.0
type CodeQualityLineChartOption struct {
CodeQualityBaseOption
StartTime *time.Time `json:"startTime"`
CompletionTime *time.Time `json:"completionTime"`
Metrics string `json:"metrics"`
}
CodeQualityLineChartOption code quality line chart option +k8s:deepcopy-gen=false
type CodeQualityLineChartSpec ¶ added in v0.2.0
type CodeQualityLineChartSpec struct {
Index []string `json:"index"`
Metrics map[string][]string `json:"metrics"`
}
func (*CodeQualityLineChartSpec) DeepCopy ¶ added in v0.2.0
func (in *CodeQualityLineChartSpec) DeepCopy() *CodeQualityLineChartSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityLineChartSpec.
func (*CodeQualityLineChartSpec) DeepCopyInto ¶ added in v0.2.0
func (in *CodeQualityLineChartSpec) DeepCopyInto(out *CodeQualityLineChartSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityProjectOverview ¶ added in v0.2.0
type CodeQualityProjectOverview struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CodeQualityProjectOverviewSpec `json:"spec"`
}
func (*CodeQualityProjectOverview) DeepCopy ¶ added in v0.2.0
func (in *CodeQualityProjectOverview) DeepCopy() *CodeQualityProjectOverview
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityProjectOverview.
func (*CodeQualityProjectOverview) DeepCopyInto ¶ added in v0.2.0
func (in *CodeQualityProjectOverview) DeepCopyInto(out *CodeQualityProjectOverview)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityProjectOverviewComponent ¶ added in v0.2.0
type CodeQualityProjectOverviewComponent struct {
Branch string `json:"branch"`
CodeRepositoryFullName string `json:"codeRepositoryFullName"`
CodeRepositoryLink string `json:"codeRepositoryLink"`
LastAnalysisTime int `json:"lastAnalysisTime"`
Name string `json:"name"`
QualityGateStatus string `json:"qualityGateStatus"`
SonarQubeLink string `json:"sonarQubeLink"`
Metrics map[string]CodeQualityAnalyzeMetric `json:"metrics"`
}
func (*CodeQualityProjectOverviewComponent) DeepCopy ¶ added in v0.2.0
func (in *CodeQualityProjectOverviewComponent) DeepCopy() *CodeQualityProjectOverviewComponent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityProjectOverviewComponent.
func (*CodeQualityProjectOverviewComponent) DeepCopyInto ¶ added in v0.2.0
func (in *CodeQualityProjectOverviewComponent) DeepCopyInto(out *CodeQualityProjectOverviewComponent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityProjectOverviewSpec ¶ added in v0.2.0
type CodeQualityProjectOverviewSpec struct {
Summary CodeQualityProjectOverviewSpecSummary `json:"summary"`
CodeQualityProjects []CodeQualityProjectOverviewComponent `json:"codeQualityProjects"`
}
func (*CodeQualityProjectOverviewSpec) DeepCopy ¶ added in v0.2.0
func (in *CodeQualityProjectOverviewSpec) DeepCopy() *CodeQualityProjectOverviewSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityProjectOverviewSpec.
func (*CodeQualityProjectOverviewSpec) DeepCopyInto ¶ added in v0.2.0
func (in *CodeQualityProjectOverviewSpec) DeepCopyInto(out *CodeQualityProjectOverviewSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityProjectOverviewSpecSummary ¶ added in v0.2.0
type CodeQualityProjectOverviewSpecSummary struct {
Error int `json:"error"`
OK int `json:"ok"`
Warn int `json:"warn"`
Total int `json:"total"`
}
func (*CodeQualityProjectOverviewSpecSummary) DeepCopy ¶ added in v0.2.0
func (in *CodeQualityProjectOverviewSpecSummary) DeepCopy() *CodeQualityProjectOverviewSpecSummary
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityProjectOverviewSpecSummary.
func (*CodeQualityProjectOverviewSpecSummary) DeepCopyInto ¶ added in v0.2.0
func (in *CodeQualityProjectOverviewSpecSummary) DeepCopyInto(out *CodeQualityProjectOverviewSpecSummary)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualitySpec ¶ added in v0.2.0
type CodeQualitySpec struct {
Branches map[string]CodeQualityBranch `json:"branches"`
}
func (*CodeQualitySpec) DeepCopy ¶ added in v0.2.0
func (in *CodeQualitySpec) DeepCopy() *CodeQualitySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualitySpec.
func (*CodeQualitySpec) DeepCopyInto ¶ added in v0.2.0
func (in *CodeQualitySpec) DeepCopyInto(out *CodeQualitySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityTaskMetrics ¶ added in v0.3.0
type CodeQualityTaskMetrics struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CodeQualityTaskMetricsSpec `json:"spec"`
Status CodeQualityTaskMetricsStatus `json:"status,omitempty"`
}
CodeQualityTaskMetrics object obtains the code scan results obtained by the scan task
func (*CodeQualityTaskMetrics) DeepCopy ¶ added in v0.7.0
func (in *CodeQualityTaskMetrics) DeepCopy() *CodeQualityTaskMetrics
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityTaskMetrics.
func (*CodeQualityTaskMetrics) DeepCopyInto ¶ added in v0.7.0
func (in *CodeQualityTaskMetrics) DeepCopyInto(out *CodeQualityTaskMetrics)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityTaskMetricsSpec ¶ added in v0.3.0
type CodeQualityTaskMetricsSpec struct {
// Summary is the panel data for code scans
// +optional
Summary CodeQualityTaskMetricsSpecSummary `json:"summary,omitempty"`
// Task is scan task specific information
Task CodeQualityTaskMetricsSpecTask `json:"task"`
// Component is code scan component
Component CodeQualityTaskMetricsSpecComponent `json:"component"`
// Metrics is other scan result indicators are stored here
Metrics map[string]string `json:"metrics"`
}
CodeQualityTaskMetricsSpec includes structured and raw data for code scans
func (*CodeQualityTaskMetricsSpec) DeepCopy ¶ added in v0.7.0
func (in *CodeQualityTaskMetricsSpec) DeepCopy() *CodeQualityTaskMetricsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityTaskMetricsSpec.
func (*CodeQualityTaskMetricsSpec) DeepCopyInto ¶ added in v0.7.0
func (in *CodeQualityTaskMetricsSpec) DeepCopyInto(out *CodeQualityTaskMetricsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityTaskMetricsSpecComponent ¶ added in v0.3.0
type CodeQualityTaskMetricsSpecComponent struct {
// ID is component id
ID string `json:"id"`
// Key is component key
Key string `json:"key"`
// Name is component name
Name string `json:"name"`
}
CodeQualityTaskMetricsSpecComponent is code scan component
func (*CodeQualityTaskMetricsSpecComponent) DeepCopy ¶ added in v0.7.0
func (in *CodeQualityTaskMetricsSpecComponent) DeepCopy() *CodeQualityTaskMetricsSpecComponent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityTaskMetricsSpecComponent.
func (*CodeQualityTaskMetricsSpecComponent) DeepCopyInto ¶ added in v0.7.0
func (in *CodeQualityTaskMetricsSpecComponent) DeepCopyInto(out *CodeQualityTaskMetricsSpecComponent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityTaskMetricsSpecSummary ¶ added in v0.3.0
type CodeQualityTaskMetricsSpecSummary struct {
// New Indicates the newly added data in this scan
// +optional
New *CodeQualityTaskMetricsSpecSummaryOverview `json:"new,omitempty"`
// Total represents all the issues scanned
// +optional
Total *CodeQualityTaskMetricsSpecSummaryOverview `json:"total,omitempty"`
}
CodeQualityTaskMetricsSpecSummary is the panel data for code scans
func (*CodeQualityTaskMetricsSpecSummary) DeepCopy ¶ added in v0.7.0
func (in *CodeQualityTaskMetricsSpecSummary) DeepCopy() *CodeQualityTaskMetricsSpecSummary
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityTaskMetricsSpecSummary.
func (*CodeQualityTaskMetricsSpecSummary) DeepCopyInto ¶ added in v0.7.0
func (in *CodeQualityTaskMetricsSpecSummary) DeepCopyInto(out *CodeQualityTaskMetricsSpecSummary)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityTaskMetricsSpecSummaryOverview ¶ added in v0.3.0
type CodeQualityTaskMetricsSpecSummaryOverview struct {
// Bugs means number of bugs
Bugs string `json:"bugs"`
// DuplicatedLinesDensity means ratio of duplicate code
DuplicatedLinesDensity string `json:"duplicatedLinesDensity"`
// Vulnerabilities means number of vulnerabilities
Vulnerabilities string `json:"vulnerabilities"`
// CodeSmells means number of codeSmells
CodeSmells string `json:"codeSmells"`
}
CodeQualityTaskMetricsSpecSummaryOverview is the overview data for code scans
func (*CodeQualityTaskMetricsSpecSummaryOverview) DeepCopy ¶ added in v0.7.0
func (in *CodeQualityTaskMetricsSpecSummaryOverview) DeepCopy() *CodeQualityTaskMetricsSpecSummaryOverview
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityTaskMetricsSpecSummaryOverview.
func (*CodeQualityTaskMetricsSpecSummaryOverview) DeepCopyInto ¶ added in v0.7.0
func (in *CodeQualityTaskMetricsSpecSummaryOverview) DeepCopyInto(out *CodeQualityTaskMetricsSpecSummaryOverview)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityTaskMetricsSpecTask ¶ added in v0.3.0
type CodeQualityTaskMetricsSpecTask struct {
// StartedAt is start time
StartedAt string `json:"startedAt"`
// CompletedAt is end time
CompletedAt string `json:"executedAt"`
// ExecutionTimeMs is consuming to execute
ExecutionTimeMs string `json:"executionTimeMs"`
// ID is code scan task id
ID string `json:"id"`
// Status is code scan task status
Status CodeScanReportSyncReason `json:"status"`
// AnalysisId is analysis report id
AnalysisId string `json:"analysisId"`
}
CodeQualityTaskMetricsSpecTask is scan task specific information
func (*CodeQualityTaskMetricsSpecTask) DeepCopy ¶ added in v0.7.0
func (in *CodeQualityTaskMetricsSpecTask) DeepCopy() *CodeQualityTaskMetricsSpecTask
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityTaskMetricsSpecTask.
func (*CodeQualityTaskMetricsSpecTask) DeepCopyInto ¶ added in v0.7.0
func (in *CodeQualityTaskMetricsSpecTask) DeepCopyInto(out *CodeQualityTaskMetricsSpecTask)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityTaskMetricsStatus ¶ added in v0.3.0
type CodeQualityTaskMetricsStatus struct {
// Reason is code scan reason
// +optional
Reason CodeScanReportSyncReason `json:"reason,omitempty"`
// Status is code scan status
// +optional
Status corev1.ConditionStatus `json:"status,omitempty"`
}
CodeQualityTaskMetricsStatus is a status attribute that specifies the need to integrate
func (*CodeQualityTaskMetricsStatus) DeepCopy ¶ added in v0.7.0
func (in *CodeQualityTaskMetricsStatus) DeepCopy() *CodeQualityTaskMetricsStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityTaskMetricsStatus.
func (*CodeQualityTaskMetricsStatus) DeepCopyInto ¶ added in v0.7.0
func (in *CodeQualityTaskMetricsStatus) DeepCopyInto(out *CodeQualityTaskMetricsStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeQualityTaskOption ¶ added in v0.3.0
type CodeQualityTaskOption struct {
TaskID string `json:"taskID"`
ProjectKey string `json:"projectKey"`
Branch string `json:"branch"`
PullRequest string `json:"pullRequest"`
}
func (*CodeQualityTaskOption) DeepCopy ¶ added in v0.7.0
func (in *CodeQualityTaskOption) DeepCopy() *CodeQualityTaskOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CodeQualityTaskOption.
func (*CodeQualityTaskOption) DeepCopyInto ¶ added in v0.7.0
func (in *CodeQualityTaskOption) DeepCopyInto(out *CodeQualityTaskOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CodeScanReportSyncReason ¶ added in v0.3.0
type CodeScanReportSyncReason string
const ( // Code scan task succeeded CodeScanReportSyncSucceededReason CodeScanReportSyncReason = SucceededReason // The code scan task was canceled CodeScanTaskCancelled CodeScanReportSyncReason = "CodeScanTaskCancelled" // Code scan task is waiting to start CodeScanTaskPending CodeScanReportSyncReason = "CodeScanTaskPending" // ode scan task in process CodeScanTaskRunning CodeScanReportSyncReason = "CodeScanTaskRunning" // Code scan task execution failed CodeScanTaskFailedReason CodeScanReportSyncReason = "CodeScanTaskFailed" // Error in sync report CodeScanReportSyncErrorReason CodeScanReportSyncReason = "CodeScanSyncReportError" )
type Comment ¶ added in v0.3.0
type Comment struct {
// Issue comment by user
User UserSpec `json:"author"`
// Issue comment create time
CreatedTime metav1.Time `json:"createdTime"`
// Issue comment message
Detail string `json:"detail"`
}
func (*Comment) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Comment.
func (*Comment) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CommitProperties ¶ added in v0.7.0
type CommitProperties struct {
// ShortID commit short id
ShortID string `json:"shortID"`
// Title commit title
Title string `json:"title"`
}
CommitProperties commit properties info +kubebuilder:object:generate=false
type ConditionType ¶ added in v0.3.0
type ConditionType string
ConditionType is a camel-cased condition type.
const ( // ConditionReady specifies that the resource is ready. // For long-running resources. ConditionReady ConditionType = "Ready" // ConditionSucceeded specifies that the resource has finished. // For resource which run to completion. ConditionSucceeded ConditionType = "Succeeded" // ConditionPending specifies that the resource is pending. // For resource which run is waiting to be executed. ConditionPending ConditionType = "Pending" // ConditionRunning specifies that the resource is running. // For resource which run is running. ConditionRunning ConditionType = "Running" // ConditionFailed specifies that the resource is failed. // For resource which run to failed. ConditionFailed ConditionType = "Failed" // ConditionDisabled specifies that the resource is disabled. // For resource which can't be run. ConditionDisabled ConditionType = "Disabled" // ConditionCanceled specifies that the resource is canceled. // For resource which run to canceled. ConditionCanceled ConditionType = "Canceled" )
type ContextKey ¶ added in v0.2.0
type ContextKey string
const ( // KeyForSubType subtype key in context KeyForSubType ContextKey = "subtype" // NOSONAR // ignore: "Key" detected here, make sure this is not a hard-coded credential )
func (ContextKey) String ¶ added in v0.2.0
func (c ContextKey) String() string
type CreateBranchParams ¶
type CreateBranchParams struct {
// Branch new branch name
Branch string `json:"branch"`
// Ref source branch name
Ref string `json:"ref"`
}
CreateBranchParams params for create branch in server
func (*CreateBranchParams) DeepCopy ¶
func (in *CreateBranchParams) DeepCopy() *CreateBranchParams
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateBranchParams.
func (*CreateBranchParams) DeepCopyInto ¶
func (in *CreateBranchParams) DeepCopyInto(out *CreateBranchParams)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateBranchPayload ¶
type CreateBranchPayload struct {
GitRepo
CreateBranchParams
}
CreateBranchPayload payload for create branch
func (*CreateBranchPayload) DeepCopy ¶
func (in *CreateBranchPayload) DeepCopy() *CreateBranchPayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateBranchPayload.
func (*CreateBranchPayload) DeepCopyInto ¶
func (in *CreateBranchPayload) DeepCopyInto(out *CreateBranchPayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateCommitCommentParam ¶
type CreateCommitCommentParam struct {
Note *string `json:"note,omitempty"`
Path *string `json:"path"`
Line *int `json:"line"`
LineType *string `json:"lineType"`
}
CreateCommitCommentParam param for create commit's comment
func (*CreateCommitCommentParam) DeepCopy ¶
func (in *CreateCommitCommentParam) DeepCopy() *CreateCommitCommentParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateCommitCommentParam.
func (*CreateCommitCommentParam) DeepCopyInto ¶
func (in *CreateCommitCommentParam) DeepCopyInto(out *CreateCommitCommentParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateCommitCommentPayload ¶
type CreateCommitCommentPayload struct {
GitRepo
GitCommitBasicInfo
CreateCommitCommentParam
}
CreateCommitCommentPayload payload for create commit's Comment
func (*CreateCommitCommentPayload) DeepCopy ¶
func (in *CreateCommitCommentPayload) DeepCopy() *CreateCommitCommentPayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateCommitCommentPayload.
func (*CreateCommitCommentPayload) DeepCopyInto ¶
func (in *CreateCommitCommentPayload) DeepCopyInto(out *CreateCommitCommentPayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateCommitStatusParam ¶
type CreateCommitStatusParam struct {
State string `json:"state"`
Ref *string `json:"ref,omitempty"`
Name *string `json:"name,omitempty"`
Context *string `json:"context,omitempty"`
TargetURL *string `json:"targetUrl,omitempty"`
Description *string `json:"description,omitempty"`
Coverage *float64 `json:"coverage,omitempty"`
PipelineID *int `json:"pipelineId,omitempty"`
// TODO CreateCommitStatusParam should remove, create function only use GitCommitStatus as param
*GitCommitStatus
}
CreateCommitStatusParam param for create commit's status
func (*CreateCommitStatusParam) DeepCopy ¶
func (in *CreateCommitStatusParam) DeepCopy() *CreateCommitStatusParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateCommitStatusParam.
func (*CreateCommitStatusParam) DeepCopyInto ¶
func (in *CreateCommitStatusParam) DeepCopyInto(out *CreateCommitStatusParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateCommitStatusPayload ¶
type CreateCommitStatusPayload struct {
GitRepo
GitCommitBasicInfo
CreateCommitStatusParam
}
CreateCommitStatusPayload payload for create commit's status
func (*CreateCommitStatusPayload) DeepCopy ¶
func (in *CreateCommitStatusPayload) DeepCopy() *CreateCommitStatusPayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateCommitStatusPayload.
func (*CreateCommitStatusPayload) DeepCopyInto ¶
func (in *CreateCommitStatusPayload) DeepCopyInto(out *CreateCommitStatusPayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreatePullRequestCommentParam ¶
type CreatePullRequestCommentParam struct {
Body string `json:"body"`
}
CreatePullRequestCommentParam param for create pr's comment
func (*CreatePullRequestCommentParam) DeepCopy ¶
func (in *CreatePullRequestCommentParam) DeepCopy() *CreatePullRequestCommentParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreatePullRequestCommentParam.
func (*CreatePullRequestCommentParam) DeepCopyInto ¶
func (in *CreatePullRequestCommentParam) DeepCopyInto(out *CreatePullRequestCommentParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreatePullRequestCommentPayload ¶
type CreatePullRequestCommentPayload struct {
GitRepo
CreatePullRequestCommentParam
Index int `json:"index"`
}
CreatePullRequestCommentPayload payload for create pr's Comment
func (*CreatePullRequestCommentPayload) DeepCopy ¶
func (in *CreatePullRequestCommentPayload) DeepCopy() *CreatePullRequestCommentPayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreatePullRequestCommentPayload.
func (*CreatePullRequestCommentPayload) DeepCopyInto ¶
func (in *CreatePullRequestCommentPayload) DeepCopyInto(out *CreatePullRequestCommentPayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreatePullRequestPayload ¶
type CreatePullRequestPayload struct {
Source GitBranchBaseInfo `json:"source"`
Target GitBranchBaseInfo `json:"target"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
// indicates if the source branch should be deleted when the pull request is merged
RemoveSourceBranch bool `json:"removeSourceBranch,omitempty"`
}
CreatePullRequestPayload option for create PullRequest
func (*CreatePullRequestPayload) DeepCopy ¶
func (in *CreatePullRequestPayload) DeepCopy() *CreatePullRequestPayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreatePullRequestPayload.
func (*CreatePullRequestPayload) DeepCopyInto ¶
func (in *CreatePullRequestPayload) DeepCopyInto(out *CreatePullRequestPayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateRepoFileParams ¶
type CreateRepoFileParams struct {
// Branch target branch to create file
Branch string `json:"branch"`
// Name of the branch to start the new branch from
StartBranch string `json:"startBranch"`
// Message commit message for create the file
Message string `json:"message"`
// Content must be base64 encoded
Content []byte `json:"content"`
// Author commit author
Author *GitUserBaseInfo `json:"author,omitempty"`
}
CreateRepoFileParams params for create file in server
func (*CreateRepoFileParams) DeepCopy ¶
func (in *CreateRepoFileParams) DeepCopy() *CreateRepoFileParams
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateRepoFileParams.
func (*CreateRepoFileParams) DeepCopyInto ¶
func (in *CreateRepoFileParams) DeepCopyInto(out *CreateRepoFileParams)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateRepoFilePayload ¶
type CreateRepoFilePayload struct {
GitRepo
CreateRepoFileParams
FilePath string `json:"filepath"`
}
CreateRepoFilePayload option for create file and commit + push
func (*CreateRepoFilePayload) DeepCopy ¶
func (in *CreateRepoFilePayload) DeepCopy() *CreateRepoFilePayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateRepoFilePayload.
func (*CreateRepoFilePayload) DeepCopyInto ¶
func (in *CreateRepoFilePayload) DeepCopyInto(out *CreateRepoFilePayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreatedBy ¶ added in v0.2.0
type CreatedBy struct {
// Reference to the user that created the object. Any Kubernetes `Subject` is accepted.
// +optional
User *rbacv1.Subject `json:"user,omitempty"`
}
CreatedBy stores a list of created information.
func (*CreatedBy) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreatedBy.
func (*CreatedBy) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CreatedBy) FromAnnotation ¶ added in v0.2.0
FromAnnotation will set `by` from annotations it will find CreatedByAnnotationKey and unmarshl content into struct type *CreatedBy if not found CreatedByAnnotationKey, error would be nil, and *CreatedBy would be nil also. if some errors happened, error will not be nil and *CreatedBy will be nil
type DataMap ¶ added in v0.7.0
DataMap describe a map[string]string struct
func (DataMap) BoolVal ¶ added in v0.7.0
BoolVal return bool value with specified key, if not found return nil
func (DataMap) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataMap.
func (DataMap) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DataMap) IntVal ¶ added in v0.7.0
IntVal return int value with specified key, if not found return nil
func (DataMap) MustBoolVal ¶ added in v0.7.0
MustBoolVal return bool value with specified key
func (DataMap) MustIntVal ¶ added in v0.7.0
MustIntVal return int value with specified key
func (DataMap) MustStringVal ¶ added in v0.7.0
MustStringVal return string value with specified key
func (DataMap) MustTimeDurationVal ¶ added in v0.7.0
MustTimeDurationVal return time.Duration value with specified key
type DefinitionTriggeredType ¶
type DefinitionTriggeredType string
func (DefinitionTriggeredType) String ¶
func (triggeredType DefinitionTriggeredType) String() string
type DownloadURL ¶ added in v0.2.0
type DownloadURL struct {
Zip string `json:"zip"`
TarGz *string `json:"tar.gz"`
TarBa2 *string `json:"tar.ba2"`
Tar *string `json:"tar"`
}
func (*DownloadURL) DeepCopy ¶ added in v0.2.0
func (in *DownloadURL) DeepCopy() *DownloadURL
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DownloadURL.
func (*DownloadURL) DeepCopyInto ¶ added in v0.2.0
func (in *DownloadURL) DeepCopyInto(out *DownloadURL)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnvironmentSpec ¶ added in v0.7.0
type EnvironmentSpec struct {
// ClusteRef stores a Cluster object reference
// currently only supports ClusterRegistry
// +optional
ClusterRef *corev1.ObjectReference `json:"clusterRef,omitempty"`
// NamespaceRef defines the target namespace to run the Stage
// and get StageRef and other reference objects from
// If a ClusterRef is provided will use the cluster
// and do cross-cluster access
NamespaceRef *corev1.LocalObjectReference `json:"namespaceRef,omitempty"`
}
EnvironmentSpec describes a cluster/namespace environment for multi-cluster stage support
func (*EnvironmentSpec) DeepCopy ¶ added in v0.7.0
func (in *EnvironmentSpec) DeepCopy() *EnvironmentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentSpec.
func (*EnvironmentSpec) DeepCopyInto ¶ added in v0.7.0
func (in *EnvironmentSpec) DeepCopyInto(out *EnvironmentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExtendedAddress ¶ added in v0.7.0
type ExtendedAddress string
ExtendedAddress The name of the plugin extension url, only dependencyAddress is supported for now. TODO: add more key for the plugin extension url.
const ( // DependencyExtendedAddressKey describes the dependency repository address provided by the plugin // If the tool has an independent dependency repository address, // use this field to indicate, if not, take the same value as address DependencyExtendedAddressKey ExtendedAddress = "dependency" )
type GitBranch ¶
type GitBranch struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GitBranchSpec `json:"spec"`
}
GitBranch object for plugin
func (*GitBranch) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitBranch.
func (*GitBranch) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitBranch) GetBranchStatus ¶ added in v0.7.0
func (b *GitBranch) GetBranchStatus() (status *BuildGitBranchStatus)
GetBranchStatus return git branch status
type GitBranchBaseInfo ¶
GitBranchBaseInfo branch base info
func (*GitBranchBaseInfo) DeepCopy ¶
func (in *GitBranchBaseInfo) DeepCopy() *GitBranchBaseInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitBranchBaseInfo.
func (*GitBranchBaseInfo) DeepCopyInto ¶
func (in *GitBranchBaseInfo) DeepCopyInto(out *GitBranchBaseInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitBranchList ¶
type GitBranchList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []GitBranch `json:"items"`
}
GitBranchList list of branch
func (*GitBranchList) DeepCopy ¶
func (in *GitBranchList) DeepCopy() *GitBranchList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitBranchList.
func (*GitBranchList) DeepCopyInto ¶
func (in *GitBranchList) DeepCopyInto(out *GitBranchList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitBranchOption ¶
GitBranchOption option for list branch
func (*GitBranchOption) DeepCopy ¶ added in v0.2.0
func (in *GitBranchOption) DeepCopy() *GitBranchOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitBranchOption.
func (*GitBranchOption) DeepCopyInto ¶ added in v0.2.0
func (in *GitBranchOption) DeepCopyInto(out *GitBranchOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitBranchSpec ¶
type GitBranchSpec struct {
GitBranchBaseInfo
// Protected the branch is protected
Protected *bool `json:"protected,omitempty" yaml:"protected,omitempty"`
// Default the branch is default branch (repo only have one default branch like main)
Default *bool `json:"default,omitempty" yaml:"default,omitempty"`
// DevelopersCanPush developer can push to this branch
DevelopersCanPush *bool `json:"developersCanPush,omitempty" yaml:"developersCanPush,omitempty"`
// DevelopersCanMerge developer can merge to this branch
DevelopersCanMerge *bool `json:"developersCanMerge,omitempty" yaml:"developersCanMerge,omitempty"`
// Commit latest commit's sha in this branch
Commit GitCommitInfo `json:"commit"`
WebURL string `json:"webURL"`
DownloadURL DownloadURL `json:"downloadURL"`
Properties *runtime.RawExtension `json:"properties,omitempty"`
}
GitBranchSpec spec of branch
func (*GitBranchSpec) DeepCopy ¶
func (in *GitBranchSpec) DeepCopy() *GitBranchSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitBranchSpec.
func (*GitBranchSpec) DeepCopyInto ¶
func (in *GitBranchSpec) DeepCopyInto(out *GitBranchSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommit ¶
type GitCommit struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GitCommitSpec `json:"spec"`
}
GitCommit object for plugin
func (*GitCommit) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommit.
func (*GitCommit) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitBasicInfo ¶
type GitCommitBasicInfo struct {
// SHA commit's sha
SHA *string `json:"sha,omitempty"`
}
GitCommitBasicInfo github support field is SHA & web_URL
func (*GitCommitBasicInfo) DeepCopy ¶
func (in *GitCommitBasicInfo) DeepCopy() *GitCommitBasicInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitBasicInfo.
func (*GitCommitBasicInfo) DeepCopyInto ¶
func (in *GitCommitBasicInfo) DeepCopyInto(out *GitCommitBasicInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitComment ¶
type GitCommitComment struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GitCommitCommentSpec `json:"spec"`
}
GitCommitComment object for plugin
func (*GitCommitComment) DeepCopy ¶
func (in *GitCommitComment) DeepCopy() *GitCommitComment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitComment.
func (*GitCommitComment) DeepCopyInto ¶
func (in *GitCommitComment) DeepCopyInto(out *GitCommitComment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitCommentList ¶
type GitCommitCommentList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []GitCommitComment `json:"items"`
}
GitCommitCommentList list of commit comment
func (*GitCommitCommentList) DeepCopy ¶
func (in *GitCommitCommentList) DeepCopy() *GitCommitCommentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitCommentList.
func (*GitCommitCommentList) DeepCopyInto ¶
func (in *GitCommitCommentList) DeepCopyInto(out *GitCommitCommentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitCommentSpec ¶
type GitCommitCommentSpec struct {
// Note content
Note string `json:"note"`
// Path file path
Path string `json:"path"`
// Line comment line number
Line int `json:"line"`
// LineType
LineType *string `json:"lineType"`
// Author comment author
Author GitUserBaseInfo `json:"author"`
Properties *runtime.RawExtension `json:"properties,omitempty"`
}
GitCommitCommentSpec spec for commit comment
func (*GitCommitCommentSpec) DeepCopy ¶
func (in *GitCommitCommentSpec) DeepCopy() *GitCommitCommentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitCommentSpec.
func (*GitCommitCommentSpec) DeepCopyInto ¶
func (in *GitCommitCommentSpec) DeepCopyInto(out *GitCommitCommentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitInfo ¶ added in v0.2.0
type GitCommitInfo struct {
// SHA commit's sha
SHA *string `json:"sha,omitempty"`
// TODO remove this field, because is same as metadata.creationTimeStamp
CreatedAt metav1.Time `json:"createdAt"`
// Address for commit url for code repository web server
Address *duckv1.Addressable `json:"address,omitempty"`
}
GitCommitInfo github support field is SHA & web_URL
func (*GitCommitInfo) DeepCopy ¶ added in v0.2.0
func (in *GitCommitInfo) DeepCopy() *GitCommitInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitInfo.
func (*GitCommitInfo) DeepCopyInto ¶ added in v0.2.0
func (in *GitCommitInfo) DeepCopyInto(out *GitCommitInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitList ¶
type GitCommitList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []GitCommit `json:"items"`
}
GitCommitList list of commits
func (*GitCommitList) DeepCopy ¶
func (in *GitCommitList) DeepCopy() *GitCommitList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitList.
func (*GitCommitList) DeepCopyInto ¶
func (in *GitCommitList) DeepCopyInto(out *GitCommitList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitListOption ¶ added in v0.3.0
type GitCommitListOption struct {
GitRepo
// Ref source branch name
Ref string `json:"ref"`
// Since Time query parameter, the lower bound of the time range
Since *v1.Time `json:"since,omitempty"`
// Until Time query parameter, the upper limit of the time range
Until *v1.Time `json:"util,omitempty"`
}
GitCommitListOption option for list commit
func (*GitCommitListOption) DeepCopy ¶ added in v0.3.0
func (in *GitCommitListOption) DeepCopy() *GitCommitListOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitListOption.
func (*GitCommitListOption) DeepCopyInto ¶ added in v0.3.0
func (in *GitCommitListOption) DeepCopyInto(out *GitCommitListOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitOption ¶
type GitCommitOption struct {
GitRepo
GitCommitBasicInfo
}
GitCommitOption option for get one commit by sha
func (*GitCommitOption) DeepCopy ¶
func (in *GitCommitOption) DeepCopy() *GitCommitOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitOption.
func (*GitCommitOption) DeepCopyInto ¶
func (in *GitCommitOption) DeepCopyInto(out *GitCommitOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitSpec ¶
type GitCommitSpec struct {
GitCommitInfo
// Coverage code coverage for test
Coverage *float64 `json:"coverage,omitempty"`
// Author commit author
Author *GitUserBaseInfo `json:"author,omitempty"`
// Committer commit committer
Committer *GitUserBaseInfo `json:"committer,omitempty"`
// Message commit message
Message *string `json:"message,omitempty"`
Properties *runtime.RawExtension `json:"properties,omitempty"`
}
GitCommitSpec spec for commit
func (*GitCommitSpec) DeepCopy ¶
func (in *GitCommitSpec) DeepCopy() *GitCommitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitSpec.
func (*GitCommitSpec) DeepCopyInto ¶
func (in *GitCommitSpec) DeepCopyInto(out *GitCommitSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitStatus ¶
type GitCommitStatus struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GitCommitStatusSpec `json:"spec"`
Status GitCommitStatusStatus `json:"status"`
}
GitCommitStatus object for plugin
func (*GitCommitStatus) DeepCopy ¶
func (in *GitCommitStatus) DeepCopy() *GitCommitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitStatus.
func (*GitCommitStatus) DeepCopyInto ¶
func (in *GitCommitStatus) DeepCopyInto(out *GitCommitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitStatusInfo ¶ added in v0.3.0
type GitCommitStatusInfo struct {
// Type of additional information(pipeline, vulnerabilityScan, codeScan, artifact, unittest, version)
Type string `json:"type"`
// Status for additional information
Status ConditionType `json:"status"`
// URL result address
URL *apis.URL `json:"url"`
Properties *runtime.RawExtension `json:"properties,omitempty"`
}
GitCommitStatusInfo pipeline for code repository in commit statues https://github.com/katanomi/spec/blob/main/3.core.plugins.gitapi.md search 8.commit status
func (*GitCommitStatusInfo) DeepCopy ¶ added in v0.3.0
func (in *GitCommitStatusInfo) DeepCopy() *GitCommitStatusInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitStatusInfo.
func (*GitCommitStatusInfo) DeepCopyInto ¶ added in v0.3.0
func (in *GitCommitStatusInfo) DeepCopyInto(out *GitCommitStatusInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitStatusInfoList ¶ added in v0.3.0
type GitCommitStatusInfoList []GitCommitStatusInfo
func (GitCommitStatusInfoList) DeepCopy ¶ added in v0.3.0
func (in GitCommitStatusInfoList) DeepCopy() GitCommitStatusInfoList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitStatusInfoList.
func (GitCommitStatusInfoList) DeepCopyInto ¶ added in v0.3.0
func (in GitCommitStatusInfoList) DeepCopyInto(out *GitCommitStatusInfoList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitStatusList ¶
type GitCommitStatusList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []GitCommitStatus `json:"items"`
}
GitCommitStatusList list of commit status
func (*GitCommitStatusList) DeepCopy ¶
func (in *GitCommitStatusList) DeepCopy() *GitCommitStatusList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitStatusList.
func (*GitCommitStatusList) DeepCopyInto ¶
func (in *GitCommitStatusList) DeepCopyInto(out *GitCommitStatusList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitStatusSpec ¶
type GitCommitStatusSpec struct {
// ID status id
ID int `json:"id"`
// TODO:
// 1.SHA and CreatedAt will be removed, because they should be used in metadata.
// 2.Status, Name, TargetURL will be removed that already have the same effect in status
// For compatibility reasons, the above contents will be implemented in later versions.
// SHA commit sha
SHA string `json:"sha"`
// Ref commit ref
Ref string `json:"ref"`
// Status
Status string `json:"status"`
// CreatedAt status create time
CreatedAt metav1.Time `json:"createdAt"`
// Name status name
Name string `json:"name"`
// Author status author
Author GitUserBaseInfo `json:"author"`
// Description status description
Description string `json:"description"`
// TargetURL
TargetURL string `json:"targetUrl"`
Properties *runtime.RawExtension `json:"properties,omitempty"`
}
func (*GitCommitStatusSpec) DeepCopy ¶
func (in *GitCommitStatusSpec) DeepCopy() *GitCommitStatusSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitStatusSpec.
func (*GitCommitStatusSpec) DeepCopyInto ¶
func (in *GitCommitStatusSpec) DeepCopyInto(out *GitCommitStatusSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitStatusStatus ¶ added in v0.3.0
type GitCommitStatusStatus struct {
GitCommitStatusInfoList
*apis.Condition
}
func (*GitCommitStatusStatus) DeepCopy ¶ added in v0.3.0
func (in *GitCommitStatusStatus) DeepCopy() *GitCommitStatusStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitStatusStatus.
func (*GitCommitStatusStatus) DeepCopyInto ¶ added in v0.3.0
func (in *GitCommitStatusStatus) DeepCopyInto(out *GitCommitStatusStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitOperateLogBaseInfo ¶
type GitOperateLogBaseInfo struct {
User *GitUserBaseInfo `json:"user,omitempty"`
Time *metav1.Time `json:"time,omitempty"`
}
GitOperateLogBaseInfo a simple log for operate
func (*GitOperateLogBaseInfo) DeepCopy ¶
func (in *GitOperateLogBaseInfo) DeepCopy() *GitOperateLogBaseInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitOperateLogBaseInfo.
func (*GitOperateLogBaseInfo) DeepCopyInto ¶
func (in *GitOperateLogBaseInfo) DeepCopyInto(out *GitOperateLogBaseInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequest ¶
type GitPullRequest struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GitPullRequestSpec `json:"spec"`
}
GitPullRequest object for plugins
func (*GitPullRequest) DeepCopy ¶
func (in *GitPullRequest) DeepCopy() *GitPullRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequest.
func (*GitPullRequest) DeepCopyInto ¶
func (in *GitPullRequest) DeepCopyInto(out *GitPullRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestList ¶
type GitPullRequestList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []GitPullRequest `json:"items"`
}
GitPullRequestList list of pr
func (*GitPullRequestList) DeepCopy ¶
func (in *GitPullRequestList) DeepCopy() *GitPullRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestList.
func (*GitPullRequestList) DeepCopyInto ¶
func (in *GitPullRequestList) DeepCopyInto(out *GitPullRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestListOption ¶
type GitPullRequestListOption struct {
GitRepo
State *PullRequestState `json:"state,omitempty"`
}
func (*GitPullRequestListOption) DeepCopy ¶ added in v0.2.0
func (in *GitPullRequestListOption) DeepCopy() *GitPullRequestListOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestListOption.
func (*GitPullRequestListOption) DeepCopyInto ¶ added in v0.2.0
func (in *GitPullRequestListOption) DeepCopyInto(out *GitPullRequestListOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestNote ¶
type GitPullRequestNote struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GitPullRequestNoteSpec `json:"spec"`
}
GitPullRequestNote note for pr
func (*GitPullRequestNote) DeepCopy ¶
func (in *GitPullRequestNote) DeepCopy() *GitPullRequestNote
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestNote.
func (*GitPullRequestNote) DeepCopyInto ¶
func (in *GitPullRequestNote) DeepCopyInto(out *GitPullRequestNote)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestNoteList ¶
type GitPullRequestNoteList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []GitPullRequestNote `json:"items"`
}
GitPullRequestNoteList note list for pr
func (*GitPullRequestNoteList) DeepCopy ¶
func (in *GitPullRequestNoteList) DeepCopy() *GitPullRequestNoteList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestNoteList.
func (*GitPullRequestNoteList) DeepCopyInto ¶
func (in *GitPullRequestNoteList) DeepCopyInto(out *GitPullRequestNoteList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestNoteSpec ¶
type GitPullRequestNoteSpec struct {
// ID note id
ID int `json:"id"`
// Body note content
Body string `json:"body"`
Properties *runtime.RawExtension `json:"properties,omitempty"`
}
GitPullRequestNoteSpec note's spec for pr
func (*GitPullRequestNoteSpec) DeepCopy ¶
func (in *GitPullRequestNoteSpec) DeepCopy() *GitPullRequestNoteSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestNoteSpec.
func (*GitPullRequestNoteSpec) DeepCopyInto ¶
func (in *GitPullRequestNoteSpec) DeepCopyInto(out *GitPullRequestNoteSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestOption ¶
GitPullRequestOption option for one pr by id
func (*GitPullRequestOption) DeepCopy ¶
func (in *GitPullRequestOption) DeepCopy() *GitPullRequestOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestOption.
func (*GitPullRequestOption) DeepCopyInto ¶
func (in *GitPullRequestOption) DeepCopyInto(out *GitPullRequestOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestSpec ¶
type GitPullRequestSpec struct {
GitRepo
// ID num for pr in platform
ID int64 `json:"id"`
// Number num for pr in repo
Number int64 `json:"num"`
// Title pr title
Title string `json:"title"`
// State pr state (different between platforms)
State string `json:"state"`
// CreatedAt pr create time
CreatedAt metav1.Time `json:"createdAt"`
// UpdateAt pr latest update time
UpdateAt *metav1.Time `json:"updateAt,omitempty"`
// ClosedAt pr close time
ClosedAt *metav1.Time `json:"closedAt,omitempty"`
// Target pr target branch and repo
Target GitBranchBaseInfo `json:"target"`
// Source pr source branch and repo
Source GitBranchBaseInfo `json:"source"`
// Author pr author
Author GitUserBaseInfo `json:"author,omitempty"`
// MergeLog pr merge info(user and time)
MergeLog *GitOperateLogBaseInfo `json:"mergeLog,omitempty"`
Properties *runtime.RawExtension `json:"properties,omitempty"`
// HasConflicts means source and target branch has conflict change
// It is dependent on the merge_status.
HasConflicts bool `json:"hasConflicts,omitempty"`
// MergeStatus indicates if there is a merge conflict
MergeStatus MergeStatus `json:"mergeStatus,omitempty"`
// OriginMergeStatus used to store origin merge status
OriginMergeStatus string `json:"originMergeStatus,omitempty"`
}
GitPullRequestSpec spec for pull request
func (*GitPullRequestSpec) DeepCopy ¶
func (in *GitPullRequestSpec) DeepCopy() *GitPullRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestSpec.
func (*GitPullRequestSpec) DeepCopyInto ¶
func (in *GitPullRequestSpec) DeepCopyInto(out *GitPullRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepo ¶
type GitRepo struct {
// Project gitlab is empty string, github,gogs,gitea is owner name
Project string `json:"project,omitempty" yaml:"project,omitempty"`
// Repository is different between platforms. gitlab is number;github,gogs,gitea is repo name
Repository string `json:"repository,omitempty" yaml:"repository,omitempty"`
}
GitRepo Repo base info
func (*GitRepo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepo.
func (*GitRepo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepoFile ¶
type GitRepoFile struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GitRepoFileSpec `json:"spec"`
}
GitRepoFile object for plugins
func (*GitRepoFile) DeepCopy ¶
func (in *GitRepoFile) DeepCopy() *GitRepoFile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepoFile.
func (*GitRepoFile) DeepCopyInto ¶
func (in *GitRepoFile) DeepCopyInto(out *GitRepoFile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepoFileOption ¶
type GitRepoFileOption struct {
GitRepo
// Ref commit/branch/tag name
Ref string `json:"ref"`
Path string `json:"path"`
}
GitRepoFileOption option for get repo's file
func (*GitRepoFileOption) DeepCopy ¶
func (in *GitRepoFileOption) DeepCopy() *GitRepoFileOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepoFileOption.
func (*GitRepoFileOption) DeepCopyInto ¶
func (in *GitRepoFileOption) DeepCopyInto(out *GitRepoFileOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepoFileSpec ¶
type GitRepoFileSpec struct {
GitCommitBasicInfo
// FileName file name
FileName string `json:"fileName" yaml:"fileName"`
// FilePath file path
FilePath string `json:"filePath" yaml:"filePath"`
// Size file size
Size int64 `json:"size"`
// Encoding maybe text or base64 when path is a file
Encoding *string `json:"encoding"`
// Content file content
Content []byte `json:"content"`
// NodeSHA same as sha for file tree node.
NodeSHA string `json:"nodeSHA"`
Properties *runtime.RawExtension `json:"properties,omitempty"`
}
GitRepoFileSpec spec for repository's file
func (*GitRepoFileSpec) DeepCopy ¶
func (in *GitRepoFileSpec) DeepCopy() *GitRepoFileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepoFileSpec.
func (*GitRepoFileSpec) DeepCopyInto ¶
func (in *GitRepoFileSpec) DeepCopyInto(out *GitRepoFileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepoFileTreeOption ¶ added in v0.7.0
type GitRepoFileTreeOption struct {
GitRepo
Path string `json:"path"`
TreeSha string `json:"tree_sha"`
Recursive bool `json:"recursive"`
}
GitRepoFileTreeOption requesting parameters for the File Tree API
func (*GitRepoFileTreeOption) DeepCopy ¶ added in v0.7.0
func (in *GitRepoFileTreeOption) DeepCopy() *GitRepoFileTreeOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepoFileTreeOption.
func (*GitRepoFileTreeOption) DeepCopyInto ¶ added in v0.7.0
func (in *GitRepoFileTreeOption) DeepCopyInto(out *GitRepoFileTreeOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepository ¶
type GitRepository struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GitRepositorySpec `json:"spec"`
}
GitRepository repository
func (*GitRepository) DeepCopy ¶
func (in *GitRepository) DeepCopy() *GitRepository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepository.
func (*GitRepository) DeepCopyInto ¶
func (in *GitRepository) DeepCopyInto(out *GitRepository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryFileTree ¶ added in v0.7.0
type GitRepositoryFileTree struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GitRepositoryFileTreeSpec `json:"spec"`
}
GitRepositoryFileTree object for plugins
func (*GitRepositoryFileTree) DeepCopy ¶ added in v0.7.0
func (in *GitRepositoryFileTree) DeepCopy() *GitRepositoryFileTree
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryFileTree.
func (*GitRepositoryFileTree) DeepCopyInto ¶ added in v0.7.0
func (in *GitRepositoryFileTree) DeepCopyInto(out *GitRepositoryFileTree)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryFileTreeNode ¶ added in v0.7.0
type GitRepositoryFileTreeNode struct {
// Sha is the ID of the node
Sha string `json:"sha"`
// Name is the name of the node
Name string `json:"name"`
// Path is the path of the node
Path string `json:"path"`
// Type is the type of the node
Type GitRepositoryFileTreeNodeType `json:"type"`
// Mode indicates the permission level of the file
Mode string `json:"mode"`
}
GitRepositoryFileTreeNode represents a node in the file system
func (*GitRepositoryFileTreeNode) DeepCopy ¶ added in v0.7.0
func (in *GitRepositoryFileTreeNode) DeepCopy() *GitRepositoryFileTreeNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryFileTreeNode.
func (*GitRepositoryFileTreeNode) DeepCopyInto ¶ added in v0.7.0
func (in *GitRepositoryFileTreeNode) DeepCopyInto(out *GitRepositoryFileTreeNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryFileTreeNodeType ¶ added in v0.7.0
type GitRepositoryFileTreeNodeType string
const ( // TreeNodeBlobType represents a file TreeNodeBlobType GitRepositoryFileTreeNodeType = "blob" // TreeNodeTreeType represents a folder TreeNodeTreeType GitRepositoryFileTreeNodeType = "tree" )
type GitRepositoryFileTreeSpec ¶ added in v0.7.0
type GitRepositoryFileTreeSpec struct {
Tree []GitRepositoryFileTreeNode `json:"tree"`
}
GitRepositoryFileTreeSpec spec for repository's file
func (*GitRepositoryFileTreeSpec) DeepCopy ¶ added in v0.7.0
func (in *GitRepositoryFileTreeSpec) DeepCopy() *GitRepositoryFileTreeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryFileTreeSpec.
func (*GitRepositoryFileTreeSpec) DeepCopyInto ¶ added in v0.7.0
func (in *GitRepositoryFileTreeSpec) DeepCopyInto(out *GitRepositoryFileTreeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryList ¶
type GitRepositoryList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []GitRepository `json:"items"`
}
GitRepositoryList list of repo
func (*GitRepositoryList) DeepCopy ¶
func (in *GitRepositoryList) DeepCopy() *GitRepositoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryList.
func (*GitRepositoryList) DeepCopyInto ¶
func (in *GitRepositoryList) DeepCopyInto(out *GitRepositoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositorySpec ¶
type GitRepositorySpec struct {
// Name repo name
Name string `json:"name"`
// HtmlURL repo URL
HtmlURL string `json:"htmlUrl"`
// HttpCloneURL clone with http
HttpCloneURL string `json:"httpCloneUrl"`
// SshCloneURL clone with ssh
SshCloneURL string `json:"sshCloneUrl"`
// DefaultBranch main branch name
DefaultBranch string `json:"defaultBranch"`
// CreatedAt repo create time
CreatedAt metav1.Time `json:"createdAt"`
// UpdatedAt repo last update time
UpdatedAt metav1.Time `json:"updatedAt"`
// Owner repo owner
Owner GitUserBaseInfo `json:"owner"`
Properties *runtime.RawExtension `json:"properties,omitempty"`
}
GitRepositorySpec spec for repository
func (*GitRepositorySpec) DeepCopy ¶
func (in *GitRepositorySpec) DeepCopy() *GitRepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositorySpec.
func (*GitRepositorySpec) DeepCopyInto ¶
func (in *GitRepositorySpec) DeepCopyInto(out *GitRepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryTag ¶ added in v0.7.0
type GitRepositoryTag struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GitRepositoryTagSpec `json:"spec"`
}
GitRepositoryTag object for plugin
func (*GitRepositoryTag) DeepCopy ¶ added in v0.7.0
func (in *GitRepositoryTag) DeepCopy() *GitRepositoryTag
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryTag.
func (*GitRepositoryTag) DeepCopyInto ¶ added in v0.7.0
func (in *GitRepositoryTag) DeepCopyInto(out *GitRepositoryTag)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryTagInfo ¶ added in v0.7.0
type GitRepositoryTagInfo struct {
// Name tag's name
Name string `json:"name"`
// SHA tags's sha
SHA *string `json:"sha,omitempty"`
}
GitRepositoryTagInfo common tag info
func (*GitRepositoryTagInfo) DeepCopy ¶ added in v0.7.0
func (in *GitRepositoryTagInfo) DeepCopy() *GitRepositoryTagInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryTagInfo.
func (*GitRepositoryTagInfo) DeepCopyInto ¶ added in v0.7.0
func (in *GitRepositoryTagInfo) DeepCopyInto(out *GitRepositoryTagInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryTagList ¶ added in v0.7.0
type GitRepositoryTagList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []GitRepositoryTag `json:"items"`
}
GitRepositoryTagList list of commits
func (*GitRepositoryTagList) DeepCopy ¶ added in v0.7.0
func (in *GitRepositoryTagList) DeepCopy() *GitRepositoryTagList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryTagList.
func (*GitRepositoryTagList) DeepCopyInto ¶ added in v0.7.0
func (in *GitRepositoryTagList) DeepCopyInto(out *GitRepositoryTagList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryTagListOption ¶ added in v0.7.0
type GitRepositoryTagListOption struct {
GitRepo
}
GitRepositoryTagListOption option for list repository tag
func (*GitRepositoryTagListOption) DeepCopy ¶ added in v0.7.0
func (in *GitRepositoryTagListOption) DeepCopy() *GitRepositoryTagListOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryTagListOption.
func (*GitRepositoryTagListOption) DeepCopyInto ¶ added in v0.7.0
func (in *GitRepositoryTagListOption) DeepCopyInto(out *GitRepositoryTagListOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryTagOption ¶ added in v0.7.0
GitRepositoryTagOption option for repository tag
func (*GitRepositoryTagOption) DeepCopy ¶ added in v0.7.0
func (in *GitRepositoryTagOption) DeepCopy() *GitRepositoryTagOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryTagOption.
func (*GitRepositoryTagOption) DeepCopyInto ¶ added in v0.7.0
func (in *GitRepositoryTagOption) DeepCopyInto(out *GitRepositoryTagOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryTagSpec ¶ added in v0.7.0
type GitRepositoryTagSpec struct {
GitRepositoryTagInfo `json:",inline"`
// Address for commit url for code repository web server
// +optional
Address *duckv1.Addressable `json:"address,omitempty"`
// Message tag message
// +optional
Message *string `json:"message,omitempty"`
// Properties extended properties for tag
// +optional
Properties *runtime.RawExtension `json:"properties,omitempty"`
}
GitRepositoryTagSpec spec for commit
func (*GitRepositoryTagSpec) DeepCopy ¶ added in v0.7.0
func (in *GitRepositoryTagSpec) DeepCopy() *GitRepositoryTagSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryTagSpec.
func (*GitRepositoryTagSpec) DeepCopyInto ¶ added in v0.7.0
func (in *GitRepositoryTagSpec) DeepCopyInto(out *GitRepositoryTagSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRevision ¶ added in v0.7.0
type GitRevision struct {
// Raw revision in git clone format
// refs/head/main or refs/pulls/1/head etc
// +optional
Raw string `json:"raw,omitempty" variable:"example=refs/head/main"`
// Type stores the type of revision:
// Branch, PullRequest, Tag, or Commit
// +optional
Type GitRevisionType `json:"type,omitempty" variable:"example=Branch"`
// ID for the specific revision type:
// Branch: branch name
// PullRequest: Pull request ID
// Tag: tag name
// Commit: commit short ID
// +optional
ID string `json:"id,omitempty" variable:"example=1"`
}
GitRevision stores revision data from git provider
func (*GitRevision) DeepCopy ¶ added in v0.7.0
func (in *GitRevision) DeepCopy() *GitRevision
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRevision.
func (*GitRevision) DeepCopyInto ¶ added in v0.7.0
func (in *GitRevision) DeepCopyInto(out *GitRevision)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitRevision) GetValWithKey ¶ added in v0.7.0
func (rev *GitRevision) GetValWithKey(ctx context.Context, path *field.Path) (values map[string]string)
GetValWithKey returns the list of keys and values to support variable substitution
type GitRevisionDetail ¶ added in v0.7.0
type GitRevisionDetail struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GitRevisionSpec `json:"spec"`
}
GitRevisionDetail is the detail of a GitRevision
func (*GitRevisionDetail) DeepCopy ¶ added in v0.7.0
func (in *GitRevisionDetail) DeepCopy() *GitRevisionDetail
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRevisionDetail.
func (*GitRevisionDetail) DeepCopyInto ¶ added in v0.7.0
func (in *GitRevisionDetail) DeepCopyInto(out *GitRevisionDetail)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRevisionList ¶ added in v0.7.0
type GitRevisionList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []GitRevisionDetail `json:"items"`
}
GitRevisionList is a list of GitRevision
func (*GitRevisionList) DeepCopy ¶ added in v0.7.0
func (in *GitRevisionList) DeepCopy() *GitRevisionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRevisionList.
func (*GitRevisionList) DeepCopyInto ¶ added in v0.7.0
func (in *GitRevisionList) DeepCopyInto(out *GitRevisionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRevisionSpec ¶ added in v0.7.0
type GitRevisionSpec struct {
BaseGitStatus `json:",inline"`
// Attributes stores additional attributes for the revision
// +optional
Attributes map[string]string `json:"attribute,omitempty"`
}
func (*GitRevisionSpec) DeepCopy ¶ added in v0.7.0
func (in *GitRevisionSpec) DeepCopy() *GitRevisionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRevisionSpec.
func (*GitRevisionSpec) DeepCopyInto ¶ added in v0.7.0
func (in *GitRevisionSpec) DeepCopyInto(out *GitRevisionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRevisionType ¶ added in v0.7.0
type GitRevisionType string
GitRevisionType revision types used in scm
type GitUserBaseInfo ¶
type GitUserBaseInfo struct {
// Name is the login Name
Name string `json:"name"`
Email string `json:"email"`
}
GitUserBaseInfo user base info
func (*GitUserBaseInfo) DeepCopy ¶
func (in *GitUserBaseInfo) DeepCopy() *GitUserBaseInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitUserBaseInfo.
func (*GitUserBaseInfo) DeepCopyInto ¶
func (in *GitUserBaseInfo) DeepCopyInto(out *GitUserBaseInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HistoryLimits ¶ added in v0.7.0
type HistoryLimits struct {
// Sets a hard count for all finished items
// to be cleared from storage
Count *int `json:"count,omitempty"`
}
HistoryLimits limits the number of executed items are preserved It only calculates already completed items
func (*HistoryLimits) DeepCopy ¶ added in v0.7.0
func (in *HistoryLimits) DeepCopy() *HistoryLimits
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HistoryLimits.
func (*HistoryLimits) DeepCopyInto ¶ added in v0.7.0
func (in *HistoryLimits) DeepCopyInto(out *HistoryLimits)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HistoryLimits) IsInvalid ¶ added in v0.7.0
func (h *HistoryLimits) IsInvalid() bool
IsInvalid returns true if the history limits is set but the value is invalid
func (*HistoryLimits) IsNotSet ¶ added in v0.7.0
func (h *HistoryLimits) IsNotSet() bool
IsNotSet returns true if the history limits is set
type ImageConfig ¶ added in v0.3.0
type ImageConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ImageConfigSpec `json:"spec"`
}
ImageConfig object for plugins +k8s:deepcopy-gen=false
type ImageConfigSpec ¶ added in v0.3.0
type ImageConfigSpec struct {
Config v1.ImageConfig `json:"config"`
}
ImageConfigSpec object for plugin +k8s:deepcopy-gen=false
type Issue ¶ added in v0.3.0
type Issue struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec IssueSpec `json:"spec"`
}
Issue object for plugin
func (*Issue) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Issue.
func (*Issue) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IssueInfo ¶ added in v0.3.0
func (*IssueInfo) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssueInfo.
func (*IssueInfo) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IssueList ¶ added in v0.3.0
type IssueList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []Issue `json:"items"`
}
IssueList list of Issue
func (*IssueList) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssueList.
func (*IssueList) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IssueOptions ¶ added in v0.3.0
type IssueOptions struct {
// Project identity name
Identity string `json:"identity"`
// Issue id
IssueId string `json:"issueId"`
// Issue branch
Branch string `json:"branch"`
}
IssueOptions path params
func (*IssueOptions) DeepCopy ¶ added in v0.7.0
func (in *IssueOptions) DeepCopy() *IssueOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssueOptions.
func (*IssueOptions) DeepCopyInto ¶ added in v0.7.0
func (in *IssueOptions) DeepCopyInto(out *IssueOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IssuePriority ¶ added in v0.3.0
type IssuePriority struct {
// Issue priority id
Id string `json:"id"`
// Issue priority level
// +optional
Level string `json:"level"`
// Issue priority name
Name string `json:"name"`
}
func (*IssuePriority) DeepCopy ¶ added in v0.7.0
func (in *IssuePriority) DeepCopy() *IssuePriority
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssuePriority.
func (*IssuePriority) DeepCopyInto ¶ added in v0.7.0
func (in *IssuePriority) DeepCopyInto(out *IssuePriority)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IssueProject ¶ added in v0.3.0
type IssueProject struct {
// Issue of project id
Id string `json:"id"`
// Issue of project name
Name string `json:"name"`
}
func (*IssueProject) DeepCopy ¶ added in v0.7.0
func (in *IssueProject) DeepCopy() *IssueProject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssueProject.
func (*IssueProject) DeepCopyInto ¶ added in v0.7.0
func (in *IssueProject) DeepCopyInto(out *IssueProject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IssueSpec ¶ added in v0.3.0
type IssueSpec struct {
// Issue id
Id string `json:"id"`
// Issue project info
Project IssueProject `json:"project"`
// Address stores the webconsole address if any
Address *duckv1.Addressable `json:"address"`
// Issue subject
Subject string `json:"subject"`
// Issue type
Type string `json:"type"`
// Issue subtype
SubType string `json:"subType"`
// Issue priority
Priority IssuePriority `json:"priority"`
// Issue status
Status string `json:"status"`
// Issue assgin to someone
Assign UserSpec `json:"assign"`
// Issue latest update time
UpdatedTime metav1.Time
// Issue created user info
Author UserSpec `json:"author"`
// Issue description
Description string `json:"description"`
// Issue relate other issues
RelateIssues []RelateIssue `json:"relateIssues"`
// Issue subtasks
SubTasks []RelateIssue `json:"subTasks"`
// Issue comments
Comments []Comment `json:"comments"`
}
IssueSpec for Issue
func (*IssueSpec) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssueSpec.
func (*IssueSpec) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IssueType ¶ added in v0.3.0
type IssueType struct {
// Issue type id
Id string `json:"id"`
// Issue type name
Name string `json:"name"`
}
func (*IssueType) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssueType.
func (*IssueType) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ListMeta ¶
type ListMeta struct {
metav1.ListMeta `json:",inline"`
// TotalItems returned in the list
TotalItems int `json:"totalItems"`
// Current page number
// +optional
Page *int `json:"page,omitempty"`
// Current items per page
// +optional
ItemsPerPage *int `json:"itemsPerPage,omitempty"`
// Total number of pages
// +optional
TotalPages *int `json:"totalPages,omitempty"`
}
ListMeta extension of the metav1.ListMeta with paging related data
func (*ListMeta) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListMeta.
func (*ListMeta) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ListOptions ¶
type ListOptions struct {
// ItemsPerPage desired number of items to be returned in each page
ItemsPerPage int `json:"itemsPerPage"`
// Page desired to be returned
Page int `json:"page"`
// All if true, return all items
All bool `json:"all"`
// Custom search options
// +optional
Search url.Values `json:",inline"`
// Subresoures for listing
// will only work for lists that support this feature
// when not supported, this values will be ignored
// +optional
SubResources []string `json:"subResources"`
// Sort for listing
Sort []SortOptions `json:"sort"`
}
ListOptions options for list
func (*ListOptions) DeepCopy ¶
func (in *ListOptions) DeepCopy() *ListOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListOptions.
func (*ListOptions) DeepCopyInto ¶
func (in *ListOptions) DeepCopyInto(out *ListOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ListOptions) DefaultPager ¶ added in v0.7.0
func (opt *ListOptions) DefaultPager()
DefaultPager when ListOption page less than zero, set default value.
func (*ListOptions) GetSearchFirstElement ¶ added in v0.3.0
func (opt *ListOptions) GetSearchFirstElement(key string) (value string)
GetSearchFirstElement get first element by key that in search map
func (*ListOptions) MatchSearchValue ¶ added in v0.7.0
func (opt *ListOptions) MatchSearchValue(name string) bool
MatchSearchValue match search value
func (*ListOptions) MatchSubResource ¶ added in v0.7.0
func (opt *ListOptions) MatchSubResource(name string) bool
MatchSubResource match subresource
func (*ListOptions) SearchSet ¶ added in v0.7.0
func (opt *ListOptions) SearchSet(key, value string)
type MergeStatus ¶ added in v0.7.0
type MergeStatus string
MergeStatus is the status of a merge request
const ( // MergeStatusChecking indicates that the merge request is being checked MergeStatusChecking MergeStatus = "checking" // MergeStatusUnknown is the unknown status of the merge request MergeStatusUnknown MergeStatus = "unknown" // MergeStatusCanBeMerged indicates that the merge request can be merged MergeStatusCanBeMerged MergeStatus = "can_be_merged" // MergeStatusCannotBeMerged indicates that the merge request cannot be merged MergeStatusCannotBeMerged MergeStatus = "cannot_be_merged" )
type NamedValue ¶ added in v0.7.0
type NamedValue struct {
// Name parameter name.
// +optional
Name string `json:"name,omitempty"`
// Value The specific value of name, you can get the corresponding value according to the name.
// +optional
Value string `json:"value,omitempty"`
}
NamedValue can use the NamedValue structure to set some special parameters in the artifact. i.e artifact promotion use NamedValue to record artifact detail info. TODO: move to pkg/apis/artifacts/v1alpha1
func (*NamedValue) DeepCopy ¶ added in v0.7.0
func (in *NamedValue) DeepCopy() *NamedValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedValue.
func (*NamedValue) DeepCopyInto ¶ added in v0.7.0
func (in *NamedValue) DeepCopyInto(out *NamedValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectCondition ¶
type ObjectCondition struct {
apis.Condition `json:",inline"`
corev1.ObjectReference `json:",inline"`
// Annotations necessary annotations for ObjectCondition
// +optional
Annotations map[string]string `json:"annotations,omitempty"`
}
ObjectCondition is integration of an ObjectReference and a apis.Condition to give a condition for a specific object
func (*ObjectCondition) DeepCopy ¶
func (in *ObjectCondition) DeepCopy() *ObjectCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectCondition.
func (*ObjectCondition) DeepCopyInto ¶
func (in *ObjectCondition) DeepCopyInto(out *ObjectCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ObjectCondition) FromTopLevelConditionObject ¶
func (o *ObjectCondition) FromTopLevelConditionObject(obj TopLevelConditionObject) *ObjectCondition
func (ObjectCondition) IsTheSame ¶
func (o ObjectCondition) IsTheSame(obj ObjectCondition) bool
IsTheSame compares both object conditions and returns true if its the same object it uses the ObjectReference as comparisons method and ignore all condition related attributes making this useful when managing ObjectConditions
type ObjectConditionAccessor ¶
type ObjectConditionAccessor interface {
GetObjectConditions() ObjectConditions
SetObjectConditions(ObjectConditions)
}
ObjectConditionAccessor sets and gets ObjectConditions +k8s:deepcopy-gen=false
type ObjectConditionChanger ¶
type ObjectConditionChanger interface {
SetObjectCondition(objc ObjectCondition)
GetObjectConditionByObjRef(objref corev1.ObjectReference) *ObjectCondition
RemoveObjectConditionByObjRef(objref corev1.ObjectReference)
}
ObjectConditionChanger sets and removes objects +k8s:deepcopy-gen=false
type ObjectConditionManager ¶
type ObjectConditionManager interface {
ObjectConditionAccessor
ObjectConditionChanger
// MarkTrue sets the status of t to true, and then marks the happy condition to
// true if all dependents are true.
MarkTrue(t corev1.ObjectReference)
// MarkTrueWithReason sets the status of t to true with the reason, and then marks the happy
// condition to true if all dependents are true.
MarkTrueWithReason(t corev1.ObjectReference, reason, messageFormat string, messageA ...interface{})
// MarkUnknown sets the status of t to Unknown and also sets the happy condition
// to Unknown if no other dependent condition is in an error state.
MarkUnknown(t corev1.ObjectReference, reason, messageFormat string, messageA ...interface{})
// MarkFalse sets the status of t and the happy condition to False.
MarkFalse(t corev1.ObjectReference, reason, messageFormat string, messageA ...interface{})
// SetConditionType sets a condition type for object condition
SetConditionType(t corev1.ObjectReference, conditionType apis.ConditionType)
// SetSeverity sets a severity for object condition
SetSeverity(t corev1.ObjectReference, severity apis.ConditionSeverity)
}
ObjectConditionManager manages +k8s:deepcopy-gen=false
func ManageObjectCondition ¶
func ManageObjectCondition(accessor ObjectConditionAccessor) ObjectConditionManager
ManageObjectCondition returns a ObjectConditionManager
type ObjectConditionSet ¶
type ObjectConditionSet struct {
// contains filtered or unexported fields
}
ObjectConditionSet set of object conditions managed in a controller and added to specific object types it helps iterate and update its contents +k8s:deepcopy-gen=false
func (*ObjectConditionSet) GetObjectConditionByObjRef ¶
func (o *ObjectConditionSet) GetObjectConditionByObjRef(objref corev1.ObjectReference) *ObjectCondition
GetObjectConditionByObjRef returns object condition by object reference, returns nil if not found
func (*ObjectConditionSet) GetObjectConditions ¶
func (o *ObjectConditionSet) GetObjectConditions() ObjectConditions
GetObjectConditions get conditions
func (*ObjectConditionSet) MarkFalse ¶
func (o *ObjectConditionSet) MarkFalse(objref corev1.ObjectReference, reason, messageFormat string, messageA ...interface{})
MarkFalse sets the status of t and the happy condition to False.
func (*ObjectConditionSet) MarkTrue ¶
func (o *ObjectConditionSet) MarkTrue(objref corev1.ObjectReference)
MarkTrue sets the status of t to true, and then marks the happy condition to true if all dependents are true.
func (*ObjectConditionSet) MarkTrueWithReason ¶
func (o *ObjectConditionSet) MarkTrueWithReason(objref corev1.ObjectReference, reason, messageFormat string, messageA ...interface{})
MarkTrueWithReason sets the status of t to true with the reason
func (*ObjectConditionSet) MarkUnknown ¶
func (o *ObjectConditionSet) MarkUnknown(objref corev1.ObjectReference, reason, messageFormat string, messageA ...interface{})
MarkUnknown sets the status of t to Unknown and also sets the happy condition to Unknown if no other dependent condition is in an error state.
func (*ObjectConditionSet) RemoveObjectConditionByObjRef ¶
func (o *ObjectConditionSet) RemoveObjectConditionByObjRef(objref corev1.ObjectReference)
RemoveObjectConditionByObjRef removes item by corev1.ObjectReference
func (*ObjectConditionSet) SetConditionType ¶
func (o *ObjectConditionSet) SetConditionType(objref corev1.ObjectReference, conditionType apis.ConditionType)
SetConditionType sets a condition type for object condition
func (*ObjectConditionSet) SetObjectCondition ¶
func (o *ObjectConditionSet) SetObjectCondition(objc ObjectCondition)
SetObjectCondition sets object into condition slice in a upsert method
func (*ObjectConditionSet) SetObjectConditions ¶
func (o *ObjectConditionSet) SetObjectConditions(objcs ObjectConditions)
SetObjectConditions set conditions
func (*ObjectConditionSet) SetSeverity ¶
func (o *ObjectConditionSet) SetSeverity(objref corev1.ObjectReference, severity apis.ConditionSeverity)
SetSeverity sets a severity for object condition
type ObjectConditions ¶
type ObjectConditions []ObjectCondition
ObjectConditions collection of object conditions useful to store and iterate over different object conditions in the status of an object
func (ObjectConditions) DeepCopy ¶
func (in ObjectConditions) DeepCopy() ObjectConditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectConditions.
func (ObjectConditions) DeepCopyInto ¶
func (in ObjectConditions) DeepCopyInto(out *ObjectConditions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ObjectConditions) GetObjectConditionByObjRef ¶
func (o ObjectConditions) GetObjectConditionByObjRef(objref corev1.ObjectReference) *ObjectCondition
GetObjectConditionByObjRef get object condition by object reference, returns nil if not found
func (ObjectConditions) Manage ¶
func (o ObjectConditions) Manage(accessor ObjectConditionAccessor) ObjectConditionManager
Manage returns a ObjectConditionSet to manage its contents
func (ObjectConditions) RemoveObjectConditionByObjRef ¶
func (o ObjectConditions) RemoveObjectConditionByObjRef(objref corev1.ObjectReference) ObjectConditions
RemoveObjectConditionByObjRef removes a conditions based on a object reference and returns a new slice
func (ObjectConditions) SetObjectCondition ¶
func (o ObjectConditions) SetObjectCondition(objc ObjectCondition) ObjectConditions
SetObjectCondition updates a condition using the object reference, and if not found will append to the end and return a new slice
type ObjectRefOptionsFunc ¶
type ObjectRefOptionsFunc func(obj metav1.Object, ref *corev1.ObjectReference)
ObjectRefOptionsFunc is a function that can be used to modify an object reference +k8s:deepcopy-gen=false
func ObjectRefWithNamespace ¶
func ObjectRefWithNamespace() ObjectRefOptionsFunc
func ObjectRefWithTypeMeta ¶
func ObjectRefWithTypeMeta() ObjectRefOptionsFunc
func ObjectRefWithUID ¶
func ObjectRefWithUID() ObjectRefOptionsFunc
type Pager ¶ added in v0.7.0
type Pager struct {
// ItemsPerPage desired number of items to be returned in each page
ItemsPerPage int `json:"itemsPerPage"`
// Page desired to be returned
Page int `json:"page"`
}
Pager describe the paging params
func (*Pager) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pager.
func (*Pager) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Pager) GetPageLimit ¶ added in v0.7.0
GetPageLimit get the limit returned by a single page
type Param ¶ added in v0.7.0
Param is an alias of tekton.Param
func GetParamByName ¶ added in v0.7.0
func (*Param) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Param.
func (*Param) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParamSpec ¶ added in v0.7.0
ParamSpec is an alias of tekton.ParamSpec
func (*ParamSpec) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamSpec.
func (*ParamSpec) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Project ¶
type Project struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProjectSpec `json:"spec"`
}
Project object for plugins
func (*Project) AddNamespaceRef ¶ added in v0.2.0
func (p *Project) AddNamespaceRef(refs ...v1.ObjectReference)
func (*Project) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Project.
func (*Project) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectList ¶
type ProjectList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []Project `json:"items"`
}
ProjectList list of projects
func (*ProjectList) DeepCopy ¶
func (in *ProjectList) DeepCopy() *ProjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectList.
func (*ProjectList) DeepCopyInto ¶
func (in *ProjectList) DeepCopyInto(out *ProjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectList) Filter ¶ added in v0.3.0
func (p *ProjectList) Filter(filter func(project Project) bool) *ProjectList
Filter takes a closure that returns true or false, if true, the project should be present
func (*ProjectList) Paginate ¶ added in v0.3.0
func (p *ProjectList) Paginate(page int, pageSize int) *ProjectList
Paginate return a pagination subset of project list with specific page and page size
func (*ProjectList) Sort ¶ added in v0.3.0
func (p *ProjectList) Sort() *ProjectList
Sort project list by name
type ProjectSpec ¶
type ProjectSpec struct {
// Public defines if a project is public or not
Public bool `json:"public"`
// Address API related access URL
// +optional
Address *duckv1.Addressable `json:"address,omitempty"`
// Access stores the webconsole address if any
// +optional
Access *duckv1.Addressable `json:"access,omitempty"`
// ExtendedAddresses stores the tool extend url which has different repository than address.
// +optional
ExtendedAddresses map[ExtendedAddress]*duckv1.Addressable `json:"extendedAddresses,omitempty"`
// project subtype
// +kubebuilder:default="Project"
SubType ProjectSubType `json:"subType"`
// NamespaceRefs for which this project is already bound to
// +optional
NamespaceRefs []corev1.ObjectReference `json:"namespaceRefs,omitempty"`
// Properties extended properties for Project
Properties *runtime.RawExtension `json:"properties,omitempty"`
}
ProjectSpec spec for project TODO: add more necessary spec data
func (*ProjectSpec) DeepCopy ¶
func (in *ProjectSpec) DeepCopy() *ProjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSpec.
func (*ProjectSpec) DeepCopyInto ¶
func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectSubType ¶ added in v0.2.0
type ProjectSubType string
ProjectSubType stores a specific project subtype
const ( // DefaultProjectSubType default project subtype DefaultProjectSubType ProjectSubType = "Project" // ImageRegistryProjectSubType image registry project subtype ImageRegistryProjectSubType ProjectSubType = "ImageRegistry" // GitUserProjectSubType git user project subtype GitUserProjectSubType ProjectSubType = "GitUser" // GitGroupProjectSubType git group project subtype GitGroupProjectSubType ProjectSubType = "GitGroup" // RawRepositoryProjectSubType raw repository project subtype RawRepositoryProjectSubType ProjectSubType = "RawRepository" // MavenRepositoryProjectSubType maven repository project subtype MavenRepositoryProjectSubType ProjectSubType = "MavenRepository" // ProjectManagementSubtype project management subtype ProjectManagementSubtype ProjectSubType = "ProjectManagement" // TestProjectSubType test project subtype TestProjectSubType ProjectSubType = "TestProject" // MavenProxyRepositoryProjectSubType maven-proxy repository project subtype MavenProxyRepositoryProjectSubType ProjectSubType = "MavenProxyRepository" // MavenGroupRepositoryProjectSubType maven-group repository project subtype MavenGroupRepositoryProjectSubType ProjectSubType = "MavenGroupRepository" // RawProxyRepositoryProjectSubType raw-proxy repository project subtype RawProxyRepositoryProjectSubType ProjectSubType = "RawProxyRepository" // RawGroupRepositoryProjectSubType raw-group repository project subtype RawGroupRepositoryProjectSubType ProjectSubType = "RawGroupRepository" // NPMRepositoryProjectSubType npm repository project subtype NPMRepositoryProjectSubType ProjectSubType = "NPMRepository" // NPMProxyRepositoryProjectSubType npm-proxy repository project subtype NPMProxyRepositoryProjectSubType ProjectSubType = "NPMProxyRepository" // NPMGroupRepositoryProjectSubType npm-group repository project subtype NPMGroupRepositoryProjectSubType ProjectSubType = "NPMGroupRepository" // PYPIRepositoryProjectSubType python repository project subtype PYPIRepositoryProjectSubType ProjectSubType = "PYPIRepository" // PYPIProxyRepositoryProjectSubType python-proxy repository project subtype PYPIProxyRepositoryProjectSubType ProjectSubType = "PYPIProxyRepository" // PYPIGroupRepositoryProjectSubType python-group repository project subtype PYPIGroupRepositoryProjectSubType ProjectSubType = "PYPIGroupRepository" // GoProxyRepositoryProjectSubType go-proxy repository project subtype GoProxyRepositoryProjectSubType ProjectSubType = "GoProxyRepository" // GoGroupRepositoryProjectSubType go-group repository project subtype GoGroupRepositoryProjectSubType ProjectSubType = "GoGroupRepository" )
func (ProjectSubType) String ¶ added in v0.2.0
func (r ProjectSubType) String() string
type PullRequestState ¶
type PullRequestState string
const ( PullRequestOpenedState PullRequestState = "opened" PullRequestClosedState PullRequestState = "closed" PullRequestMergedState PullRequestState = "merged" PullRequestAllState PullRequestState = "all" )
func String2PullRequestState ¶
func String2PullRequestState(state string) *PullRequestState
type RelateIssue ¶ added in v0.3.0
type RelateIssue struct {
// Relate issue subject
Subject string `json:"subject"`
// Relate issue access
Access *duckv1.Addressable `json:"access"`
}
func (*RelateIssue) DeepCopy ¶ added in v0.7.0
func (in *RelateIssue) DeepCopy() *RelateIssue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RelateIssue.
func (*RelateIssue) DeepCopyInto ¶ added in v0.7.0
func (in *RelateIssue) DeepCopyInto(out *RelateIssue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReportSyncReason ¶ added in v0.3.0
type ReportSyncReason string
const ( // Sync task report succeeded ReportSyncSucceededReason ReportSyncReason = SucceededReason // Report is syncing ReportSyncingReason ReportSyncReason = "ReportSyncing" // Failed to sync report ReportSyncFailedReason ReportSyncReason = "ReportSyncFailed" )
type Repository ¶
type Repository struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec RepositorySpec `json:"spec"`
}
Repository object for plugins
func (*Repository) AddNamespaceRef ¶ added in v0.2.0
func (r *Repository) AddNamespaceRef(refs ...v1.ObjectReference)
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.
type RepositoryList ¶
type RepositoryList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []Repository `json:"items"`
}
RepositoryList list of repositories
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) Filter ¶ added in v0.3.0
func (r *RepositoryList) Filter(filter func(repository Repository) bool) *RepositoryList
Filter takes a closure that returns true or false, if true, the repository should be present
func (*RepositoryList) Paginate ¶ added in v0.3.0
func (r *RepositoryList) Paginate(page int, pageSize int) *RepositoryList
Paginate return a pagination subset of repository list with specific page and page size
type RepositoryOptions ¶
type RepositoryOptions struct {
// project name
Project string `json:"project"`
SubType ProjectSubType `json:"subType"`
}
RepositoryOptions list repositroy path params
func (*RepositoryOptions) DeepCopy ¶
func (in *RepositoryOptions) DeepCopy() *RepositoryOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryOptions.
func (*RepositoryOptions) DeepCopyInto ¶
func (in *RepositoryOptions) DeepCopyInto(out *RepositoryOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositorySpec ¶
type RepositorySpec struct {
// Address API related access URL
// +optional
Address *duckv1.Addressable `json:"address,omitempty"`
// Access stores the webconsole address if any
// +optional
Access *duckv1.Addressable `json:"access,omitempty"`
// Type of repository content
Type RepositorySubType `json:"type"`
// NamespaceRefs for which this project is already bound to
// +optional
NamespaceRefs []corev1.ObjectReference `json:"namespaceRefs,omitempty"`
// UpdatedTime updated time for repository
// +optional
UpdatedTime metav1.Time `json:"updatedTime"`
// Properties extended properties for Repository
// +optional
Properties *runtime.RawExtension `json:"properties,omitempty"`
}
RepositorySpec spec for repository TODO: add more necessary spec data
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 RepositorySubType ¶ added in v0.2.0
type RepositorySubType string
RepositorySubType stores a specific repository subtype
const ( // DefaultRepositorySubType default repository subtype DefaultRepositorySubType RepositorySubType = "Repository" // ImageRepositorySubType OCI artifact repository subtype ImageRepositorySubType RepositorySubType = "ImageRepository" // CodeRepositorySubType Code repository subtype CodeRepositorySubType RepositorySubType = "CodeRepository" )
func (RepositorySubType) String ¶ added in v0.2.0
func (r RepositorySubType) String() string
type ResourcePathScene ¶ added in v0.7.0
type ResourcePathScene string
ResourcePathScene resource path scene for formatting resource path
const ( // ResourcePathSceneAPI resource path scene for api call ResourcePathSceneAPI ResourcePathScene = "api" // ResourcePathSceneWebConsole resource path scene for web page ResourcePathSceneWebConsole ResourcePathScene = "web-console" // ResourcePathSceneHttpClone resource path scene for http clone url for git ResourcePathSceneHttpClone ResourcePathScene = "http-clone" )
type ResourceURI ¶
type ResourceURI struct {
// Unique resource identification for webhook resource, i.e
// a code repository uri: https://github.com/katanomi/core
URI *apis.URL `json:"uri"`
// SecretRef stores a reference to a secret object
// that contain authentication data for the described resource
SecretRef *corev1.ObjectReference `json:"secretRef"`
}
ResourceURI stores a resource URI together with secret references for usage
func (*ResourceURI) DeepCopy ¶
func (in *ResourceURI) DeepCopy() *ResourceURI
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceURI.
func (*ResourceURI) DeepCopyInto ¶
func (in *ResourceURI) DeepCopyInto(out *ResourceURI)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceURL ¶ added in v0.7.0
type ResourceURL struct {
// url can be a specific code repository or a group
URL *apis.URL `json:"url"`
// SecretRef stores a reference to a secret object
// that contain authentication data for the described resource
// If not specified, it will automatically match based on the url.
// If not matched, it will cause the failed state.
// +optional
SecretRef *corev1.ObjectReference `json:"secretRef,omitempty"`
}
ResourceURL stores a resource URL together with secret references for usage
func (*ResourceURL) DeepCopy ¶ added in v0.7.0
func (in *ResourceURL) DeepCopy() *ResourceURL
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceURL.
func (*ResourceURL) DeepCopyInto ¶ added in v0.7.0
func (in *ResourceURL) DeepCopyInto(out *ResourceURL)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SortOptions ¶ added in v0.3.0
type SortOptions struct {
// SortBy field
SortBy SortBy `json:"sortBy"`
// Order sorted is 'asc' or 'desc'
Order SortOrder `json:"order"`
}
SortOptions options for sort
func (*SortOptions) DeepCopy ¶ added in v0.3.0
func (in *SortOptions) DeepCopy() *SortOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SortOptions.
func (*SortOptions) DeepCopyInto ¶ added in v0.3.0
func (in *SortOptions) DeepCopyInto(out *SortOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestBuildStatusInfo ¶ added in v0.7.0
type TestBuildStatusInfo struct {
// TotalCases is the total number of cases
TotalCases int `json:"totalCases"`
// Passed is the number of passed cases
Passed int `json:"passed"`
// Failed is the number of failed cases
Failed int `json:"failed"`
// BLocked is the number of blocked cases
Blocked int `json:"blocked"`
// Waiting is the number of waiting cases
Waiting int `json:"waiting"`
// PassRate is the percentage of passed cases among all cases
PassRate float64 `json:"passRate"`
}
TestBuildStatusInfo for test build status
func (*TestBuildStatusInfo) DeepCopy ¶ added in v0.7.0
func (in *TestBuildStatusInfo) DeepCopy() *TestBuildStatusInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestBuildStatusInfo.
func (*TestBuildStatusInfo) DeepCopyInto ¶ added in v0.7.0
func (in *TestBuildStatusInfo) DeepCopyInto(out *TestBuildStatusInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestCase ¶ added in v0.7.0
type TestCase struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TestCaseSpec `json:"spec"`
Status TestCaseStatus `json:"status,omitempty"`
}
TestCase object for plugins
func (*TestCase) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCase.
func (*TestCase) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestCaseExecution ¶ added in v0.7.0
type TestCaseExecution struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TestCaseExecutionSpec `json:"spec"`
}
TestCaseExecution object for plugins
func (*TestCaseExecution) DeepCopy ¶ added in v0.7.0
func (in *TestCaseExecution) DeepCopy() *TestCaseExecution
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCaseExecution.
func (*TestCaseExecution) DeepCopyInto ¶ added in v0.7.0
func (in *TestCaseExecution) DeepCopyInto(out *TestCaseExecution)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestCaseExecutionList ¶ added in v0.7.0
type TestCaseExecutionList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []TestCaseExecution `json:"items"`
}
TestCaseExecutionList list of TestCaseExecutions
func (*TestCaseExecutionList) DeepCopy ¶ added in v0.7.0
func (in *TestCaseExecutionList) DeepCopy() *TestCaseExecutionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCaseExecutionList.
func (*TestCaseExecutionList) DeepCopyInto ¶ added in v0.7.0
func (in *TestCaseExecutionList) DeepCopyInto(out *TestCaseExecutionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestCaseExecutionSpec ¶ added in v0.7.0
type TestCaseExecutionSpec struct {
// TestPlanID refers to the test plan including current test case
TestPlanID string `json:"testPlanId"`
// BuildRef refers to the build related to current test case
// +optional
BuildRef *TestObjectRef `json:"buildRef"`
// Status is the execution result status
Status TestCaseExecutionStatus `json:"status"`
// CreatedAt is the time when test case was executed
CreatedAt metav1.Time `json:"createdAt"`
// CreatedBy is the user who created the TestCaseExecution
CreatedBy UserSpec `json:"createdBy,omitempty"`
}
TestCaseExecutionSpec spec for TestCaseExecution
func (*TestCaseExecutionSpec) DeepCopy ¶ added in v0.7.0
func (in *TestCaseExecutionSpec) DeepCopy() *TestCaseExecutionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCaseExecutionSpec.
func (*TestCaseExecutionSpec) DeepCopyInto ¶ added in v0.7.0
func (in *TestCaseExecutionSpec) DeepCopyInto(out *TestCaseExecutionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestCaseExecutionStatus ¶ added in v0.7.0
type TestCaseExecutionStatus string
TestCaseExecutionStatus covers possible values of TestcaseExecutionStatus
const ( TestcaseExecutionStatusPassed TestCaseExecutionStatus = "passed" TestcaseExecutionStatusFailed TestCaseExecutionStatus = "failed" TestcaseExecutionStatusBlocked TestCaseExecutionStatus = "blocked" TestcaseExecutionStatusWaiting TestCaseExecutionStatus = "waiting" )
Possible test case execution status below
type TestCaseList ¶ added in v0.7.0
type TestCaseList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []TestCase `json:"items"`
}
TestCaseList list of TestCases
func (*TestCaseList) DeepCopy ¶ added in v0.7.0
func (in *TestCaseList) DeepCopy() *TestCaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCaseList.
func (*TestCaseList) DeepCopyInto ¶ added in v0.7.0
func (in *TestCaseList) DeepCopyInto(out *TestCaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestCaseRelatedObjectInfo ¶ added in v0.7.0
type TestCaseRelatedObjectInfo struct {
// Title is the title of related object
Title string `json:"title"`
// TargetURL is the URL for redirection
// +optional
TargetURL string `json:"targetURL"`
}
TestCaseRelatedObjectInfo refers to an object related to test case
func (*TestCaseRelatedObjectInfo) DeepCopy ¶ added in v0.7.0
func (in *TestCaseRelatedObjectInfo) DeepCopy() *TestCaseRelatedObjectInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCaseRelatedObjectInfo.
func (*TestCaseRelatedObjectInfo) DeepCopyInto ¶ added in v0.7.0
func (in *TestCaseRelatedObjectInfo) DeepCopyInto(out *TestCaseRelatedObjectInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestCaseSpec ¶ added in v0.7.0
type TestCaseSpec struct {
// ID is the test plan id
ID string `json:"id"`
// Type is the type description from integration tools
Type string `json:"type"`
// Prerequisite are the preparations before executing the testcase steps
Prerequisite string `json:"prerequisite"`
// Steps tell testers how to do to execute this case
Steps []TestCaseStepInfo `json:"steps"`
// CreatedBy is the user who created the TestCase
// +optional
CreatedBy UserSpec `json:"createdBy"`
// Priority shows how important this case is
Priority string `json:"priority"`
// RelatedRequirements is a list of product requirements related to this test case
// +optional
RelatedRequirements []TestCaseRelatedObjectInfo `json:"relatedRequirements"`
// RelatedBugs is a list of bugs related to this test case
// +optional
RelatedBugs []TestCaseRelatedObjectInfo `json:"relatedBugs"`
}
TestCaseSpec spec for TestCase
func (*TestCaseSpec) DeepCopy ¶ added in v0.7.0
func (in *TestCaseSpec) DeepCopy() *TestCaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCaseSpec.
func (*TestCaseSpec) DeepCopyInto ¶ added in v0.7.0
func (in *TestCaseSpec) DeepCopyInto(out *TestCaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestCaseStatus ¶ added in v0.7.0
type TestCaseStatus struct {
// LastExecution is spec of the latest TestExecution related to the test case
// +optional
LastExecution *TestCaseExecutionSpec `json:"lastExecution"`
}
TestCaseStatus includes status of test case
func (*TestCaseStatus) DeepCopy ¶ added in v0.7.0
func (in *TestCaseStatus) DeepCopy() *TestCaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCaseStatus.
func (*TestCaseStatus) DeepCopyInto ¶ added in v0.7.0
func (in *TestCaseStatus) DeepCopyInto(out *TestCaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestCaseStepInfo ¶ added in v0.7.0
type TestCaseStepInfo struct {
// ID is the id of step generated by integration tools
ID string `json:"id"`
// Description shows how to run this step
Description string `json:"description"`
// Order shows the order of step
Order string `json:"order"`
// Expect shows the expected output after running this step
Expect string `json:"expect"`
}
TestCaseStepInfo describes details of TestCaseStep
func (*TestCaseStepInfo) DeepCopy ¶ added in v0.7.0
func (in *TestCaseStepInfo) DeepCopy() *TestCaseStepInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestCaseStepInfo.
func (*TestCaseStepInfo) DeepCopyInto ¶ added in v0.7.0
func (in *TestCaseStepInfo) DeepCopyInto(out *TestCaseStepInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestModule ¶ added in v0.7.0
type TestModule struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TestModuleSpec `json:"spec"`
}
TestModule object for plugins
func (*TestModule) ContainsTestCaseID ¶ added in v0.7.0
func (tm *TestModule) ContainsTestCaseID(caseID string) bool
func (*TestModule) DeepCopy ¶ added in v0.7.0
func (in *TestModule) DeepCopy() *TestModule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestModule.
func (*TestModule) DeepCopyInto ¶ added in v0.7.0
func (in *TestModule) DeepCopyInto(out *TestModule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestModuleCaseRef ¶ added in v0.7.0
type TestModuleCaseRef struct {
// TestObjectRef refers to a test case
TestCase TestObjectRef `json:"ref"`
// Order indicates the ASC order of the object at same level
Order int `json:"order"`
}
TestModuleCaseRef refers to a test module and its order
func (*TestModuleCaseRef) DeepCopy ¶ added in v0.7.0
func (in *TestModuleCaseRef) DeepCopy() *TestModuleCaseRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestModuleCaseRef.
func (*TestModuleCaseRef) DeepCopyInto ¶ added in v0.7.0
func (in *TestModuleCaseRef) DeepCopyInto(out *TestModuleCaseRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestModuleList ¶ added in v0.7.0
type TestModuleList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []TestModule `json:"items"`
}
TestModuleList list of TestModules
func (*TestModuleList) DeepCopy ¶ added in v0.7.0
func (in *TestModuleList) DeepCopy() *TestModuleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestModuleList.
func (*TestModuleList) DeepCopyInto ¶ added in v0.7.0
func (in *TestModuleList) DeepCopyInto(out *TestModuleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestModuleSpec ¶ added in v0.7.0
type TestModuleSpec struct {
// ID is the test module id
ID string `json:"id"`
// Order is used to sort modules by ASC order
Order int `json:"order"`
// ParentID is the parent module ID
ParentID string `json:"parentID"`
// TestCases are the cases included by a module
// +optional
TestCases []TestModuleCaseRef `json:"testCases"`
}
TestModuleSpec spec for TestModule
func (*TestModuleSpec) DeepCopy ¶ added in v0.7.0
func (in *TestModuleSpec) DeepCopy() *TestModuleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestModuleSpec.
func (*TestModuleSpec) DeepCopyInto ¶ added in v0.7.0
func (in *TestModuleSpec) DeepCopyInto(out *TestModuleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestObjectRef ¶ added in v0.7.0
type TestObjectRef struct {
// Name is the name of the build
Name string `json:"name"`
// ID is the id of the build
ID string `json:"id"`
}
TestObjectRef refers to a test object
func RefFromMap ¶ added in v0.7.0
func RefFromMap(m map[string]*TestObjectRef, ID string) *TestObjectRef
func (*TestObjectRef) DeepCopy ¶ added in v0.7.0
func (in *TestObjectRef) DeepCopy() *TestObjectRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestObjectRef.
func (*TestObjectRef) DeepCopyInto ¶ added in v0.7.0
func (in *TestObjectRef) DeepCopyInto(out *TestObjectRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestPlan ¶ added in v0.7.0
type TestPlan struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TestPlanSpec `json:"spec"`
Status TestPlanStatus `json:"status,omitempty"`
}
TestPlan object for plugins
func (*TestPlan) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestPlan.
func (*TestPlan) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestPlanList ¶ added in v0.7.0
type TestPlanList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []TestPlan `json:"items"`
}
TestPlanList list of TestPlans
func (*TestPlanList) DeepCopy ¶ added in v0.7.0
func (in *TestPlanList) DeepCopy() *TestPlanList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestPlanList.
func (*TestPlanList) DeepCopyInto ¶ added in v0.7.0
func (in *TestPlanList) DeepCopyInto(out *TestPlanList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestPlanSpec ¶ added in v0.7.0
type TestPlanSpec struct {
// ID is the test plan id
ID string `json:"id"`
// Assignee is the user assigned to execute the TestPlan
Assignee UserSpec `json:"assignee"`
// CreatedBy is the user who created the TestPlan
CreatedBy UserSpec `json:"createdBy"`
// BuildRefs are the build references related to the TestPlan
BuildRefs []TestObjectRef `json:"buildRefs"`
}
TestPlanSpec spec for TestPlan
func (*TestPlanSpec) DeepCopy ¶ added in v0.7.0
func (in *TestPlanSpec) DeepCopy() *TestPlanSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestPlanSpec.
func (*TestPlanSpec) DeepCopyInto ¶ added in v0.7.0
func (in *TestPlanSpec) DeepCopyInto(out *TestPlanSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestPlanStatus ¶ added in v0.7.0
type TestPlanStatus struct {
// Conditions indicates the latest status of TestPlan within a build
apis.Conditions `json:"conditions"`
// BuildRef is the ref of the last build of a TestPlan
BuildRef *TestObjectRef `json:"buildRef"`
// Executable indicates test cases under the TestPlan could be executed
Executable bool `json:"executable"`
// StartDate is the start date of the TestPlan within a build
StartDate *metav1.Time `json:"startDate,omitempty"`
// EndDate is the deadline of the TestPlan within a build
EndDate *metav1.Time `json:"endDate,omitempty"`
// TestBuildStatus shows the latest test plan status of a build
TestBuildStatus TestBuildStatusInfo `json:"testBuildStatus,omitempty"`
}
TestPlanStatus for test plan status
func (*TestPlanStatus) DeepCopy ¶ added in v0.7.0
func (in *TestPlanStatus) DeepCopy() *TestPlanStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestPlanStatus.
func (*TestPlanStatus) DeepCopyInto ¶ added in v0.7.0
func (in *TestPlanStatus) DeepCopyInto(out *TestPlanStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TestProjectOptions ¶ added in v0.7.0
type TestProjectOptions struct {
// Project identity
Project string `json:"project"`
// TestPlanID identity
TestPlanID string `json:"testPlanID"`
// TestCaseID identity
TestCaseID string `json:"testCaseID"`
// BuildID query param
BuildID string `json:"buildID"`
// Search query param for listing
Search string `json:"search"`
}
func (*TestProjectOptions) DeepCopy ¶ added in v0.7.0
func (in *TestProjectOptions) DeepCopy() *TestProjectOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestProjectOptions.
func (*TestProjectOptions) DeepCopyInto ¶ added in v0.7.0
func (in *TestProjectOptions) DeepCopyInto(out *TestProjectOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TimeCursor ¶ added in v0.7.0
type TimeCursor struct {
Pager
// QueryStartAt is the time of the first query
QueryStartAt int64 `json:"queryStartAt"`
}
TimeCursor is a cursor contains the time of query start
func ParseTimeCursor ¶ added in v0.7.0
func ParseTimeCursor(cursor string) (*TimeCursor, error)
ParseTimeCursor parse cursor from string
func (*TimeCursor) DeepCopy ¶ added in v0.7.0
func (in *TimeCursor) DeepCopy() *TimeCursor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TimeCursor.
func (*TimeCursor) DeepCopyInto ¶ added in v0.7.0
func (in *TimeCursor) DeepCopyInto(out *TimeCursor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (TimeCursor) Encode ¶ added in v0.7.0
func (p TimeCursor) Encode() string
Encode encode cursor to string
type TopLevelConditionObject ¶
type TopLevelConditionObject interface {
metav1.Object
// GetTopLevelCondition finds and returns the top level Condition (happy Condition).
GetTopLevelCondition() *apis.Condition
}
TopLevelConditionObject shoule be an metav1.Object that implement func GetTopLevelCondition() *apis.Condition +k8s:deepcopy-gen=false
type TriggeredBy ¶
type TriggeredBy struct {
// Reference to the user that triggered the object. Any Kubernetes `Subject` is accepted.
// +optional
User *rbacv1.Subject `json:"user,omitempty" variable:"example=admin"`
// Cloud Event data for the event that triggered.
// +optional
CloudEvent *CloudEvent `json:"cloudEvent,omitempty"`
// Reference to another object that might have triggered this object
// +optional
Ref *corev1.ObjectReference `json:"ref,omitempty"`
// Date time of creation of triggered event. Will match a resource's metadata.creationTimestamp
// it is added here for convinience only
// +optional
TriggeredTimestamp *metav1.Time `json:"triggeredTimestamp,omitempty" variable:"label=default;example=2022-08-05T05:34:39Z"`
// Indicates trigger type, such as Manual Automated.
// +optional
TriggeredType DefinitionTriggeredType `json:"triggeredType,omitempty" variable:"example=Automated"`
}
TriggeredBy stores a list of triggered information such as: Entity that triggered, reference of an object that could have triggered, and event that triggered.
func (*TriggeredBy) DeepCopy ¶
func (in *TriggeredBy) DeepCopy() *TriggeredBy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggeredBy.
func (*TriggeredBy) DeepCopyInto ¶
func (in *TriggeredBy) DeepCopyInto(out *TriggeredBy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggeredBy) FromAnnotation ¶
func (by *TriggeredBy) FromAnnotation(annotations map[string]string) (*TriggeredBy, error)
FromAnnotation will set `by` from annotations it will find TriggeredByAnnotationKey and unmarshl content into struct type *TriggeredBy if not found TriggeredByAnnotationKey, error would be nil, and *TriggeredBy would be nil also. if some errors happened, error will not be nil and *TriggeredBy will be nil
func (*TriggeredBy) GetValWithKey ¶ added in v0.7.0
func (by *TriggeredBy) GetValWithKey(ctx context.Context, path *field.Path) (values map[string]string)
GetValWithKey returns the list of keys and values to support variable substitution
func (*TriggeredBy) IsZero ¶
func (by *TriggeredBy) IsZero() bool
IsZero basic function returns true when all attributes of the object are empty
func (TriggeredBy) SetIntoAnnotation ¶
SetIntoAnnotation will set TriggeredBy into annotations return annotations that with triggeredby.
type UpdatePullRequestCommentPayload ¶ added in v0.7.0
type UpdatePullRequestCommentPayload struct {
GitRepo
CreatePullRequestCommentParam
Index int `json:"index"`
CommentID int `json:"commentID"`
}
UpdatePullRequestCommentPayload is payload for update pr's Comment
func (*UpdatePullRequestCommentPayload) DeepCopy ¶ added in v0.7.0
func (in *UpdatePullRequestCommentPayload) DeepCopy() *UpdatePullRequestCommentPayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdatePullRequestCommentPayload.
func (*UpdatePullRequestCommentPayload) DeepCopyInto ¶ added in v0.7.0
func (in *UpdatePullRequestCommentPayload) DeepCopyInto(out *UpdatePullRequestCommentPayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type User ¶ added in v0.3.0
type User struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec UserSpec `json:"spec"`
}
User object for plugin
func (*User) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User.
func (*User) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserApproval ¶ added in v0.7.0
type UserApproval struct {
// Approval user data
rbacv1.Subject `json:",inline"`
// Operator record the real operator of the approval
// Exist only when the actual approver is someone else.
// +optional
Operator *rbacv1.Subject `json:"operator,omitempty"`
// Stores the user input for the approval.
// Once provided may determine the execution of StageRun
Input *UserApprovalInput `json:"input,omitempty"`
}
UserApproval specific runtime user record for approval
func (*UserApproval) DeepCopy ¶ added in v0.7.0
func (in *UserApproval) DeepCopy() *UserApproval
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserApproval.
func (*UserApproval) DeepCopyInto ¶ added in v0.7.0
func (in *UserApproval) DeepCopyInto(out *UserApproval)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserApprovalInput ¶ added in v0.7.0
type UserApprovalInput struct {
// Approved user approval decision
// +optional
Approved bool `json:"approved,omitempty"`
// Description for given deicision
// +optional
Description string `json:"description,omitempty"`
}
UserApprovalInput user input for a specific approval
func (*UserApprovalInput) DeepCopy ¶ added in v0.7.0
func (in *UserApprovalInput) DeepCopy() *UserApprovalInput
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserApprovalInput.
func (*UserApprovalInput) DeepCopyInto ¶ added in v0.7.0
func (in *UserApprovalInput) DeepCopyInto(out *UserApprovalInput)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserApprovals ¶ added in v0.7.0
type UserApprovals []UserApproval
func (UserApprovals) DeepCopy ¶ added in v0.7.0
func (in UserApprovals) DeepCopy() UserApprovals
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserApprovals.
func (UserApprovals) DeepCopyInto ¶ added in v0.7.0
func (in UserApprovals) DeepCopyInto(out *UserApprovals)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (UserApprovals) GetBySubject ¶ added in v0.7.0
func (users UserApprovals) GetBySubject(subject rbacv1.Subject) *UserApproval
type UserInfo ¶ added in v0.7.0
type UserInfo struct {
// UserInfo holds the information about the user needed to implement the user.Info interface.
authenticationv1.UserInfo
}
UserInfo is generic user information types
func (*UserInfo) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo.
func (*UserInfo) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserList ¶ added in v0.3.0
type UserList struct {
metav1.TypeMeta `json:",inline"`
ListMeta `json:"metadata,omitempty"`
Items []User `json:"items"`
}
UserList list of user
func (*UserList) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserList.
func (*UserList) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserOptions ¶ added in v0.3.0
type UserOptions struct {
// Project identity
Project string `json:"project"`
// Group identity
Group string `json:"group"`
// User indentity
UserId string `json:"userId"`
}
func (*UserOptions) DeepCopy ¶ added in v0.7.0
func (in *UserOptions) DeepCopy() *UserOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserOptions.
func (*UserOptions) DeepCopyInto ¶ added in v0.7.0
func (in *UserOptions) DeepCopyInto(out *UserOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UserSpec ¶ added in v0.3.0
type UserSpec struct {
// user id
Id string `json:"id,omitempty"`
// user name
Name string `json:"name,omitempty"`
//user email
Email string `json:"email,omitempty"`
}
UserSpec for Issue
func UserSpecFromNote ¶ added in v0.7.0
func (*UserSpec) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpec.
func (*UserSpec) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Variable ¶ added in v0.7.0
type Variable struct {
// Name variable name, usually a variable JsonPath.
Name string `json:"name"`
// Example variable example. equal signs and semicolons cannot be included in the strength.
Example string `json:"example,omitempty"`
// Label variable labels, used to distinguish different types of variables, multiple labels are separated by commas.
Label string `json:"label,omitempty"`
// Group is used to mark display groups. Unlike labels, labels represent business groups.
Group string `json:"group,omitempty"`
}
Variable description of custom environment variables.
func (*Variable) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable.
func (*Variable) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VariableList ¶ added in v0.7.0
type VariableList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
// Items contains variable list.
Items []Variable `json:"items"`
}
VariableList variable list.
func (*VariableList) DeepCopy ¶ added in v0.7.0
func (in *VariableList) DeepCopy() *VariableList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VariableList.
func (*VariableList) DeepCopyInto ¶ added in v0.7.0
func (in *VariableList) DeepCopyInto(out *VariableList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VariableList) Filter ¶ added in v0.7.0
func (v *VariableList) Filter(filters ...func(*Variable) bool)
type WebhookEventSupportType ¶ added in v0.3.0
type WebhookEventSupportType string
WebhookEventSupportType consists of event type and "Event"
const ( // https://github.com/katanomi/spec/pull/80 // key in integrationClass.status // CodeRepositoryPushWebhookEvent event value for code repository's push webhook CodeRepositoryPushWebhookEvent WebhookEventSupportType = "CodeRepositoryPushEvent" // CodeRepositoryTagWebhookEvent event values for code repository's tag webhook CodeRepositoryTagWebhookEvent WebhookEventSupportType = "CodeRepositoryTagEvent" // CodeRepositoryPullRequestWebhookEvent event values for code repository's pr webhook CodeRepositoryPullRequestWebhookEvent WebhookEventSupportType = "CodeRepositoryPullRequestEvent" // ArtifactDeleteWebhookEvent event values for artifact's delete webhook ArtifactDeleteWebhookEvent WebhookEventSupportType = "ArtifactDeleteEvent" // ArtifactPushWebhookEvent event values for artifact's push webhook ArtifactPushWebhookEvent WebhookEventSupportType = "ArtifactPushEvent" // WebhookEventSuffix key's suffix in integrationClass.status WebhookEventSuffix = "Event" )
func (WebhookEventSupportType) String ¶ added in v0.3.0
func (w WebhookEventSupportType) String() string
type WebhookRegisterSpec ¶
type WebhookRegisterSpec struct {
// URI stores the Uniform Resource Identifier for webhook resource
URI apis.URL `json:"uri"`
// Events holds a list of event types desired for registration
Events []string `json:"events"`
// WebhookID is only used in update and can be blank for creation
// +optional
WebhookID string `json:"webhookID"`
// Address stores the target address for the webhook
Address apis.URL `json:"addressURL"`
// RequestSecret will hold information for a request header that should be used
// by the registring webhook
// this data will be used during request to validate webhook requests
// +optional
RequestSecret string `json:"requestSecret"`
}
WebhookRegisterSpec specifications to register a webhook
func (*WebhookRegisterSpec) DeepCopy ¶
func (in *WebhookRegisterSpec) DeepCopy() *WebhookRegisterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookRegisterSpec.
func (*WebhookRegisterSpec) DeepCopyInto ¶
func (in *WebhookRegisterSpec) DeepCopyInto(out *WebhookRegisterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookRegisterStatus ¶
type WebhookRegisterStatus struct {
// WebhookID will return the registered webhook id during create
WebhookID string `json:"webhookID"`
// Address stores the target address for the webhook
Address apis.URL `json:"addressURL"`
// StatusCode for the API request
// +optional
StatusCode int `json:"statusCode"`
// Body response body returned from the request
// +optional
Body []byte `json:"body"`
}
WebhookRegisterStatus stores a registration request result
func (*WebhookRegisterStatus) DeepCopy ¶
func (in *WebhookRegisterStatus) DeepCopy() *WebhookRegisterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookRegisterStatus.
func (*WebhookRegisterStatus) DeepCopyInto ¶
func (in *WebhookRegisterStatus) DeepCopyInto(out *WebhookRegisterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files
¶
- approve_funcs.go
- approve_types.go
- approve_validate.go
- artifact.go
- artifact_filter.go
- artifact_filter_validation.go
- artifact_funcs.go
- artifact_types.go
- artifact_validate.go
- auth_types.go
- blobstore_types.go
- buildmetadata_funcs.go
- buildmetadata_types.go
- check_funcs.go
- check_types.go
- check_validate.go
- cloudevent.go
- code_quality_project_overview.go
- code_quality_types.go
- condition.go
- constant.go
- context_types.go
- createdBy_types.go
- createmeta_types.go
- cursor.go
- data_map.go
- git_branch_funcs.go
- git_revision.go
- gitbase_types.go
- gitbranch_types.go
- gitcommit_types.go
- gitcommitcomment_types.go
- gitcommitstatus_types.go
- gitoption_types.go
- gitpullrequest_types.go
- gitrepofile_types.go
- gitrepofiletree_types.go
- gitrepositories_types.go
- gitrepotag_types.go
- groupversion_info.go
- historylimits_types.go
- image_config_types.go
- labels.go
- labels_annotations.go
- labels_annotations_funcs.go
- listmeta_types.go
- object.go
- objectcondition_set.go
- objectcondition_types.go
- objectreference.go
- pager.go
- param_types.go
- params_funcs.go
- project_funcs.go
- project_manage_attribute_types.go
- project_manage_branch_funcs.go
- project_manage_branch_types.go
- project_manage_issue_types.go
- project_types.go
- repository_funcs.go
- repository_types.go
- resource_object_types.go
- resourcepath_scene.go
- testcase_types.go
- testcaseexecution_types.go
- testmodule_types.go
- testplan_types.go
- tool_service.go
- triggeredby_types.go
- user_types.go
- variable_filter.go
- variable_type.go
- webhook_types.go
- zz_generated.deepcopy.go