cmd

package
v1.58.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 63 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GitCommit string

GitCommit ...

View Source
var GitTag string

GitTag ...

Functions

func AbapEnvironmentPullGitRepoCommand added in v1.12.0

func AbapEnvironmentPullGitRepoCommand() *cobra.Command

AbapEnvironmentPullGitRepoCommand Pulls a git repository to a SAP Cloud Platform ABAP Environment system

func AbapEnvironmentRunATCCheckCommand added in v1.33.0

func AbapEnvironmentRunATCCheckCommand() *cobra.Command

AbapEnvironmentRunATCCheckCommand Runs an ATC Check

func ArtifactPrepareVersionCommand added in v1.20.0

func ArtifactPrepareVersionCommand() *cobra.Command

ArtifactPrepareVersionCommand Prepares and potentially updates the artifact's version before building the artifact.

func CheckmarxExecuteScanCommand added in v1.11.0

func CheckmarxExecuteScanCommand() *cobra.Command

CheckmarxExecuteScanCommand Checkmarx is the recommended tool for security scans of JavaScript, iOS, Swift and Ruby code.

func CloudFoundryCreateServiceKeyCommand added in v1.20.0

func CloudFoundryCreateServiceKeyCommand() *cobra.Command

CloudFoundryCreateServiceKeyCommand cloudFoundryCreateServiceKey

func CloudFoundryDeleteServiceCommand added in v1.13.0

func CloudFoundryDeleteServiceCommand() *cobra.Command

CloudFoundryDeleteServiceCommand DeleteCloudFoundryService

func ConfigCommand

func ConfigCommand() *cobra.Command

ConfigCommand is the entry command for loading the configuration of a pipeline step

func ContainerSaveImageCommand added in v1.34.0

func ContainerSaveImageCommand() *cobra.Command

ContainerSaveImageCommand Saves a container image as a tar file

func DetectExecuteScanCommand added in v1.4.0

func DetectExecuteScanCommand() *cobra.Command

DetectExecuteScanCommand Executes Synopsis Detect scan

func Execute

func Execute()

Execute is the starting point of the piper command line tool

func FortifyExecuteScanCommand added in v1.38.0

func FortifyExecuteScanCommand() *cobra.Command

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

func GctsCloneRepositoryCommand() *cobra.Command

GctsCloneRepositoryCommand Clones a Git repository

func GctsCreateRepositoryCommand added in v1.24.0

func GctsCreateRepositoryCommand() *cobra.Command

GctsCreateRepositoryCommand Creates a Git repository on an ABAP system

func GctsDeployCommand added in v1.35.0

func GctsDeployCommand() *cobra.Command

GctsDeployCommand Pulls a commit from the remote Git repository to a local repository

func GctsExecuteABAPUnitTestsCommand added in v1.56.0

func GctsExecuteABAPUnitTestsCommand() *cobra.Command

GctsExecuteABAPUnitTestsCommand Runs ABAP unit tests for all packages of the specified repository

func GithubCreatePullRequestCommand added in v1.5.0

func GithubCreatePullRequestCommand() *cobra.Command

GithubCreatePullRequestCommand Create a pull request on GitHub

func GithubPublishReleaseCommand

func GithubPublishReleaseCommand() *cobra.Command

GithubPublishReleaseCommand Publish a release in GitHub

func JsonApplyPatchCommand added in v1.46.0

func JsonApplyPatchCommand() *cobra.Command

JsonApplyPatchCommand Patches a json with a patch file

func KanikoExecuteCommand added in v1.55.0

func KanikoExecuteCommand() *cobra.Command

KanikoExecuteCommand Executes a [Kaniko](https://github.com/GoogleContainerTools/kaniko) build for creating a Docker container.

func KarmaExecuteTestsCommand

func KarmaExecuteTestsCommand() *cobra.Command

KarmaExecuteTestsCommand Executes the Karma test runner

func KubernetesDeployCommand added in v1.10.0

func KubernetesDeployCommand() *cobra.Command

KubernetesDeployCommand Deployment to Kubernetes test or production namespace within the specified Kubernetes cluster.

func MalwareExecuteScanCommand added in v1.24.0

func MalwareExecuteScanCommand() *cobra.Command

MalwareExecuteScanCommand Performs a malware scan

func MavenBuildCommand added in v1.17.0

func MavenBuildCommand() *cobra.Command

MavenBuildCommand This step will install the maven project into the local maven repository.

func MavenExecuteCommand added in v1.15.0

func MavenExecuteCommand() *cobra.Command

MavenExecuteCommand This step allows to run maven commands

func MavenExecuteStaticCodeChecksCommand added in v1.17.0

func MavenExecuteStaticCodeChecksCommand() *cobra.Command

MavenExecuteStaticCodeChecksCommand Execute static code checks for Maven based projects. The plugins SpotBugs and PMD are used.

func MtaBuildCommand added in v1.15.0

func MtaBuildCommand() *cobra.Command

MtaBuildCommand Performs an mta build

func NexusUploadCommand added in v1.18.0

func NexusUploadCommand() *cobra.Command

NexusUploadCommand Upload artifacts to Nexus Repository Manager

func NpmExecuteLintCommand added in v1.47.0

func NpmExecuteLintCommand() *cobra.Command

NpmExecuteLintCommand Execute ci-lint script on all npm packages in a project or execute default linting

func NpmExecuteScriptsCommand added in v1.24.0

func NpmExecuteScriptsCommand() *cobra.Command

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

func ProtecodeExecuteScanCommand() *cobra.Command

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

func SonarExecuteScanCommand() *cobra.Command

SonarExecuteScanCommand Executes the Sonar scanner

func VersionCommand

func VersionCommand() *cobra.Command

VersionCommand Returns the version of the piper binary

func WhitesourceExecuteScanCommand added in v1.51.0

func WhitesourceExecuteScanCommand() *cobra.Command

WhitesourceExecuteScanCommand BETA

func XsDeployCommand added in v1.3.0

func XsDeployCommand() *cobra.Command

XsDeployCommand Performs xs deployment

Types

type ATCError added in v1.33.0

type ATCError struct {
	Key   string `xml:"message,attr"`
	Value string `xml:",chardata"`
}

ATCError with message

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 {
	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 ...

const (
	//None ...
	None Action = iota
	//Resume ...
	Resume Action = iota
	//Abort ...
	Abort Action = iota
	//Retry ...
	Retry Action = iota
)

func ValueOfAction added in v1.3.0

func ValueOfAction(str string) (Action, error)

ValueOfAction ...

func (Action) GetAction added in v1.3.0

func (a Action) GetAction() (string, error)

GetAction ...

func (Action) String added in v1.3.0

func (a Action) String() string

String ...

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 ValueOfMode added in v1.3.0

func ValueOfMode(str string) (DeployMode, error)

ValueOfMode ...

func (DeployMode) GetDeployCommand added in v1.3.0

func (m DeployMode) GetDeployCommand() (string, error)

GetDeployCommand ...

func (DeployMode) String added in v1.3.0

func (m DeployMode) String() string

String ...

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 Link struct {
	Key   string `xml:"href,attr"`
	Value string `xml:",chardata"`
}

Link of XML object

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 ...

func (MTABuildTarget) String added in v1.15.0

func (m MTABuildTarget) String() string

String ...

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 Result added in v1.33.0

type Result struct {
	XMLName xml.Name `xml:"checkstyle"`
	Files   []File   `xml:"file"`
}

Result from ATC check for all files that were 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL