Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | 121x 121x 121x 121x 121x 121x | /*
* Copyright 2022 Harness Inc. All rights reserved.
* Use of this source code is governed by the PolyForm Shield 1.0.0 license
* that can be found in the licenses directory at the root of this repository, also available at
* https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt.
*/
import type { MultiTypeInputType } from '@wings-software/uicore'
import type { FormikValues } from 'formik'
import type { GetDataError } from 'restful-react'
import type { ConnectorSelectedValue } from '@connectors/components/ConnectorReferenceField/ConnectorReferenceField'
import type { DeploymentStageElementConfig, StageElementWrapper } from '@pipeline/utils/pipelineTypes'
import type {
ArtifactConfig,
PrimaryArtifact,
PageConnectorResponse,
SidecarArtifactWrapper,
DockerBuildDetailsDTO,
Failure,
Error
} from 'services/cd-ng'
export interface ArtifactListViewProps {
isForPredefinedSets?: boolean
stage: StageElementWrapper<DeploymentStageElementConfig> | undefined
overrideSetIdentifier?: string
primaryArtifact: PrimaryArtifact
sideCarArtifact: SidecarArtifactWrapper[] | undefined
addNewArtifact: (view: number) => void
editArtifact: (view: number, type: ArtifactType, index?: number) => void
removePrimary: () => void
removeSidecar: (index: number) => void
fetchedConnectorResponse: PageConnectorResponse | undefined
accountId: string
refetchConnectors: () => void
isReadonly: boolean
}
export interface ArtifactsSelectionProps {
isForOverrideSets?: boolean
isForPredefinedSets?: boolean
identifierName?: string
isPropagating?: boolean
overrideSetIdentifier?: string
}
export type ArtifactType =
| 'DockerRegistry'
| 'Gcr'
| 'Ecr'
| 'Nexus3Registry'
| 'ArtifactoryRegistry'
| 'CustomArtifact'
| 'Acr'
export interface OrganizationCreationType {
type: ArtifactType
}
export enum TagTypes {
Value = 'value',
Regex = 'regex'
}
export enum RepositoryPortOrServer {
RepositoryPort = 'repositoryPort',
RepositoryUrl = 'repositoryUrl'
}
export interface InitialArtifactDataType {
submittedArtifact?: ArtifactType | null
connectorId: string | undefined | ConnectorSelectedValue
}
export interface ImagePathTypes {
identifier: string
imagePath?: string
artifactPath?: string
tag: any
tagRegex: any
tagType: TagTypes
registryHostname?: string
region?: any
repositoryPort?: number | string
repository?: string
repositoryUrl?: string
repositoryPortorRepositoryURL?: string
}
export interface CustomArtifactSource extends ImagePathTypes {
version: string
}
export interface ImagePathProps {
key: string
name: string
expressions: string[]
context: number
initialValues: ImagePathTypes
handleSubmit: (data: ArtifactConfig) => void
artifactIdentifiers: string[]
isReadonly?: boolean
selectedArtifact: ArtifactType | null
allowableTypes: MultiTypeInputType[]
}
export interface ConnectorRefLabelType {
firstStepName: string
secondStepName: string
}
export interface ArtifactTagHelperText {
imagePath?: string
artifactPath?: string
region?: string
connectorRef: string
registryHostname?: string
repository?: string
repositoryPort?: number
}
export interface ArtifactImagePathTagViewProps {
selectedArtifact: ArtifactType
formik: FormikValues
expressions: string[]
isReadonly?: boolean
allowableTypes: MultiTypeInputType[]
connectorIdValue: string
fetchTags: (val: string) => void
buildDetailsLoading: boolean
tagList: DockerBuildDetailsDTO[] | undefined
setTagList: any
tagError: GetDataError<Failure | Error> | null
tagDisabled: boolean
isArtifactPath?: boolean
}
|