Documentation ¶
Index ¶
- Constants
- type BuildAddDependenciesCommand
- func (badc *BuildAddDependenciesCommand) CommandName() string
- func (badc *BuildAddDependenciesCommand) Result() *commandsutils.Result
- func (badc *BuildAddDependenciesCommand) Run() error
- func (badc *BuildAddDependenciesCommand) ServerDetails() (*config.ServerDetails, error)
- func (badc *BuildAddDependenciesCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildAddDependenciesCommand
- func (badc *BuildAddDependenciesCommand) SetDependenciesSpec(dependenciesSpec *spec.SpecFiles) *BuildAddDependenciesCommand
- func (badc *BuildAddDependenciesCommand) SetDryRun(dryRun bool) *BuildAddDependenciesCommand
- func (badc *BuildAddDependenciesCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildAddDependenciesCommand
- type BuildAddGitCommand
- func (config *BuildAddGitCommand) CommandName() string
- func (config *BuildAddGitCommand) DoCollect(issuesConfig *IssuesConfiguration, lastVcsRevision string) (foundIssues []buildinfo.AffectedIssue, err error)
- func (config *BuildAddGitCommand) Run() error
- func (config *BuildAddGitCommand) ServerDetails() (*utilsconfig.ServerDetails, error)
- func (config *BuildAddGitCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildAddGitCommand
- func (config *BuildAddGitCommand) SetConfigFilePath(configFilePath string) *BuildAddGitCommand
- func (config *BuildAddGitCommand) SetDotGitPath(dotGitPath string) *BuildAddGitCommand
- func (config *BuildAddGitCommand) SetIssuesConfig(issuesConfig *IssuesConfiguration) *BuildAddGitCommand
- func (config *BuildAddGitCommand) SetServerId(serverId string) *BuildAddGitCommand
- type BuildAppendCommand
- func (bac *BuildAppendCommand) CommandName() string
- func (bac *BuildAppendCommand) Run() error
- func (bac *BuildAppendCommand) ServerDetails() (*config.ServerDetails, error)
- func (bac *BuildAppendCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildAppendCommand
- func (bac *BuildAppendCommand) SetBuildNameToAppend(buildName string) *BuildAppendCommand
- func (bac *BuildAppendCommand) SetBuildNumberToAppend(buildNumber string) *BuildAppendCommand
- func (bac *BuildAppendCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildAppendCommand
- type BuildCleanCommand
- type BuildCollectEnvCommand
- func (bcec *BuildCollectEnvCommand) CommandName() string
- func (bcec *BuildCollectEnvCommand) Run() error
- func (bcec *BuildCollectEnvCommand) ServerDetails() (*config.ServerDetails, error)
- func (bcec *BuildCollectEnvCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildCollectEnvCommand
- type BuildDiscardCommand
- func (buildDiscard *BuildDiscardCommand) CommandName() string
- func (buildDiscard *BuildDiscardCommand) Run() error
- func (buildDiscard *BuildDiscardCommand) ServerDetails() (*config.ServerDetails, error)
- func (buildDiscard *BuildDiscardCommand) SetDiscardBuildsParams(params services.DiscardBuildsParams) *BuildDiscardCommand
- func (buildDiscard *BuildDiscardCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildDiscardCommand
- type BuildDistributeCommnad
- func (bdc *BuildDistributeCommnad) CommandName() string
- func (bdc *BuildDistributeCommnad) Run() error
- func (bdc *BuildDistributeCommnad) ServerDetails() (*config.ServerDetails, error)
- func (bdc *BuildDistributeCommnad) SetBuildDistributionParams(buildDistributeParams services.BuildDistributionParams) *BuildDistributeCommnad
- func (bdc *BuildDistributeCommnad) SetDryRun(dryRun bool) *BuildDistributeCommnad
- func (bdc *BuildDistributeCommnad) SetServerDetails(serverDetails *config.ServerDetails) *BuildDistributeCommnad
- type BuildPromotionCommand
- func (bpc *BuildPromotionCommand) CommandName() string
- func (bpc *BuildPromotionCommand) Run() error
- func (bpc *BuildPromotionCommand) ServerDetails() (*config.ServerDetails, error)
- func (bpc *BuildPromotionCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildPromotionCommand
- func (bpc *BuildPromotionCommand) SetDryRun(dryRun bool) *BuildPromotionCommand
- func (bpc *BuildPromotionCommand) SetPromotionParams(params services.PromotionParams) *BuildPromotionCommand
- func (bpc *BuildPromotionCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildPromotionCommand
- type BuildPublishCommand
- func (bpc *BuildPublishCommand) CommandName() string
- func (bpc *BuildPublishCommand) GetSummary() *clientutils.Sha256Summary
- func (bpc *BuildPublishCommand) IsDetailedSummary() bool
- func (bpc *BuildPublishCommand) Run() error
- func (bpc *BuildPublishCommand) ServerDetails() (*config.ServerDetails, error)
- func (bpc *BuildPublishCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildPublishCommand
- func (bpc *BuildPublishCommand) SetConfig(config *biconf.Configuration) *BuildPublishCommand
- func (bpc *BuildPublishCommand) SetDetailedSummary(detailedSummary bool) *BuildPublishCommand
- func (bpc *BuildPublishCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildPublishCommand
- func (bpc *BuildPublishCommand) SetSummary(summary *clientutils.Sha256Summary) *BuildPublishCommand
- type BuildScanLegacyCommand
- func (bsc *BuildScanLegacyCommand) CommandName() string
- func (bsc *BuildScanLegacyCommand) Run() error
- func (bsc *BuildScanLegacyCommand) ServerDetails() (*config.ServerDetails, error)
- func (bsc *BuildScanLegacyCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildScanLegacyCommand
- func (bsc *BuildScanLegacyCommand) SetFailBuild(failBuild bool) *BuildScanLegacyCommand
- func (bsc *BuildScanLegacyCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildScanLegacyCommand
- type IssuesConfiguration
- type LogCmd
- type RevisionRangeError
Constants ¶
View Source
const ( GitLogLimit = 100 ConfigIssuesPrefix = "issues." ConfigParseValueError = "Failed parsing %s from configuration file: %s" MissingConfigurationError = "Configuration file must contain: %s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildAddDependenciesCommand ¶
type BuildAddDependenciesCommand struct {
// contains filtered or unexported fields
}
func NewBuildAddDependenciesCommand ¶
func NewBuildAddDependenciesCommand() *BuildAddDependenciesCommand
func (*BuildAddDependenciesCommand) CommandName ¶
func (badc *BuildAddDependenciesCommand) CommandName() string
func (*BuildAddDependenciesCommand) Result ¶
func (badc *BuildAddDependenciesCommand) Result() *commandsutils.Result
func (*BuildAddDependenciesCommand) Run ¶
func (badc *BuildAddDependenciesCommand) Run() error
func (*BuildAddDependenciesCommand) ServerDetails ¶
func (badc *BuildAddDependenciesCommand) ServerDetails() (*config.ServerDetails, error)
func (*BuildAddDependenciesCommand) SetBuildConfiguration ¶
func (badc *BuildAddDependenciesCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildAddDependenciesCommand
func (*BuildAddDependenciesCommand) SetDependenciesSpec ¶
func (badc *BuildAddDependenciesCommand) SetDependenciesSpec(dependenciesSpec *spec.SpecFiles) *BuildAddDependenciesCommand
func (*BuildAddDependenciesCommand) SetDryRun ¶
func (badc *BuildAddDependenciesCommand) SetDryRun(dryRun bool) *BuildAddDependenciesCommand
func (*BuildAddDependenciesCommand) SetServerDetails ¶
func (badc *BuildAddDependenciesCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildAddDependenciesCommand
type BuildAddGitCommand ¶
type BuildAddGitCommand struct {
// contains filtered or unexported fields
}
func NewBuildAddGitCommand ¶
func NewBuildAddGitCommand() *BuildAddGitCommand
func (*BuildAddGitCommand) CommandName ¶
func (config *BuildAddGitCommand) CommandName() string
func (*BuildAddGitCommand) DoCollect ¶
func (config *BuildAddGitCommand) DoCollect(issuesConfig *IssuesConfiguration, lastVcsRevision string) (foundIssues []buildinfo.AffectedIssue, err error)
func (*BuildAddGitCommand) Run ¶
func (config *BuildAddGitCommand) Run() error
func (*BuildAddGitCommand) ServerDetails ¶
func (config *BuildAddGitCommand) ServerDetails() (*utilsconfig.ServerDetails, error)
Priorities for selecting server: 1. 'server-id' flag. 2. 'serverID' in config file. 3. Default server.
func (*BuildAddGitCommand) SetBuildConfiguration ¶
func (config *BuildAddGitCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildAddGitCommand
func (*BuildAddGitCommand) SetConfigFilePath ¶
func (config *BuildAddGitCommand) SetConfigFilePath(configFilePath string) *BuildAddGitCommand
func (*BuildAddGitCommand) SetDotGitPath ¶
func (config *BuildAddGitCommand) SetDotGitPath(dotGitPath string) *BuildAddGitCommand
func (*BuildAddGitCommand) SetIssuesConfig ¶
func (config *BuildAddGitCommand) SetIssuesConfig(issuesConfig *IssuesConfiguration) *BuildAddGitCommand
func (*BuildAddGitCommand) SetServerId ¶
func (config *BuildAddGitCommand) SetServerId(serverId string) *BuildAddGitCommand
type BuildAppendCommand ¶
type BuildAppendCommand struct {
// contains filtered or unexported fields
}
func NewBuildAppendCommand ¶
func NewBuildAppendCommand() *BuildAppendCommand
func (*BuildAppendCommand) CommandName ¶
func (bac *BuildAppendCommand) CommandName() string
func (*BuildAppendCommand) Run ¶
func (bac *BuildAppendCommand) Run() error
func (*BuildAppendCommand) ServerDetails ¶
func (bac *BuildAppendCommand) ServerDetails() (*config.ServerDetails, error)
func (*BuildAppendCommand) SetBuildConfiguration ¶
func (bac *BuildAppendCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildAppendCommand
func (*BuildAppendCommand) SetBuildNameToAppend ¶
func (bac *BuildAppendCommand) SetBuildNameToAppend(buildName string) *BuildAppendCommand
func (*BuildAppendCommand) SetBuildNumberToAppend ¶
func (bac *BuildAppendCommand) SetBuildNumberToAppend(buildNumber string) *BuildAppendCommand
func (*BuildAppendCommand) SetServerDetails ¶
func (bac *BuildAppendCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildAppendCommand
type BuildCleanCommand ¶
type BuildCleanCommand struct {
// contains filtered or unexported fields
}
func NewBuildCleanCommand ¶
func NewBuildCleanCommand() *BuildCleanCommand
func (*BuildCleanCommand) CommandName ¶
func (bcc *BuildCleanCommand) CommandName() string
func (*BuildCleanCommand) Run ¶
func (bcc *BuildCleanCommand) Run() error
func (*BuildCleanCommand) ServerDetails ¶
func (bcc *BuildCleanCommand) ServerDetails() (*config.ServerDetails, error)
Returns the default Artifactory server
func (*BuildCleanCommand) SetBuildConfiguration ¶
func (bcc *BuildCleanCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildCleanCommand
type BuildCollectEnvCommand ¶
type BuildCollectEnvCommand struct {
// contains filtered or unexported fields
}
func NewBuildCollectEnvCommand ¶
func NewBuildCollectEnvCommand() *BuildCollectEnvCommand
func (*BuildCollectEnvCommand) CommandName ¶
func (bcec *BuildCollectEnvCommand) CommandName() string
func (*BuildCollectEnvCommand) Run ¶
func (bcec *BuildCollectEnvCommand) Run() error
func (*BuildCollectEnvCommand) ServerDetails ¶
func (bcec *BuildCollectEnvCommand) ServerDetails() (*config.ServerDetails, error)
Returns the default configured Artifactory server
func (*BuildCollectEnvCommand) SetBuildConfiguration ¶
func (bcec *BuildCollectEnvCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildCollectEnvCommand
type BuildDiscardCommand ¶
type BuildDiscardCommand struct { services.DiscardBuildsParams // contains filtered or unexported fields }
func NewBuildDiscardCommand ¶
func NewBuildDiscardCommand() *BuildDiscardCommand
func (*BuildDiscardCommand) CommandName ¶
func (buildDiscard *BuildDiscardCommand) CommandName() string
func (*BuildDiscardCommand) Run ¶
func (buildDiscard *BuildDiscardCommand) Run() error
func (*BuildDiscardCommand) ServerDetails ¶
func (buildDiscard *BuildDiscardCommand) ServerDetails() (*config.ServerDetails, error)
func (*BuildDiscardCommand) SetDiscardBuildsParams ¶
func (buildDiscard *BuildDiscardCommand) SetDiscardBuildsParams(params services.DiscardBuildsParams) *BuildDiscardCommand
func (*BuildDiscardCommand) SetServerDetails ¶
func (buildDiscard *BuildDiscardCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildDiscardCommand
type BuildDistributeCommnad ¶
type BuildDistributeCommnad struct { services.BuildDistributionParams // contains filtered or unexported fields }
func NewBuildDistributeCommnad ¶
func NewBuildDistributeCommnad() *BuildDistributeCommnad
func (*BuildDistributeCommnad) CommandName ¶
func (bdc *BuildDistributeCommnad) CommandName() string
func (*BuildDistributeCommnad) Run ¶
func (bdc *BuildDistributeCommnad) Run() error
func (*BuildDistributeCommnad) ServerDetails ¶
func (bdc *BuildDistributeCommnad) ServerDetails() (*config.ServerDetails, error)
func (*BuildDistributeCommnad) SetBuildDistributionParams ¶
func (bdc *BuildDistributeCommnad) SetBuildDistributionParams(buildDistributeParams services.BuildDistributionParams) *BuildDistributeCommnad
func (*BuildDistributeCommnad) SetDryRun ¶
func (bdc *BuildDistributeCommnad) SetDryRun(dryRun bool) *BuildDistributeCommnad
func (*BuildDistributeCommnad) SetServerDetails ¶
func (bdc *BuildDistributeCommnad) SetServerDetails(serverDetails *config.ServerDetails) *BuildDistributeCommnad
type BuildPromotionCommand ¶
type BuildPromotionCommand struct { services.PromotionParams // contains filtered or unexported fields }
func NewBuildPromotionCommand ¶
func NewBuildPromotionCommand() *BuildPromotionCommand
func (*BuildPromotionCommand) CommandName ¶
func (bpc *BuildPromotionCommand) CommandName() string
func (*BuildPromotionCommand) Run ¶
func (bpc *BuildPromotionCommand) Run() error
func (*BuildPromotionCommand) ServerDetails ¶
func (bpc *BuildPromotionCommand) ServerDetails() (*config.ServerDetails, error)
func (*BuildPromotionCommand) SetBuildConfiguration ¶ added in v2.7.0
func (bpc *BuildPromotionCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildPromotionCommand
func (*BuildPromotionCommand) SetDryRun ¶
func (bpc *BuildPromotionCommand) SetDryRun(dryRun bool) *BuildPromotionCommand
func (*BuildPromotionCommand) SetPromotionParams ¶
func (bpc *BuildPromotionCommand) SetPromotionParams(params services.PromotionParams) *BuildPromotionCommand
func (*BuildPromotionCommand) SetServerDetails ¶
func (bpc *BuildPromotionCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildPromotionCommand
type BuildPublishCommand ¶
type BuildPublishCommand struct {
// contains filtered or unexported fields
}
func NewBuildPublishCommand ¶
func NewBuildPublishCommand() *BuildPublishCommand
func (*BuildPublishCommand) CommandName ¶
func (bpc *BuildPublishCommand) CommandName() string
func (*BuildPublishCommand) GetSummary ¶
func (bpc *BuildPublishCommand) GetSummary() *clientutils.Sha256Summary
func (*BuildPublishCommand) IsDetailedSummary ¶
func (bpc *BuildPublishCommand) IsDetailedSummary() bool
func (*BuildPublishCommand) Run ¶
func (bpc *BuildPublishCommand) Run() error
func (*BuildPublishCommand) ServerDetails ¶
func (bpc *BuildPublishCommand) ServerDetails() (*config.ServerDetails, error)
func (*BuildPublishCommand) SetBuildConfiguration ¶
func (bpc *BuildPublishCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildPublishCommand
func (*BuildPublishCommand) SetConfig ¶
func (bpc *BuildPublishCommand) SetConfig(config *biconf.Configuration) *BuildPublishCommand
func (*BuildPublishCommand) SetDetailedSummary ¶
func (bpc *BuildPublishCommand) SetDetailedSummary(detailedSummary bool) *BuildPublishCommand
func (*BuildPublishCommand) SetServerDetails ¶
func (bpc *BuildPublishCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildPublishCommand
func (*BuildPublishCommand) SetSummary ¶
func (bpc *BuildPublishCommand) SetSummary(summary *clientutils.Sha256Summary) *BuildPublishCommand
type BuildScanLegacyCommand ¶ added in v2.7.0
type BuildScanLegacyCommand struct {
// contains filtered or unexported fields
}
Deprecated BuildScan Command. The new build scan command is "xray/commands/scan/buildscan"
func NewBuildScanLegacyCommand ¶ added in v2.7.0
func NewBuildScanLegacyCommand() *BuildScanLegacyCommand
func (*BuildScanLegacyCommand) CommandName ¶ added in v2.7.0
func (bsc *BuildScanLegacyCommand) CommandName() string
func (*BuildScanLegacyCommand) Run ¶ added in v2.7.0
func (bsc *BuildScanLegacyCommand) Run() error
func (*BuildScanLegacyCommand) ServerDetails ¶ added in v2.7.0
func (bsc *BuildScanLegacyCommand) ServerDetails() (*config.ServerDetails, error)
func (*BuildScanLegacyCommand) SetBuildConfiguration ¶ added in v2.7.0
func (bsc *BuildScanLegacyCommand) SetBuildConfiguration(buildConfiguration *build.BuildConfiguration) *BuildScanLegacyCommand
func (*BuildScanLegacyCommand) SetFailBuild ¶ added in v2.7.0
func (bsc *BuildScanLegacyCommand) SetFailBuild(failBuild bool) *BuildScanLegacyCommand
func (*BuildScanLegacyCommand) SetServerDetails ¶ added in v2.7.0
func (bsc *BuildScanLegacyCommand) SetServerDetails(serverDetails *config.ServerDetails) *BuildScanLegacyCommand
type IssuesConfiguration ¶
type LogCmd ¶
type LogCmd struct {
// contains filtered or unexported fields
}
func (*LogCmd) GetErrWriter ¶
func (logCmd *LogCmd) GetErrWriter() io.WriteCloser
func (*LogCmd) GetStdWriter ¶
func (logCmd *LogCmd) GetStdWriter() io.WriteCloser
type RevisionRangeError ¶
type RevisionRangeError struct {
ErrorMsg string
}
Error to be thrown when revision could not be found in the git revision range.
func (RevisionRangeError) Error ¶
func (err RevisionRangeError) Error() string
Click to show internal directories.
Click to hide internal directories.