cmd

package
v1.11.1-0...-d84bc69 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GitCommit string

GitCommit ...

View Source
var GitTag string

GitTag ...

Functions

func AbapEnvironmentPullGitRepoCommand

func AbapEnvironmentPullGitRepoCommand() *cobra.Command

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

func CheckmarxExecuteScanCommand

func CheckmarxExecuteScanCommand() *cobra.Command

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

func ConfigCommand

func ConfigCommand() *cobra.Command

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

func DetectExecuteScanCommand

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 GithubCreatePullRequestCommand

func GithubCreatePullRequestCommand() *cobra.Command

GithubCreatePullRequestCommand Create a pull request on GitHub

func GithubPublishReleaseCommand

func GithubPublishReleaseCommand() *cobra.Command

GithubPublishReleaseCommand Publish a release in GitHub

func KarmaExecuteTestsCommand

func KarmaExecuteTestsCommand() *cobra.Command

KarmaExecuteTestsCommand Executes the Karma test runner

func KubernetesDeployCommand

func KubernetesDeployCommand() *cobra.Command

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

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

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. You can find more details on its capabilities in the [OS3 - Open Source Software Security JAM](https://jam4.sapjam.com/groups/XgeUs0CXItfeWyuI4k7lM3/overview_page/aoAsA0k4TbezGFyOkhsXFs). For getting access to Protecode please visit the [guide](https://go.sap.corp/protecode).

func RunVersion

func RunVersion()

RunVersion just testing

func VersionCommand

func VersionCommand() *cobra.Command

VersionCommand Returns the version of the piper binary

func XsDeployCommand

func XsDeployCommand() *cobra.Command

XsDeployCommand Performs xs deployment

Types

type Action

type Action int

Action ...

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

func ValueOfAction

func ValueOfAction(str string) (Action, error)

ValueOfAction ...

func (Action) GetAction

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

GetAction ...

func (Action) String

func (a Action) String() string

String ...

type DeployMode

type DeployMode int

DeployMode ...

const (
	// NoDeploy ...
	NoDeploy DeployMode = iota
	//Deploy ...
	Deploy DeployMode = iota
	//BGDeploy ...
	BGDeploy DeployMode = iota
)

func ValueOfMode

func ValueOfMode(str string) (DeployMode, error)

ValueOfMode ...

func (DeployMode) GetDeployCommand

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

GetDeployCommand ...

func (DeployMode) String

func (m DeployMode) String() string

String ...

type GeneralConfigOptions

type GeneralConfigOptions struct {
	CustomConfig   string
	DefaultConfig  []string //ordered list of Piper default configurations. Can be filePath or ENV containing JSON in format 'ENV:MY_ENV_VAR'
	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
}

GeneralConfigOptions contains all global configuration options for piper binary

var GeneralConfig GeneralConfigOptions

GeneralConfig contains global configuration flags for piper binary

Jump to

Keyboard shortcuts

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