Documentation
¶
Index ¶
- Constants
- Variables
- func GetApplicationFlag() components.StringFlag
- func GetChangesCommitShaFlag() components.StringFlag
- func GetChangesDescriptionFlag() components.StringFlag
- func GetChangesVersionFlag() components.StringFlag
- func GetJsonOutputFlag(description ...string) components.BoolFlag
- func GetJsonPayloadArgument() components.Argument
- func GetNoSecretsFlag(description ...string) components.BoolFlag
- func GetNoTestFlag(description ...string) components.BoolFlag
- func GetProjectKeyFlag() components.StringFlag
- func GetServerDetails(c *components.Context) (*config.ServerDetails, error)
- func GetTimeoutFlag() components.StringFlag
- func GetTimeoutParameter(c IntFlagProvider) (time.Duration, error)
- func GetWorkerKeyArgument() components.Argument
- func IsValidTimezone(timezone string) bool
- type Action
- type ActionFilterType
- type ActionMetadata
- type ArtifactFilterCriteria
- type FilterCriteria
- type IntFlagProvider
- type Manifest
- type ScheduleFilterCriteria
- type Secret
- type Secrets
- type Version
- type WorkerDetails
Constants ¶
View Source
const ( FilterTypeRepo = "FILTER_REPO" FilterTypeSchedule = "SCHEDULE" )
View Source
const ( FlagForce = "force" FlagNoTest = "no-test" FlagEdit = "edit" FlagNoSecrets = "no-secrets" FlagJsonOutput = "json" FlagTimeout = "timeout-ms" FlagProjectKey = "project-key" FlagApplication = "application" FlagChangesVersion = "changes-version" FlagChangesDescription = "changes-description" FlagChangesCommitSha = "changes-commitsha" )
Variables ¶
View Source
var ( EnvKeyServerUrl = "JFROG_WORKER_CLI_DEV_SERVER_URL" EnvKeyAccessToken = "JFROG_WORKER_CLI_DEV_ACCESS_TOKEN" EnvKeySecretsPassword = "JFROG_WORKER_CLI_DEV_SECRETS_PASSWORD" EnvKeyAddSecretValue = "JFROG_WORKER_CLI_DEV_ADD_SECRET_VALUE" )
View Source
var TimeZones = []string{}/* 597 elements not displayed */
Functions ¶
func GetApplicationFlag ¶ added in v1.5.0
func GetApplicationFlag() components.StringFlag
func GetChangesCommitShaFlag ¶ added in v1.10.0
func GetChangesCommitShaFlag() components.StringFlag
func GetChangesDescriptionFlag ¶ added in v1.10.0
func GetChangesDescriptionFlag() components.StringFlag
func GetChangesVersionFlag ¶ added in v1.10.0
func GetChangesVersionFlag() components.StringFlag
func GetJsonOutputFlag ¶
func GetJsonOutputFlag(description ...string) components.BoolFlag
func GetJsonPayloadArgument ¶
func GetJsonPayloadArgument() components.Argument
func GetNoSecretsFlag ¶
func GetNoSecretsFlag(description ...string) components.BoolFlag
func GetNoTestFlag ¶
func GetNoTestFlag(description ...string) components.BoolFlag
func GetProjectKeyFlag ¶ added in v1.4.0
func GetProjectKeyFlag() components.StringFlag
func GetServerDetails ¶
func GetServerDetails(c *components.Context) (*config.ServerDetails, error)
func GetTimeoutFlag ¶
func GetTimeoutFlag() components.StringFlag
func GetTimeoutParameter ¶
func GetTimeoutParameter(c IntFlagProvider) (time.Duration, error)
func GetWorkerKeyArgument ¶
func GetWorkerKeyArgument() components.Argument
func IsValidTimezone ¶ added in v1.6.0
Types ¶
type ActionFilterType ¶ added in v1.5.0
type ActionFilterType string
type ActionMetadata ¶ added in v1.5.0
type ActionMetadata struct {
Action Action `json:"action"`
Description string `json:"description"`
SamplePayload string `json:"samplePayload"`
SampleCode string `json:"sampleCode"`
TypesDefinitions string `json:"typesDefinitions"`
SupportProjects bool `json:"supportProjects"`
FilterType ActionFilterType `json:"filterType"`
MandatoryFilter bool `json:"mandatoryFilter"`
WikiUrl string `json:"wikiUrl"`
Async bool `json:"async"`
ExecutionRequestType string `json:"executionRequestType"`
}
type ArtifactFilterCriteria ¶
type FilterCriteria ¶
type FilterCriteria struct {
ArtifactFilterCriteria *ArtifactFilterCriteria `json:"artifactFilterCriteria,omitempty"`
Schedule *ScheduleFilterCriteria `json:"schedule,omitempty"`
}
type IntFlagProvider ¶ added in v1.5.0
type Manifest ¶
type Manifest struct {
Name string `json:"name"`
Description string `json:"description"`
SourceCodePath string `json:"sourceCodePath"`
Action string `json:"action"`
Enabled bool `json:"enabled"`
Debug bool `json:"debug"`
ProjectKey string `json:"projectKey"`
Secrets Secrets `json:"secrets"`
FilterCriteria *FilterCriteria `json:"filterCriteria,omitempty"`
Application string `json:"application,omitempty"`
}
type ScheduleFilterCriteria ¶ added in v1.6.0
type Version ¶ added in v1.10.0
type WorkerDetails ¶
type WorkerDetails struct {
Key string `json:"key"`
Description string `json:"description"`
Debug bool `json:"debug"`
Enabled bool `json:"enabled"`
SourceCode string `json:"sourceCode"`
Action string `json:"action"`
FilterCriteria *FilterCriteria `json:"filterCriteria,omitempty"`
Secrets []*Secret `json:"secrets"`
ProjectKey string `json:"projectKey"`
}
Click to show internal directories.
Click to hide internal directories.