Documentation ¶
Index ¶
- Constants
- Variables
- func ActionIsValid(actionName string) bool
- func ActionNames() string
- func ActionNeedsCriteria(actionName string) bool
- 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 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" )
View Source
const ( FlagForce = "force" FlagNoTest = "no-test" FlagEdit = "edit" FlagNoSecrets = "no-secrets" FlagJsonOutput = "json" FlagTimeout = "timeout-ms" )
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 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 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"` 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 ¶
Click to show internal directories.
Click to hide internal directories.