Documentation ¶
Index ¶
- Variables
- func AbapAddonAssemblyKitCheckCVsCommand() *cobra.Command
- func AbapAddonAssemblyKitCheckPVCommand() *cobra.Command
- func AbapAddonAssemblyKitCreateTargetVectorCommand() *cobra.Command
- func AbapAddonAssemblyKitPublishTargetVectorCommand() *cobra.Command
- func AbapAddonAssemblyKitRegisterPackagesCommand() *cobra.Command
- func AbapAddonAssemblyKitReleasePackagesCommand() *cobra.Command
- func AbapAddonAssemblyKitReserveNextPackagesCommand() *cobra.Command
- func AbapEnvironmentAssembleConfirmCommand() *cobra.Command
- func AbapEnvironmentAssemblePackagesCommand() *cobra.Command
- func AbapEnvironmentBuildCommand() *cobra.Command
- func AbapEnvironmentCheckoutBranchCommand() *cobra.Command
- func AbapEnvironmentCloneGitRepoCommand() *cobra.Command
- func AbapEnvironmentCreateSystemCommand() *cobra.Command
- func AbapEnvironmentPullGitRepoCommand() *cobra.Command
- func AbapEnvironmentPushATCSystemConfigCommand() *cobra.Command
- func AbapEnvironmentRunATCCheckCommand() *cobra.Command
- func AbapEnvironmentRunAUnitTestCommand() *cobra.Command
- func AccessTokensFromEnvJSON(env string) []string
- func ApiKeyValueMapDownloadCommand() *cobra.Command
- func ApiKeyValueMapUploadCommand() *cobra.Command
- func ApiProviderDownloadCommand() *cobra.Command
- func ApiProxyDownloadCommand() *cobra.Command
- func ApiProxyUploadCommand() *cobra.Command
- func ArtifactPrepareVersionCommand() *cobra.Command
- func BatsExecuteTestsCommand() *cobra.Command
- func CheckStepActiveCommand() *cobra.Command
- func CheckmarxExecuteScanCommand() *cobra.Command
- func CloudFoundryCreateServiceCommand() *cobra.Command
- func CloudFoundryCreateServiceKeyCommand() *cobra.Command
- func CloudFoundryCreateSpaceCommand() *cobra.Command
- func CloudFoundryDeleteServiceCommand() *cobra.Command
- func CloudFoundryDeleteSpaceCommand() *cobra.Command
- func CloudFoundryDeployCommand() *cobra.Command
- func CnbBuildCommand() *cobra.Command
- func CommandLineCompletionCommand() *cobra.Command
- func ConfigCommand() *cobra.Command
- func ContainerExecuteStructureTestsCommand() *cobra.Command
- func ContainerSaveImageCommand() *cobra.Command
- func DefaultsCommand() *cobra.Command
- func DeleteIntegrationArtifactResource(config *integrationArtifactResourceOptions, httpClient piperhttp.Sender, ...) error
- func DetectExecuteScanCommand() *cobra.Command
- func Equal(a, b string) bool
- func Execute()
- func FortifyExecuteScanCommand() *cobra.Command
- func GaugeExecuteTestsCommand() *cobra.Command
- func GctsCloneRepositoryCommand() *cobra.Command
- func GctsCreateRepositoryCommand() *cobra.Command
- func GctsDeployCommand() *cobra.Command
- func GctsExecuteABAPQualityChecksCommand() *cobra.Command
- func GctsExecuteABAPUnitTestsCommand() *cobra.Command
- func GctsRollbackCommand() *cobra.Command
- func GetAllStepMetadata() map[string]config.StepData
- func GetDockerImageValue(stepName string) (string, error)
- func GetJSONPayload(config *integrationArtifactResourceOptions, mode string, ...) (*bytes.Buffer, error)
- func GetJSONPayloadAsByteArray(config *integrationArtifactUploadOptions, mode string, ...) (*bytes.Buffer, error)
- func GetResourceFileExtension(filename string) string
- func GetStageConfig() (config.StepConfig, error)
- func GithubCheckBranchProtectionCommand() *cobra.Command
- func GithubCommentIssueCommand() *cobra.Command
- func GithubCreateIssueCommand() *cobra.Command
- func GithubCreatePullRequestCommand() *cobra.Command
- func GithubPublishReleaseCommand() *cobra.Command
- func GithubSetCommitStatusCommand() *cobra.Command
- func GitopsUpdateDeploymentCommand() *cobra.Command
- func GolangBuildCommand() *cobra.Command
- func GradleExecuteBuildCommand() *cobra.Command
- func HadolintExecuteCommand() *cobra.Command
- func HandleHttpResponse(resp *http.Response, err error, message string, ...) error
- func HelmExecuteCommand() *cobra.Command
- func HttpResponseHandler(resp *http.Response, httpErr error, ...) error
- func InfluxWriteDataCommand() *cobra.Command
- func IntegrationArtifactDeployCommand() *cobra.Command
- func IntegrationArtifactDownloadCommand() *cobra.Command
- func IntegrationArtifactGetMplStatusCommand() *cobra.Command
- func IntegrationArtifactGetServiceEndpointCommand() *cobra.Command
- func IntegrationArtifactResourceCommand() *cobra.Command
- func IntegrationArtifactTriggerIntegrationTestCommand() *cobra.Command
- func IntegrationArtifactUnDeployCommand() *cobra.Command
- func IntegrationArtifactUpdateConfigurationCommand() *cobra.Command
- func IntegrationArtifactUploadCommand() *cobra.Command
- func IsChangeInDevelopmentCommand() *cobra.Command
- func JsonApplyPatchCommand() *cobra.Command
- func KanikoExecuteCommand() *cobra.Command
- func KarmaExecuteTestsCommand() *cobra.Command
- func KubernetesDeployCommand() *cobra.Command
- func MalwareExecuteScanCommand() *cobra.Command
- func MavenBuildCommand() *cobra.Command
- func MavenExecuteCommand() *cobra.Command
- func MavenExecuteIntegrationCommand() *cobra.Command
- func MavenExecuteStaticCodeChecksCommand() *cobra.Command
- func MtaBuildCommand() *cobra.Command
- func NewmanExecuteCommand() *cobra.Command
- func NexusUploadCommand() *cobra.Command
- func NpmExecuteLintCommand() *cobra.Command
- func NpmExecuteScriptsCommand() *cobra.Command
- func PipelineCreateScanSummaryCommand() *cobra.Command
- func PrepareConfig(cmd *cobra.Command, metadata *config.StepData, stepName string, ...) error
- func ProtecodeExecuteScanCommand() *cobra.Command
- func ReadPipelineEnv() *cobra.Command
- func ResolveAccessTokens(tokenList []string) map[string]string
- func ShellExecuteCommand() *cobra.Command
- func SonarExecuteScanCommand() *cobra.Command
- func TerraformExecuteCommand() *cobra.Command
- func TransportRequestDocIDFromGitCommand() *cobra.Command
- func TransportRequestReqIDFromGitCommand() *cobra.Command
- func TransportRequestUploadCTSCommand() *cobra.Command
- func TransportRequestUploadRFCCommand() *cobra.Command
- func TransportRequestUploadSOLMANCommand() *cobra.Command
- func UiVeri5ExecuteTestsCommand() *cobra.Command
- func Unequal(a, b string) bool
- func UpdateIntegrationArtifact(config *integrationArtifactUploadOptions, httpClient piperhttp.Sender, ...) error
- func UpdateIntegrationArtifactResource(config *integrationArtifactResourceOptions, httpClient piperhttp.Sender, ...) error
- func UploadIntegrationArtifact(config *integrationArtifactUploadOptions, httpClient piperhttp.Sender, ...) error
- func UploadIntegrationArtifactResource(config *integrationArtifactResourceOptions, httpClient piperhttp.Sender, ...) error
- func VaultRotateSecretIdCommand() *cobra.Command
- func VersionCommand() *cobra.Command
- func WhitesourceExecuteScanCommand() *cobra.Command
- func WritePipelineEnv() *cobra.Command
- func XsDeployCommand() *cobra.Command
- type ATCConfiguration
- type ATCError
- type ATCObjects
- type AUnitComponentSet
- type AUnitConfig
- type AUnitFlatObjectSet
- type AUnitLink
- type AUnitObjectTypeSet
- type AUnitOptions
- type AUnitPackage
- type AUnitPackageSet
- type AUnitResult
- type AUnitRun
- type AUnitTransportSet
- type AbapError
- type AbapErrorMessage
- type Action
- type ApplicationComponent
- type DeployMode
- type Duration
- type ExecutedBy
- type File
- type GeneralConfigOptions
- type HadolintClient
- type HadolintPiperFileUtils
- type HookConfiguration
- type Language
- type Link
- type MTABuildTarget
- type MultiPropertySet
- type ObjectSet
- type ObjectType
- type ObjectTypeGroup
- type OperatorCallback
- type Owner
- type Package
- type Progress
- type ReleaseState
- type Result
- type RiskLevel
- type Run
- type ScanOptions
- type Scope
- type SentryConfiguration
- type Service
- type Set
- type SoftwareComponent
- type SoftwareComponents
- type SourceSystem
- type SplunkConfiguration
- type Time
- type TransportLayer
- type UploadAction
- type Version
Constants ¶
This section is empty.
Variables ¶
var ErrorGaugeInstall error = errors.New("error installing gauge")
var ErrorGaugeRun error = errors.New("error running gauge")
var ErrorGaugeRunnerInstall error = errors.New("error installing runner")
var GitCommit string
GitCommit ...
var GitTag string
GitTag ...
Functions ¶
func AbapAddonAssemblyKitCheckCVsCommand ¶
AbapAddonAssemblyKitCheckCVsCommand This step checks the validity of ABAP Software Component Versions.
func AbapAddonAssemblyKitCheckPVCommand ¶
AbapAddonAssemblyKitCheckPVCommand This step checks the validity of a Addon Product Version.
func AbapAddonAssemblyKitCreateTargetVectorCommand ¶
AbapAddonAssemblyKitCreateTargetVectorCommand This step creates a Target Vector for software lifecycle operations
func AbapAddonAssemblyKitPublishTargetVectorCommand ¶
AbapAddonAssemblyKitPublishTargetVectorCommand This step triggers the publication of the Target Vector according to the specified scope.
func AbapAddonAssemblyKitRegisterPackagesCommand ¶
AbapAddonAssemblyKitRegisterPackagesCommand This step uploads the SAR archives and creates physical Delivery Packages to AAKaaS.
func AbapAddonAssemblyKitReleasePackagesCommand ¶
AbapAddonAssemblyKitReleasePackagesCommand This step releases the physical Delivery Packages
func AbapAddonAssemblyKitReserveNextPackagesCommand ¶
AbapAddonAssemblyKitReserveNextPackagesCommand This step determines the ABAP delivery packages (name and type), which are needed to deliver Software Component Versions.
func AbapEnvironmentAssembleConfirmCommand ¶
AbapEnvironmentAssembleConfirmCommand Confirm the Delivery of Assembly for installation, support package or patch in SAP Cloud Platform ABAP Environment system
func AbapEnvironmentAssemblePackagesCommand ¶
AbapEnvironmentAssemblePackagesCommand Assembly of installation, support package or patch in SAP Cloud Platform ABAP Environment system
func AbapEnvironmentBuildCommand ¶
AbapEnvironmentBuildCommand Executes builds as defined with the build framework
func AbapEnvironmentCheckoutBranchCommand ¶
AbapEnvironmentCheckoutBranchCommand Switches between branches of a git repository on a SAP BTP ABAP Environment system
func AbapEnvironmentCloneGitRepoCommand ¶
AbapEnvironmentCloneGitRepoCommand Clones a git repository to a SAP BTP ABAP Environment system
func AbapEnvironmentCreateSystemCommand ¶
AbapEnvironmentCreateSystemCommand Creates a SAP BTP ABAP Environment system (aka Steampunk system)
func AbapEnvironmentPullGitRepoCommand ¶
AbapEnvironmentPullGitRepoCommand Pulls a git repository to a SAP BTP ABAP Environment system
func AbapEnvironmentPushATCSystemConfigCommand ¶
AbapEnvironmentPushATCSystemConfigCommand Create/Update ATC System Configuration
func AbapEnvironmentRunATCCheckCommand ¶
AbapEnvironmentRunATCCheckCommand Runs an ATC Check
func AbapEnvironmentRunAUnitTestCommand ¶
AbapEnvironmentRunAUnitTestCommand Runs an AUnit Test
func AccessTokensFromEnvJSON ¶
AccessTokensFromEnvJSON resolves access tokens when passed as JSON in an environment variable
func ApiKeyValueMapDownloadCommand ¶
ApiKeyValueMapDownloadCommand Download a specific Key Value Map from the API Portal
func ApiKeyValueMapUploadCommand ¶
ApiKeyValueMapUploadCommand this steps creates an API key value map artifact in the API Portal
func ApiProviderDownloadCommand ¶
ApiProviderDownloadCommand Download a specific API Provider from the API Portal
func ApiProxyDownloadCommand ¶
ApiProxyDownloadCommand Download a specific API Proxy from the API Portal
func ApiProxyUploadCommand ¶
ApiProxyUploadCommand Upload an api proxy artifact in to the API Portal
func ArtifactPrepareVersionCommand ¶
ArtifactPrepareVersionCommand Prepares and potentially updates the artifact's version before building the artifact.
func BatsExecuteTestsCommand ¶
BatsExecuteTestsCommand This step executes tests using the [Bash Automated Testing System - bats-core](https://github.com/bats-core/bats-core).
func CheckStepActiveCommand ¶
CheckStepActiveCommand is the entry command for checking if a step is active in a defined stage
func CheckmarxExecuteScanCommand ¶
CheckmarxExecuteScanCommand Checkmarx is the recommended tool for security scans of JavaScript, iOS, Swift and Ruby code.
func CloudFoundryCreateServiceCommand ¶
CloudFoundryCreateServiceCommand Creates one or multiple Services in Cloud Foundry
func CloudFoundryCreateServiceKeyCommand ¶
CloudFoundryCreateServiceKeyCommand cloudFoundryCreateServiceKey
func CloudFoundryCreateSpaceCommand ¶
CloudFoundryCreateSpaceCommand Creates a user defined space in Cloud Foundry
func CloudFoundryDeleteServiceCommand ¶
CloudFoundryDeleteServiceCommand DeleteCloudFoundryService
func CloudFoundryDeleteSpaceCommand ¶
CloudFoundryDeleteSpaceCommand Deletes a space in Cloud Foundry
func CloudFoundryDeployCommand ¶
CloudFoundryDeployCommand Deploys an application to Cloud Foundry
func CnbBuildCommand ¶
CnbBuildCommand Executes Cloud Native Buildpacks.
func CommandLineCompletionCommand ¶
CommandLineCompletionCommand allows to generate convenience scripts for using the piper cli in a shell. See https://github.com/spf13/cobra/blob/master/shell_completions.md for docs on the subject.
func ConfigCommand ¶
ConfigCommand is the entry command for loading the configuration of a pipeline step
func ContainerExecuteStructureTestsCommand ¶
ContainerExecuteStructureTestsCommand In this step [Container Structure Tests](https://github.com/GoogleContainerTools/container-structure-test) are executed.
func ContainerSaveImageCommand ¶
ContainerSaveImageCommand Saves a container image as a tar file
func DefaultsCommand ¶
DefaultsCommand is the entry command for loading the configuration of a pipeline step
func DeleteIntegrationArtifactResource ¶
func DeleteIntegrationArtifactResource(config *integrationArtifactResourceOptions, httpClient piperhttp.Sender, fileUtils piperutils.FileUtils, apiHost string) error
DeleteIntegrationArtifactResource - Delete integration artifact resource file
func DetectExecuteScanCommand ¶
DetectExecuteScanCommand Executes Synopsys Detect scan
func FortifyExecuteScanCommand ¶
FortifyExecuteScanCommand This step executes a Fortify scan on the specified project to perform static code analysis and check the source code for security flaws.
func GaugeExecuteTestsCommand ¶
GaugeExecuteTestsCommand Installs gauge and executes specified gauge tests.
func GctsCloneRepositoryCommand ¶
GctsCloneRepositoryCommand Clones a Git repository
func GctsCreateRepositoryCommand ¶
GctsCreateRepositoryCommand Creates a Git repository on an ABAP system
func GctsDeployCommand ¶
GctsDeployCommand Deploys a Git Repository to a local Repository and then to an ABAP System
func GctsExecuteABAPQualityChecksCommand ¶
GctsExecuteABAPQualityChecksCommand Runs ABAP unit tests and ATC (ABAP Test Cockpit) checks for a specified object scope.
func GctsExecuteABAPUnitTestsCommand ¶
GctsExecuteABAPUnitTestsCommand Runs ABAP unit tests and ATC (ABAP Test Cockpit) checks for a specified object scope.
func GctsRollbackCommand ¶
GctsRollbackCommand Perfoms roll back of one (default) or several commit(s)
func GetAllStepMetadata ¶
GetStepMetadata return a map with all the step metadata mapped to their stepName
func GetDockerImageValue ¶
GetDockerImageValue provides Piper commands additional access to configuration of step execution image if required
func GetJSONPayload ¶
func GetJSONPayload(config *integrationArtifactResourceOptions, mode string, fileUtils piperutils.FileUtils) (*bytes.Buffer, error)
GetJSONPayload -return http payload as byte array
func GetJSONPayloadAsByteArray ¶
func GetJSONPayloadAsByteArray(config *integrationArtifactUploadOptions, mode string, fileUtils piperutils.FileUtils) (*bytes.Buffer, error)
GetJSONPayloadAsByteArray -return http payload as byte array
func GetResourceFileExtension ¶
GetResourceFileExtension -return resource file extension
func GetStageConfig ¶
func GetStageConfig() (config.StepConfig, error)
GetStageConfig provides Piper commands additional access to stage configuration if required. This allows steps to refer to configuration parameters which are not part of the step itself.
func GithubCheckBranchProtectionCommand ¶
GithubCheckBranchProtectionCommand Check branch protection of a GitHub branch
func GithubCommentIssueCommand ¶
GithubCommentIssueCommand Comment on GitHub issues and pull requests.
func GithubCreateIssueCommand ¶
GithubCreateIssueCommand Create a new GitHub issue.
func GithubCreatePullRequestCommand ¶
GithubCreatePullRequestCommand Create a pull request on GitHub
func GithubPublishReleaseCommand ¶
GithubPublishReleaseCommand Publish a release in GitHub
func GithubSetCommitStatusCommand ¶
GithubSetCommitStatusCommand Set a status of a certain commit.
func GitopsUpdateDeploymentCommand ¶
GitopsUpdateDeploymentCommand Updates Kubernetes Deployment Manifest in an Infrastructure Git Repository
func GolangBuildCommand ¶
GolangBuildCommand This step will execute a golang build.
func GradleExecuteBuildCommand ¶
GradleExecuteBuildCommand This step runs a gradle build command with parameters provided to the step.
func HadolintExecuteCommand ¶
HadolintExecuteCommand Executes the Haskell Dockerfile Linter which is a smarter Dockerfile linter that helps you build [best practice](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/) Docker images.
func HandleHttpResponse ¶
func HelmExecuteCommand ¶
HelmExecuteCommand Executes helm3 functionality as the package manager for Kubernetes.
func HttpResponseHandler ¶
func HttpResponseHandler(resp *http.Response, httpErr error, integrationArtifactResourceData *integrationArtifactResourceData) error
HttpResponseHandler - handle http response object
func InfluxWriteDataCommand ¶
InfluxWriteDataCommand Writes metrics to influxdb
func IntegrationArtifactDeployCommand ¶
IntegrationArtifactDeployCommand Deploy a CPI integration flow
func IntegrationArtifactDownloadCommand ¶
IntegrationArtifactDownloadCommand Download integration flow runtime artefact
func IntegrationArtifactGetMplStatusCommand ¶
IntegrationArtifactGetMplStatusCommand Get the MPL status of an integration flow
func IntegrationArtifactGetServiceEndpointCommand ¶
IntegrationArtifactGetServiceEndpointCommand Get an deployed CPI intgeration flow service endpoint
func IntegrationArtifactResourceCommand ¶
IntegrationArtifactResourceCommand Add, Delete or Update an resource file of integration flow designtime artifact
func IntegrationArtifactTriggerIntegrationTestCommand ¶
IntegrationArtifactTriggerIntegrationTestCommand Test the service endpoint of your iFlow
func IntegrationArtifactUnDeployCommand ¶
IntegrationArtifactUnDeployCommand Undeploy a integration flow
func IntegrationArtifactUpdateConfigurationCommand ¶
IntegrationArtifactUpdateConfigurationCommand Update integration flow Configuration parameter
func IntegrationArtifactUploadCommand ¶
IntegrationArtifactUploadCommand Upload or Update an integration flow designtime artifact
func IsChangeInDevelopmentCommand ¶
IsChangeInDevelopmentCommand This step checks if a certain change is in status 'in development'
func JsonApplyPatchCommand ¶
JsonApplyPatchCommand Patches a json with a patch file
func KanikoExecuteCommand ¶
KanikoExecuteCommand Executes a [Kaniko](https://github.com/GoogleContainerTools/kaniko) build for creating a Docker container.
func KarmaExecuteTestsCommand ¶
KarmaExecuteTestsCommand Executes the Karma test runner
func KubernetesDeployCommand ¶
KubernetesDeployCommand Deployment to Kubernetes test or production namespace within the specified Kubernetes cluster.
func MalwareExecuteScanCommand ¶
MalwareExecuteScanCommand Performs a malware scan using the [SAP Malware Scanning Service](https://help.sap.com/viewer/b416237f818c4e2e827f6118640079f8/LATEST/en-US/b7c9b86fe724458086a502df3160f380.html).
func MavenBuildCommand ¶
MavenBuildCommand This step will install the maven project into the local maven repository.
func MavenExecuteCommand ¶
MavenExecuteCommand This step allows to run maven commands
func MavenExecuteIntegrationCommand ¶
MavenExecuteIntegrationCommand This step will execute backend integration tests via the Jacoco Maven-plugin.
func MavenExecuteStaticCodeChecksCommand ¶
MavenExecuteStaticCodeChecksCommand Execute static code checks for Maven based projects. The plugins SpotBugs and PMD are used.
func NewmanExecuteCommand ¶
NewmanExecuteCommand Installs newman and executes specified newman collections.
func NexusUploadCommand ¶
NexusUploadCommand Upload artifacts to Nexus Repository Manager
func NpmExecuteLintCommand ¶
NpmExecuteLintCommand Execute ci-lint script on all npm packages in a project or execute default linting
func NpmExecuteScriptsCommand ¶
NpmExecuteScriptsCommand Execute npm run scripts on all npm packages in a project
func PipelineCreateScanSummaryCommand ¶
PipelineCreateScanSummaryCommand Collect scan result information anc create a summary report
func PrepareConfig ¶
func PrepareConfig(cmd *cobra.Command, metadata *config.StepData, stepName string, options interface{}, openFile func(s string, t map[string]string) (io.ReadCloser, error)) error
PrepareConfig reads step configuration from various sources and merges it (defaults, config file, flags, ...)
func ProtecodeExecuteScanCommand ¶
ProtecodeExecuteScanCommand Black Duck Binary Analysis (BDBA), previously known as Protecode is an Open Source Vulnerability Scanner that is capable of scanning binaries. It can be used to scan docker images but is supports many other programming languages especially those of the C family.
func ReadPipelineEnv ¶
ReadPipelineEnv reads the commonPipelineEnvironment from disk and outputs it as JSON
func ResolveAccessTokens ¶
ResolveAccessTokens reads a list of tokens in format host:token passed via command line and transfers this into a map as a more consumable format.
func ShellExecuteCommand ¶
ShellExecuteCommand Step executes defined script
func SonarExecuteScanCommand ¶
SonarExecuteScanCommand Executes the Sonar scanner
func TerraformExecuteCommand ¶
TerraformExecuteCommand Executes Terraform
func TransportRequestDocIDFromGitCommand ¶
TransportRequestDocIDFromGitCommand Retrieves change document ID from Git repository
func TransportRequestReqIDFromGitCommand ¶
TransportRequestReqIDFromGitCommand Retrieves the transport request ID from Git repository
func TransportRequestUploadCTSCommand ¶
TransportRequestUploadCTSCommand This step uploads an UI5 application to the SAPUI5 ABAP repository.
func TransportRequestUploadRFCCommand ¶
TransportRequestUploadRFCCommand This step uploads a UI5 application as ZIP file to the ABAP system via RFC connections.
func TransportRequestUploadSOLMANCommand ¶
TransportRequestUploadSOLMANCommand Uploads a specified file into a given transport via Solution Manager
func UiVeri5ExecuteTestsCommand ¶
UiVeri5ExecuteTestsCommand Executes UI5 e2e tests using uiVeri5
func UpdateIntegrationArtifact ¶
func UpdateIntegrationArtifact(config *integrationArtifactUploadOptions, httpClient piperhttp.Sender, fileUtils piperutils.FileUtils, apiHost string) error
UpdateIntegrationArtifact - Update existing integration artifact
func UpdateIntegrationArtifactResource ¶
func UpdateIntegrationArtifactResource(config *integrationArtifactResourceOptions, httpClient piperhttp.Sender, fileUtils piperutils.FileUtils, apiHost string) error
UpdateIntegrationArtifactResource - Update integration artifact resource file
func UploadIntegrationArtifact ¶
func UploadIntegrationArtifact(config *integrationArtifactUploadOptions, httpClient piperhttp.Sender, fileUtils piperutils.FileUtils, apiHost string) error
UploadIntegrationArtifact - Upload new integration artifact
func UploadIntegrationArtifactResource ¶
func UploadIntegrationArtifactResource(config *integrationArtifactResourceOptions, httpClient piperhttp.Sender, fileUtils piperutils.FileUtils, apiHost string) error
UploadIntegrationArtifactResource - Upload new resource file to existing integration flow design time artefact
func VaultRotateSecretIdCommand ¶
VaultRotateSecretIdCommand Rotate Vault AppRole Secret ID
func VersionCommand ¶
VersionCommand Returns the version of the piper binary
func WhitesourceExecuteScanCommand ¶
WhitesourceExecuteScanCommand Execute a WhiteSource scan
func WritePipelineEnv ¶
WritePipelineEnv Serializes the commonPipelineEnvironment JSON to disk
Types ¶
type ATCConfiguration ¶
type ATCConfiguration struct { CheckVariant string `json:"checkvariant,omitempty"` Configuration string `json:"configuration,omitempty"` Objects ATCObjects `json:"atcobjects"` }
ATCConfiguration object for parsing yaml config of software components and packages
type ATCError ¶
type ATCError struct { Text string `xml:",chardata"` Message string `xml:"message,attr"` Source string `xml:"source,attr"` Line string `xml:"line,attr"` Severity string `xml:"severity,attr"` }
ATCError with message
type ATCObjects ¶
type ATCObjects struct { Package []Package `json:"package"` SoftwareComponent []SoftwareComponent `json:"softwarecomponent"` }
ATCObjects in form of packages and software components to be checked
type AUnitComponentSet ¶
type AUnitComponentSet struct {
Name string `json:"name,omitempty"`
}
AUnitComponentSet in form of software components to be checked
type AUnitConfig ¶
type AUnitConfig struct { Title string `json:"title,omitempty"` Context string `json:"context,omitempty"` Options AUnitOptions `json:"options,omitempty"` ObjectSet ObjectSet `json:"objectset,omitempty"` }
AUnitConfig object for parsing yaml config of software components and packages
type AUnitFlatObjectSet ¶
type AUnitFlatObjectSet struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` }
AUnitFlatObjectSet
type AUnitLink ¶
type AUnitLink struct { Href string `xml:"href,attr"` Rel string `xml:"rel,attr"` Type string `xml:"type,attr"` }
AUnitLink containing result locations
type AUnitObjectTypeSet ¶
type AUnitObjectTypeSet struct {
Name string `json:"name,omitempty"`
}
AUnitObjectTypeSet
type AUnitOptions ¶
type AUnitOptions struct { Measurements string `json:"measurements,omitempty"` Scope Scope `json:"scope,omitempty"` RiskLevel RiskLevel `json:"risklevel,omitempty"` Duration Duration `json:"duration,omitempty"` }
AUnitOptions in form of packages and software components to be checked
type AUnitPackage ¶
type AUnitPackage struct {
Name string `json:"name,omitempty"`
}
AUnitPackage for MPS
type AUnitPackageSet ¶
type AUnitPackageSet struct { Name string `json:"name,omitempty"` IncludeSubpackages *bool `json:"includesubpackages,omitempty"` }
AUnitPackageSet in form of packages to be checked
type AUnitResult ¶
type AUnitResult struct { XMLName xml.Name `xml:"testsuites"` Title string `xml:"title,attr"` System string `xml:"system,attr"` Client string `xml:"client,attr"` ExecutedBy string `xml:"executedBy,attr"` Time string `xml:"time,attr"` Timestamp string `xml:"timestamp,attr"` Failures string `xml:"failures,attr"` Errors string `xml:"errors,attr"` Skipped string `xml:"skipped,attr"` Asserts string `xml:"asserts,attr"` Tests string `xml:"tests,attr"` Testsuite struct { Tests string `xml:"tests,attr"` Asserts string `xml:"asserts,attr"` Skipped string `xml:"skipped,attr"` Errors string `xml:"errors,attr"` Failures string `xml:"failures,attr"` Timestamp string `xml:"timestamp,attr"` Time string `xml:"time,attr"` Hostname string `xml:"hostname,attr"` Package string `xml:"package,attr"` Name string `xml:"name,attr"` Testcase []struct { Asserts string `xml:"asserts,attr"` Time string `xml:"time,attr"` Name string `xml:"name,attr"` Classname string `xml:"classname,attr"` Error []struct { Text string `xml:",chardata"` Type string `xml:"type,attr"` Message string `xml:"message,attr"` } `xml:"error"` Failure []struct { Text string `xml:",chardata"` Type string `xml:"type,attr"` Message string `xml:"message,attr"` } `xml:"failure"` Skipped []struct { Text string `xml:",chardata"` Message string `xml:"message,attr"` } `xml:"skipped"` } `xml:"testcase"` } `xml:"testsuite"` }
type AUnitRun ¶
type AUnitRun struct { XMLName xml.Name `xml:"run"` Title string `xml:"title,attr"` Context string `xml:"context,attr"` Progress Progress `xml:"progress"` ExecutedBy ExecutedBy `xml:"executedBy"` Time Time `xml:"time"` Link AUnitLink `xml:"link"` }
AUnitRun Object for parsing XML
type AUnitTransportSet ¶
type AUnitTransportSet struct {
Number string `json:"number,omitempty"`
}
AUnitTransportSet in form of transports to be checked
type AbapError ¶
type AbapError struct { Code string `json:"code"` Message AbapErrorMessage `json:"message"` }
AbapError contains the error code and the error message for ABAP errors
type AbapErrorMessage ¶
AbapErrorMessage contains the lanuage and value fields for ABAP errors
type ApplicationComponent ¶
type ApplicationComponent struct {
Name string `json:"name,omitempty"`
}
ApplicationComponent
type DeployMode ¶
type DeployMode int
DeployMode ...
const ( // NoDeploy ... NoDeploy DeployMode = iota //Deploy ... Deploy DeployMode = iota //BGDeploy ... BGDeploy DeployMode = iota )
func (DeployMode) GetDeployCommand ¶
func (m DeployMode) GetDeployCommand() (string, error)
GetDeployCommand ...
type Duration ¶
type Duration struct { Short *bool `json:"short,omitempty"` Medium *bool `json:"medium,omitempty"` Long *bool `json:"long,omitempty"` }
Duration in form of packages and software components to be checked
type File ¶
type File struct { Key string `xml:"name,attr"` Value string `xml:",chardata"` ATCErrors []ATCError `xml:"error"` }
File that contains ATC check with error for checked file
type GeneralConfigOptions ¶
type GeneralConfigOptions struct { GitHubAccessTokens map[string]string // map of tokens with url as key in order to maintain url-specific tokens CorrelationID string CustomConfig string GitHubTokens []string // list of entries in form of <server>:<token> to allow token authentication for downloading config / defaults DefaultConfig []string //ordered list of Piper default configurations. Can be filePath or ENV containing JSON in format 'ENV:MY_ENV_VAR' IgnoreCustomDefaults bool ParametersJSON string EnvRootPath string NoTelemetry bool StageName string StepConfigJSON string StepMetadata string //metadata to be considered, can be filePath or ENV containing JSON in format 'ENV:MY_ENV_VAR' StepName string Verbose bool LogFormat string VaultRoleID string VaultRoleSecretID string VaultToken string VaultServerURL string VaultNamespace string VaultPath string HookConfig HookConfiguration MetaDataResolver func() map[string]config.StepData GCPJsonKeyFilePath string GCSFolderPath string GCSBucketId string GCSSubFolder string }
GeneralConfigOptions contains all global configuration options for piper binary
var GeneralConfig GeneralConfigOptions
GeneralConfig contains global configuration flags for piper binary
type HadolintClient ¶
type HadolintClient interface { SetOptions(options piperhttp.ClientOptions) DownloadFile(url, filename string, header http.Header, cookies []*http.Cookie) error }
HadolintClient abstracts http.Client mock generated with: mockery --name hadolintClient --dir cmd --output pkg/hadolint/mocks
type HadolintPiperFileUtils ¶
type HadolintPiperFileUtils interface { FileExists(filename string) (bool, error) FileWrite(filename string, data []byte, perm os.FileMode) error }
HadolintPiperFileUtils abstracts piperutils.Files mock generated with: mockery --name HadolintPiperFileUtils --dir cmd --output pkg/hadolint/mocks
type HookConfiguration ¶
type HookConfiguration struct { SentryConfig SentryConfiguration `json:"sentry,omitempty"` SplunkConfig SplunkConfiguration `json:"splunk,omitempty"` }
HookConfiguration contains the configuration for supported hooks, so far Sentry and Splunk are supported.
type MTABuildTarget ¶
type MTABuildTarget int
MTABuildTarget ...
const ( // NEO ... NEO MTABuildTarget = iota // CF ... CF MTABuildTarget = iota //XSA ... XSA MTABuildTarget = iota )
func ValueOfBuildTarget ¶
func ValueOfBuildTarget(str string) (MTABuildTarget, error)
ValueOfBuildTarget ...
type MultiPropertySet ¶
type MultiPropertySet struct { Type string `json:"type,omitempty"` PackageNames []AUnitPackage `json:"packages,omitempty"` ObjectTypeGroups []ObjectTypeGroup `json:"objecttypegroups,omitempty"` ObjectTypes []ObjectType `json:"objecttypes,omitempty"` Owners []Owner `json:"owners,omitempty"` ReleaseStates []ReleaseState `json:"releasestates,omitempty"` Versions []Version `json:"versions,omitempty"` ApplicationComponents []ApplicationComponent `json:"applicationcomponents,omitempty"` SoftwareComponents []SoftwareComponents `json:"softwarecomponents,omitempty"` TransportLayers []TransportLayer `json:"transportlayers,omitempty"` Languages []Language `json:"languages,omitempty"` SourceSystems []SourceSystem `json:"sourcesystems,omitempty"` }
MultiPropertySet that can possibly contain any subsets/object of the OSL
type ObjectSet ¶
type ObjectSet struct { PackageNames []AUnitPackage `json:"packages,omitempty"` SoftwareComponents []SoftwareComponents `json:"softwarecomponents,omitempty"` Type string `json:"type,omitempty"` MultiPropertySet MultiPropertySet `json:"multipropertyset,omitempty"` Set []Set `json:"set,omitempty"` }
ObjectSet in form of packages and software components to be checked
type ObjectTypeGroup ¶
type ObjectTypeGroup struct {
Name string `json:"name,omitempty"`
}
ObjectTypeGroup
type Package ¶
type Package struct { Name string `json:"name"` IncludeSubpackages bool `json:"includesubpackage"` }
Package for ATC run to be checked
type Progress ¶
type Progress struct { Status string `xml:"status,attr"` Percentage string `xml:"percentage,attr"` }
Progress of AUnit run
type RiskLevel ¶
type RiskLevel struct { Harmless *bool `json:"harmless,omitempty"` Dangerous *bool `json:"dangerous,omitempty"` Critical *bool `json:"critical,omitempty"` }
RiskLevel in form of packages and software components to be checked
type Run ¶
type Run struct { XMLName xml.Name `xml:"run"` Status string `xml:"status,attr"` Link []Link `xml:"link"` }
Run Object for parsing XML
type ScanOptions ¶
type ScanOptions = whitesourceExecuteScanOptions
ScanOptions is just used to make the lines less long
type Scope ¶
type Scope struct { OwnTests *bool `json:"owntests,omitempty"` ForeignTests *bool `json:"foreigntests,omitempty"` }
Scope in form of packages and software components to be checked
type SentryConfiguration ¶
type SentryConfiguration struct {
Dsn string `json:"dsn,omitempty"`
}
SentryConfiguration defines the configuration options for the Sentry logging system
type Service ¶
type Service struct { Name string `json:"name"` Broker string `json:"broker"` Plan string `json:"plan"` Parameters string `json:"parameters,omitempty"` }
Service struct for creating a cloud foundry service
type Set ¶
type Set struct { Type string `json:"type,omitempty"` Set []Set `json:"set,omitempty"` PackageSet []AUnitPackageSet `json:"package,omitempty"` FlatObjectSet []AUnitFlatObjectSet `json:"object,omitempty"` ComponentSet []AUnitComponentSet `json:"component,omitempty"` TransportSet []AUnitTransportSet `json:"transport,omitempty"` ObjectTypeSet []AUnitObjectTypeSet `json:"objecttype,omitempty"` }
Set
type SoftwareComponent ¶
type SoftwareComponent struct {
Name string `json:"name"`
}
SoftwareComponent for ATC run to be checked
type SoftwareComponents ¶
type SoftwareComponents struct {
Name string `json:"name,omitempty"`
}
SoftwareComponents
type SplunkConfiguration ¶
type SplunkConfiguration struct { Dsn string `json:"dsn,omitempty"` Token string `json:"token,omitempty"` Index string `json:"index,omitempty"` SendLogs bool `json:"sendLogs"` }
SplunkConfiguration defines the configuration options for the Splunk logging system
type TransportLayer ¶
type TransportLayer struct {
Name string `json:"name,omitempty"`
}
TransportLayer
type UploadAction ¶
type UploadAction interface { Perform(command.ShellRunner) error WithConnection(cts.Connection) WithApplication(cts.Application) WithNodeProperties(cts.Node) WithTransportRequestID(string) WithConfigFile(string) WithDeployUser(string) }
UploadAction ...
Source Files ¶
- abapAddonAssemblyKitCheckCVs.go
- abapAddonAssemblyKitCheckCVs_generated.go
- abapAddonAssemblyKitCheckPV.go
- abapAddonAssemblyKitCheckPV_generated.go
- abapAddonAssemblyKitCreateTargetVector.go
- abapAddonAssemblyKitCreateTargetVector_generated.go
- abapAddonAssemblyKitPublishTargetVector.go
- abapAddonAssemblyKitPublishTargetVector_generated.go
- abapAddonAssemblyKitRegisterPackages.go
- abapAddonAssemblyKitRegisterPackages_generated.go
- abapAddonAssemblyKitReleasePackages.go
- abapAddonAssemblyKitReleasePackages_generated.go
- abapAddonAssemblyKitReserveNextPackages.go
- abapAddonAssemblyKitReserveNextPackages_generated.go
- abapEnvironmentAssembleConfirm.go
- abapEnvironmentAssembleConfirm_generated.go
- abapEnvironmentAssemblePackages.go
- abapEnvironmentAssemblePackages_generated.go
- abapEnvironmentBuild.go
- abapEnvironmentBuild_generated.go
- abapEnvironmentCheckoutBranch.go
- abapEnvironmentCheckoutBranch_generated.go
- abapEnvironmentCloneGitRepo.go
- abapEnvironmentCloneGitRepo_generated.go
- abapEnvironmentCreateSystem.go
- abapEnvironmentCreateSystem_generated.go
- abapEnvironmentPullGitRepo.go
- abapEnvironmentPullGitRepo_generated.go
- abapEnvironmentPushATCSystemConfig.go
- abapEnvironmentPushATCSystemConfig_generated.go
- abapEnvironmentRunATCCheck.go
- abapEnvironmentRunATCCheck_generated.go
- abapEnvironmentRunAUnitTest.go
- abapEnvironmentRunAUnitTest_generated.go
- apiKeyValueMapDownload.go
- apiKeyValueMapDownload_generated.go
- apiKeyValueMapUpload.go
- apiKeyValueMapUpload_generated.go
- apiProviderDownload.go
- apiProviderDownload_generated.go
- apiProxyDownload.go
- apiProxyDownload_generated.go
- apiProxyUpload.go
- apiProxyUpload_generated.go
- artifactPrepareVersion.go
- artifactPrepareVersion_generated.go
- batsExecuteTests.go
- batsExecuteTests_generated.go
- checkIfStepActive.go
- checkmarxExecuteScan.go
- checkmarxExecuteScan_generated.go
- cloudFoundryCreateService.go
- cloudFoundryCreateServiceKey.go
- cloudFoundryCreateServiceKey_generated.go
- cloudFoundryCreateService_generated.go
- cloudFoundryCreateSpace.go
- cloudFoundryCreateSpace_generated.go
- cloudFoundryDeleteService.go
- cloudFoundryDeleteService_generated.go
- cloudFoundryDeleteSpace.go
- cloudFoundryDeleteSpace_generated.go
- cloudFoundryDeploy.go
- cloudFoundryDeploy_generated.go
- cnbBuild.go
- cnbBuild_generated.go
- completions.go
- containerExecuteStructureTests.go
- containerExecuteStructureTests_generated.go
- containerSaveImage.go
- containerSaveImage_generated.go
- detectExecuteScan.go
- detectExecuteScan_generated.go
- fortifyExecuteScan.go
- fortifyExecuteScan_generated.go
- gaugeExecuteTests.go
- gaugeExecuteTests_generated.go
- gctsCloneRepository.go
- gctsCloneRepository_generated.go
- gctsCreateRepository.go
- gctsCreateRepository_generated.go
- gctsDeploy.go
- gctsDeploy_generated.go
- gctsExecuteABAPQualityChecks.go
- gctsExecuteABAPQualityChecks_generated.go
- gctsExecuteABAPUnitTests.go
- gctsExecuteABAPUnitTests_generated.go
- gctsRollback.go
- gctsRollback_generated.go
- getConfig.go
- getDefaults.go
- githubCheckBranchProtection.go
- githubCheckBranchProtection_generated.go
- githubCommentIssue.go
- githubCommentIssue_generated.go
- githubCreateIssue.go
- githubCreateIssue_generated.go
- githubCreatePullRequest.go
- githubCreatePullRequest_generated.go
- githubPublishRelease.go
- githubPublishRelease_generated.go
- githubSetCommitStatus.go
- githubSetCommitStatus_generated.go
- gitopsUpdateDeployment.go
- gitopsUpdateDeployment_generated.go
- golangBuild.go
- golangBuild_generated.go
- gradleExecuteBuild.go
- gradleExecuteBuild_generated.go
- hadolintExecute.go
- hadolintExecute_generated.go
- helmExecute.go
- helmExecute_generated.go
- influxWriteData.go
- influxWriteData_generated.go
- init_unix.go
- integrationArtifactDeploy.go
- integrationArtifactDeploy_generated.go
- integrationArtifactDownload.go
- integrationArtifactDownload_generated.go
- integrationArtifactGetMplStatus.go
- integrationArtifactGetMplStatus_generated.go
- integrationArtifactGetServiceEndpoint.go
- integrationArtifactGetServiceEndpoint_generated.go
- integrationArtifactResource.go
- integrationArtifactResource_generated.go
- integrationArtifactTriggerIntegrationTest.go
- integrationArtifactTriggerIntegrationTest_generated.go
- integrationArtifactUnDeploy.go
- integrationArtifactUnDeploy_generated.go
- integrationArtifactUpdateConfiguration.go
- integrationArtifactUpdateConfiguration_generated.go
- integrationArtifactUpload.go
- integrationArtifactUpload_generated.go
- isChangeInDevelopment.go
- isChangeInDevelopment_generated.go
- jsonApplyPatch.go
- jsonApplyPatch_generated.go
- kanikoExecute.go
- kanikoExecute_generated.go
- karmaExecuteTests.go
- karmaExecuteTests_generated.go
- kubernetesDeploy.go
- kubernetesDeploy_generated.go
- malwareExecuteScan.go
- malwareExecuteScan_generated.go
- mavenBuild.go
- mavenBuild_generated.go
- mavenExecute.go
- mavenExecuteIntegration.go
- mavenExecuteIntegration_generated.go
- mavenExecuteStaticCodeChecks.go
- mavenExecuteStaticCodeChecks_generated.go
- mavenExecute_generated.go
- metadata_generated.go
- mtaBuild.go
- mtaBuild_generated.go
- newmanExecute.go
- newmanExecute_generated.go
- nexusUpload.go
- nexusUpload_generated.go
- npmExecuteLint.go
- npmExecuteLint_generated.go
- npmExecuteScripts.go
- npmExecuteScripts_generated.go
- pipelineCreateScanSummary.go
- pipelineCreateScanSummary_generated.go
- piper.go
- protecodeExecuteScan.go
- protecodeExecuteScan_generated.go
- readPipelineEnv.go
- shellExecute.go
- shellExecute_generated.go
- sonarExecuteScan.go
- sonarExecuteScan_generated.go
- terraformExecute.go
- terraformExecute_generated.go
- transportRequestDocIDFromGit.go
- transportRequestDocIDFromGit_generated.go
- transportRequestReqIDFromGit.go
- transportRequestReqIDFromGit_generated.go
- transportRequestUploadCTS.go
- transportRequestUploadCTS_generated.go
- transportRequestUploadRFC.go
- transportRequestUploadRFC_generated.go
- transportRequestUploadSOLMAN.go
- transportRequestUploadSOLMAN_generated.go
- uiVeri5ExecuteTests.go
- uiVeri5ExecuteTests_generated.go
- vaultRotateSecretId.go
- vaultRotateSecretId_generated.go
- version.go
- whitesourceExecuteScan.go
- whitesourceExecuteScan_generated.go
- writePipelineEnv.go
- xsDeploy.go
- xsDeploy_generated.go