model

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func IsValidTimezone(timezone string) bool

Types

type Action added in v1.5.0

type Action struct {
	Application string `json:"application"`
	Name        string `json:"name"`
}

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 ArtifactFilterCriteria struct {
	RepoKeys     []string `json:"repoKeys,omitempty"`
	AnyLocal     bool     `json:"anyLocal,omitempty"`
	AnyFederated bool     `json:"anyFederated,omitempty"`
	AnyRemote    bool     `json:"anyRemote,omitempty"`
}

type FilterCriteria

type FilterCriteria struct {
	ArtifactFilterCriteria *ArtifactFilterCriteria `json:"artifactFilterCriteria,omitempty"`
	Schedule               *ScheduleFilterCriteria `json:"schedule,omitempty"`
}

type IntFlagProvider added in v1.5.0

type IntFlagProvider interface {
	IsFlagSet(name string) bool
	GetIntFlagValue(name string) (int, error)
}

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 ScheduleFilterCriteria struct {
	Cron     string `json:"cron,omitempty"`
	Timezone string `json:"timezone,omitempty"`
}

type Secret

type Secret struct {
	Key              string `json:"key"`
	Value            string `json:"value"`
	MarkedForRemoval bool   `json:"markedForRemoval"`
}

type Secrets

type Secrets map[string]string

type Version added in v1.10.0

type Version struct {
	CommitSha   string `json:"commitSha"`
	Description string `json:"description"`
	Number      string `json:"versionNumber"`
}

func (*Version) IsEmpty added in v1.10.0

func (v *Version) IsEmpty() bool

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL