Documentation
¶
Index ¶
- Constants
- Variables
- func ActionIsValid(actionName string) bool
- func ActionNames() string
- func ActionNeedsCriteria(actionName string) bool
- func CleanImports(source string) string
- func DecryptSecret(password string, encryptedValue string) (string, error)
- func EncryptSecret(password string, secretValue string) (string, error)
- 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 ReadSecretPassword(prompt ...string) (string, error)
- type ArtifactFilterCriteria
- type FilterCriteria
- type Manifest
- type Secret
- type Secrets
- type WorkerDetails
Constants ¶
View Source
const ( ActionUnspecified = "ACTION_UNSPECIFIED" ActionBeforeDownload = "BEFORE_DOWNLOAD" ActionAfterDownload = "AFTER_DOWNLOAD" ActionBeforeUpload = "BEFORE_UPLOAD" ActionAfterCreate = "AFTER_CREATE" ActionAfterBuildInfoSave = "AFTER_BUILD_INFO_SAVE" ActionAfterMove = "AFTER_MOVE" ActionGenericEvent = "GENERIC_EVENT" ActionBeforeCreateToken = "BEFORE_CREATE_TOKEN" ActionBeforePropertyCreate = "BEFORE_PROPERTY_CREATE" )
View Source
const ( FlagForce = "force" FlagNoTest = "no-test" FlagEdit = "edit" FlagNoSecrets = "no-secrets" FlagJsonOutput = "json" FlagTimeout = "timeout-ms" FlagProjectKey = "project-key" )
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" )
Functions ¶
func ActionIsValid ¶
func ActionNames ¶
func ActionNames() string
func ActionNeedsCriteria ¶
func CleanImports ¶ added in v1.4.0
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 GetWorkerKeyArgument ¶
func GetWorkerKeyArgument() components.Argument
func ReadSecretPassword ¶
Types ¶
type ArtifactFilterCriteria ¶
type ArtifactFilterCriteria struct {
RepoKeys []string `json:"repoKeys,omitempty"`
}
type FilterCriteria ¶
type FilterCriteria struct {
ArtifactFilterCriteria ArtifactFilterCriteria `json:"artifactFilterCriteria,omitempty"`
}
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"`
}
func ReadManifest ¶
ReadManifest reads a manifest from the working directory or from the directory provided as argument.
func (*Manifest) DecryptSecrets ¶
func (*Manifest) ReadSourceCode ¶
ReadSourceCode reads the content of the file pointed by SourceCodePath
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"`
}
func (*WorkerDetails) KeyWithProject ¶ added in v1.4.0
func (w *WorkerDetails) KeyWithProject() string
Click to show internal directories.
Click to hide internal directories.