Documentation ¶
Index ¶
- Variables
- func ConfigCommand() *cobra.Command
- func DetectExecuteScanCommand() *cobra.Command
- func Execute()
- func GithubCreatePullRequestCommand() *cobra.Command
- func GithubPublishReleaseCommand() *cobra.Command
- func KarmaExecuteTestsCommand() *cobra.Command
- func PrepareConfig(cmd *cobra.Command, metadata *config.StepData, stepName string, ...) error
- func VersionCommand() *cobra.Command
- func XsDeployCommand() *cobra.Command
- type Action
- type DeployMode
- type GeneralConfigOptions
Constants ¶
This section is empty.
Variables ¶
var GitCommit string
GitCommit ...
var GitTag string
GitTag ...
Functions ¶
func ConfigCommand ¶
ConfigCommand is the entry command for loading the configuration of a pipeline step
func DetectExecuteScanCommand ¶ added in v1.4.0
DetectExecuteScanCommand Executes Synopsis Detect scan
func GithubCreatePullRequestCommand ¶ added in v1.5.0
GithubCreatePullRequestCommand Create a pull request on GitHub
func GithubPublishReleaseCommand ¶
GithubPublishReleaseCommand Publish a release in GitHub
func KarmaExecuteTestsCommand ¶
KarmaExecuteTestsCommand Executes the Karma test runner
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 VersionCommand ¶
VersionCommand Returns the version of the piper binary
func XsDeployCommand ¶ added in v1.3.0
XsDeployCommand Performs xs deployment
Types ¶
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 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 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
Source Files ¶
- detectExecuteScan.go
- detectExecuteScan_generated.go
- getConfig.go
- githubCreatePullRequest.go
- githubCreatePullRequest_generated.go
- githubPublishRelease.go
- githubPublishRelease_generated.go
- interfaces.go
- karmaExecuteTests.go
- karmaExecuteTests_generated.go
- piper.go
- version.go
- version_generated.go
- xsDeploy.go
- xsDeploy_generated.go