Documentation ¶
Index ¶
- Variables
- func AbapEnvironmentAssemblePackagesCommand() *cobra.Command
- func AbapEnvironmentCheckoutBranchCommand() *cobra.Command
- func AbapEnvironmentCloneGitRepoCommand() *cobra.Command
- func AbapEnvironmentPullGitRepoCommand() *cobra.Command
- func AbapEnvironmentRunATCCheckCommand() *cobra.Command
- func ArtifactPrepareVersionCommand() *cobra.Command
- func CheckmarxExecuteScanCommand() *cobra.Command
- func CloudFoundryCreateServiceCommand() *cobra.Command
- func CloudFoundryCreateServiceKeyCommand() *cobra.Command
- func CloudFoundryDeleteServiceCommand() *cobra.Command
- func CloudFoundryDeployCommand() *cobra.Command
- func ConfigCommand() *cobra.Command
- func ContainerSaveImageCommand() *cobra.Command
- func DetectExecuteScanCommand() *cobra.Command
- func Execute()
- func FortifyExecuteScanCommand() *cobra.Command
- func GctsCloneRepositoryCommand() *cobra.Command
- func GctsCreateRepositoryCommand() *cobra.Command
- func GctsDeployCommand() *cobra.Command
- func GctsExecuteABAPUnitTestsCommand() *cobra.Command
- func GctsRollbackCommand() *cobra.Command
- func GithubCreatePullRequestCommand() *cobra.Command
- func GithubPublishReleaseCommand() *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 NexusUploadCommand() *cobra.Command
- func NpmExecuteLintCommand() *cobra.Command
- func NpmExecuteScriptsCommand() *cobra.Command
- func PrepareConfig(cmd *cobra.Command, metadata *config.StepData, stepName string, ...) error
- func ProtecodeExecuteScanCommand() *cobra.Command
- func SonarExecuteScanCommand() *cobra.Command
- func VersionCommand() *cobra.Command
- func WhitesourceExecuteScanCommand() *cobra.Command
- func XsDeployCommand() *cobra.Command
- type ATCError
- type ATCObjects
- type ATCconfig
- type Action
- type DeployMode
- type File
- type GeneralConfigOptions
- type HookConfiguration
- type Link
- type MTABuildTarget
- type Package
- type Result
- type Run
- type ScanOptions
- type SentryConfiguration
- type SoftwareComponent
- type System
Constants ¶
This section is empty.
Variables ¶
var GitCommit string
GitCommit ...
var GitTag string
GitTag ...
Functions ¶
func AbapEnvironmentAssemblePackagesCommand ¶ added in v1.77.0
AbapEnvironmentAssemblePackagesCommand Assembly of installation, support package or patch in SAP Cloud Platform ABAP Environment system
func AbapEnvironmentCheckoutBranchCommand ¶ added in v1.65.0
AbapEnvironmentCheckoutBranchCommand Switches between branches of a git repository on a SAP Cloud Platform ABAP Environment system
func AbapEnvironmentCloneGitRepoCommand ¶ added in v1.74.0
AbapEnvironmentCloneGitRepoCommand Clones a git repository to a SAP Cloud Platform ABAP Environment system
func AbapEnvironmentPullGitRepoCommand ¶ added in v1.12.0
AbapEnvironmentPullGitRepoCommand Pulls a git repository to a SAP Cloud Platform ABAP Environment system
func AbapEnvironmentRunATCCheckCommand ¶ added in v1.33.0
AbapEnvironmentRunATCCheckCommand Runs an ATC Check
func ArtifactPrepareVersionCommand ¶ added in v1.20.0
ArtifactPrepareVersionCommand Prepares and potentially updates the artifact's version before building the artifact.
func CheckmarxExecuteScanCommand ¶ added in v1.11.0
CheckmarxExecuteScanCommand Checkmarx is the recommended tool for security scans of JavaScript, iOS, Swift and Ruby code.
func CloudFoundryCreateServiceCommand ¶ added in v1.74.0
CloudFoundryCreateServiceCommand Creates one or multiple Services in Cloud Foundry
func CloudFoundryCreateServiceKeyCommand ¶ added in v1.20.0
CloudFoundryCreateServiceKeyCommand cloudFoundryCreateServiceKey
func CloudFoundryDeleteServiceCommand ¶ added in v1.13.0
CloudFoundryDeleteServiceCommand DeleteCloudFoundryService
func CloudFoundryDeployCommand ¶ added in v1.64.0
CloudFoundryDeployCommand Deploys an application to Cloud Foundry
func ConfigCommand ¶
ConfigCommand is the entry command for loading the configuration of a pipeline step
func ContainerSaveImageCommand ¶ added in v1.34.0
ContainerSaveImageCommand Saves a container image as a tar file
func DetectExecuteScanCommand ¶ added in v1.4.0
DetectExecuteScanCommand Executes Synopsys Detect scan
func FortifyExecuteScanCommand ¶ added in v1.38.0
FortifyExecuteScanCommand This BETA step executes a Fortify scan on the specified project to perform static code analysis and check the source code for security flaws.
func GctsCloneRepositoryCommand ¶ added in v1.46.0
GctsCloneRepositoryCommand Clones a Git repository
func GctsCreateRepositoryCommand ¶ added in v1.24.0
GctsCreateRepositoryCommand Creates a Git repository on an ABAP system
func GctsDeployCommand ¶ added in v1.35.0
GctsDeployCommand Pulls a commit from the remote Git repository to a local repository
func GctsExecuteABAPUnitTestsCommand ¶ added in v1.56.0
GctsExecuteABAPUnitTestsCommand Runs ABAP unit tests for all packages of the specified repository
func GctsRollbackCommand ¶ added in v1.60.0
GctsRollbackCommand Perfoms roll back of one (default) or several commit(s)
func GithubCreatePullRequestCommand ¶ added in v1.5.0
GithubCreatePullRequestCommand Create a pull request on GitHub
func GithubPublishReleaseCommand ¶
GithubPublishReleaseCommand Publish a release in GitHub
func JsonApplyPatchCommand ¶ added in v1.46.0
JsonApplyPatchCommand Patches a json with a patch file
func KanikoExecuteCommand ¶ added in v1.55.0
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 ¶ added in v1.10.0
KubernetesDeployCommand Deployment to Kubernetes test or production namespace within the specified Kubernetes cluster.
func MalwareExecuteScanCommand ¶ added in v1.24.0
MalwareExecuteScanCommand Performs a malware scan
func MavenBuildCommand ¶ added in v1.17.0
MavenBuildCommand This step will install the maven project into the local maven repository.
func MavenExecuteCommand ¶ added in v1.15.0
MavenExecuteCommand This step allows to run maven commands
func MavenExecuteIntegrationCommand ¶ added in v1.62.0
MavenExecuteIntegrationCommand This step will execute backend integration tests via the Jacoco Maven-plugin.
func MavenExecuteStaticCodeChecksCommand ¶ added in v1.17.0
MavenExecuteStaticCodeChecksCommand Execute static code checks for Maven based projects. The plugins SpotBugs and PMD are used.
func MtaBuildCommand ¶ added in v1.15.0
MtaBuildCommand Performs an mta build
func NexusUploadCommand ¶ added in v1.18.0
NexusUploadCommand Upload artifacts to Nexus Repository Manager
func NpmExecuteLintCommand ¶ added in v1.47.0
NpmExecuteLintCommand Execute ci-lint script on all npm packages in a project or execute default linting
func NpmExecuteScriptsCommand ¶ added in v1.24.0
NpmExecuteScriptsCommand Execute npm run scripts on all npm packages in a project
func PrepareConfig ¶
func PrepareConfig(cmd *cobra.Command, metadata *config.StepData, stepName string, options interface{}, openFile func(s string) (io.ReadCloser, error)) error
PrepareConfig reads step configuration from various sources and merges it (defaults, config file, flags, ...)
func ProtecodeExecuteScanCommand ¶ added in v1.12.0
ProtecodeExecuteScanCommand 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 SonarExecuteScanCommand ¶ added in v1.19.0
SonarExecuteScanCommand Executes the Sonar scanner
func VersionCommand ¶
VersionCommand Returns the version of the piper binary
func WhitesourceExecuteScanCommand ¶ added in v1.51.0
WhitesourceExecuteScanCommand BETA
func XsDeployCommand ¶ added in v1.3.0
XsDeployCommand Performs xs deployment
Types ¶
type ATCObjects ¶ added in v1.33.0
type ATCObjects struct { Package []Package `json:"package"` SoftwareComponent []SoftwareComponent `json:"softwarecomponent"` }
ATCObjects in form of packages and software components to be checked
type ATCconfig ¶ added in v1.33.0
type ATCconfig struct { CheckVariant string `json:"checkvariant,omitempty"` Configuration string `json:"configuration,omitempty"` Objects ATCObjects `json:"atcobjects"` }
ATCconfig object for parsing yaml config of software components and packages
type Action ¶ added in v1.3.0
type Action int
Action ...
func ValueOfAction ¶ added in v1.3.0
ValueOfAction ...
type DeployMode ¶ added in v1.3.0
type DeployMode int
DeployMode ...
const ( // NoDeploy ... NoDeploy DeployMode = iota //Deploy ... Deploy DeployMode = iota //BGDeploy ... BGDeploy DeployMode = iota )
func (DeployMode) GetDeployCommand ¶ added in v1.3.0
func (m DeployMode) GetDeployCommand() (string, error)
GetDeployCommand ...
type File ¶ added in v1.33.0
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 { CorrelationID string CustomConfig string 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 HookConfig HookConfiguration }
GeneralConfigOptions contains all global configuration options for piper binary
var GeneralConfig GeneralConfigOptions
GeneralConfig contains global configuration flags for piper binary
type HookConfiguration ¶ added in v1.28.0
type HookConfiguration struct {
SentryConfig SentryConfiguration `json:"sentry,omitempty"`
}
HookConfiguration contains the configuration for supported hooks, so far only Sentry is supported.
type MTABuildTarget ¶ added in v1.15.0
type MTABuildTarget int
MTABuildTarget ...
const ( // NEO ... NEO MTABuildTarget = iota // CF ... CF MTABuildTarget = iota //XSA ... XSA MTABuildTarget = iota )
func ValueOfBuildTarget ¶ added in v1.15.0
func ValueOfBuildTarget(str string) (MTABuildTarget, error)
ValueOfBuildTarget ...
type Package ¶ added in v1.33.0
type Package struct { Name string `json:"name"` IncludeSubpackages bool `json:"includesubpackage"` }
Package for ATC run to be checked
type Run ¶ added in v1.33.0
type Run struct { XMLName xml.Name `xml:"run"` Status string `xml:"status,attr"` Link []Link `xml:"link"` }
Run Object for parsing XML
type ScanOptions ¶ added in v1.51.0
type ScanOptions = whitesourceExecuteScanOptions
just to make the lines less long
type SentryConfiguration ¶ added in v1.28.0
type SentryConfiguration struct {
Dsn string `json:"dsn,omitempty"`
}
SentryConfiguration defines the configuration options for the Sentry logging system
type SoftwareComponent ¶ added in v1.33.0
type SoftwareComponent struct {
Name string `json:"name"`
}
SoftwareComponent for ATC run to be checked
type System ¶ added in v1.51.0
type System = whitesource.System
Source Files ¶
- abapEnvironmentAssemblePackages.go
- abapEnvironmentAssemblePackages_generated.go
- abapEnvironmentCheckoutBranch.go
- abapEnvironmentCheckoutBranch_generated.go
- abapEnvironmentCloneGitRepo.go
- abapEnvironmentCloneGitRepo_generated.go
- abapEnvironmentPullGitRepo.go
- abapEnvironmentPullGitRepo_generated.go
- abapEnvironmentRunATCCheck.go
- abapEnvironmentRunATCCheck_generated.go
- artifactPrepareVersion.go
- artifactPrepareVersion_generated.go
- checkmarxExecuteScan.go
- checkmarxExecuteScan_generated.go
- cloudFoundryCreateService.go
- cloudFoundryCreateServiceKey.go
- cloudFoundryCreateServiceKey_generated.go
- cloudFoundryCreateService_generated.go
- cloudFoundryDeleteService.go
- cloudFoundryDeleteService_generated.go
- cloudFoundryDeploy.go
- cloudFoundryDeploy_generated.go
- containerSaveImage.go
- containerSaveImage_generated.go
- detectExecuteScan.go
- detectExecuteScan_generated.go
- fortifyExecuteScan.go
- fortifyExecuteScan_generated.go
- gctsCloneRepository.go
- gctsCloneRepository_generated.go
- gctsCreateRepository.go
- gctsCreateRepository_generated.go
- gctsDeploy.go
- gctsDeploy_generated.go
- gctsExecuteABAPUnitTests.go
- gctsExecuteABAPUnitTests_generated.go
- gctsRollback.go
- gctsRollback_generated.go
- getConfig.go
- githubCreatePullRequest.go
- githubCreatePullRequest_generated.go
- githubPublishRelease.go
- githubPublishRelease_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
- mtaBuild.go
- mtaBuild_generated.go
- nexusUpload.go
- nexusUpload_generated.go
- npmExecuteLint.go
- npmExecuteLint_generated.go
- npmExecuteScripts.go
- npmExecuteScripts_generated.go
- piper.go
- protecodeExecuteScan.go
- protecodeExecuteScan_generated.go
- sonarExecuteScan.go
- sonarExecuteScan_generated.go
- version.go
- whitesourceExecuteScan.go
- whitesourceExecuteScan_generated.go
- xsDeploy.go
- xsDeploy_generated.go