Documentation ¶
Index ¶
- Constants
- func ConvertFirstRuneToLowerCase(name string) string
- func DownloadFile(url string, targetPath string) error
- func ExtractTarGz(gzipStream io.Reader, target string) error
- func GetEnvironmentVariableFriendlyValue(value interface{}) string
- func GetStructAsEnvironmentVariables(object interface{}) map[string]string
- func ResolvePathAndPanicIfNotFound(path string) string
- type AssembleOptions
- type Configuration
- type DependenciesDownloadOptions
- type DependenciesDownloader
- type DependenciesDownloaderImpl
- type DependenciesDownloaderMock
- type EnvironmentVariable
- type Execution
- type FormJSONValues
- type Image
- type IntegrationParserMock
- type IntegrationsParser
- type IntegrationsParserImpl
- type NamedReference
- type ParseIntegrationsOptions
- type ProjectIntegration
- type RunnerMock
- type Runtime
- type ScriptAssembler
- type ScriptAssemblerImpl
- type ScriptAssemblerMock
- type Step
- type StepJson
- type StepJsonAssembleOptions
- type StepJsonAssembler
- type StepJsonAssemblerImpl
- type StepJsonAssemblerMock
Constants ¶
View Source
const CONTAINER_NAME = constants.PLUGIN_NAME + "-reqKick"
View Source
const REQKICK_DOCKER_IMAGE = "releases-docker.jfrog.io/jfrog/pipelines-reqkick:" + constants.BUILD_PLANE_VERSION
TODO: Make it configurable in run command
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func GetEnvironmentVariableFriendlyValue ¶
func GetEnvironmentVariableFriendlyValue(value interface{}) string
Types ¶
type AssembleOptions ¶
type AssembleOptions struct { TaskArguments map[string]string EnvironmentVariables map[string]string StepJson []byte EnableOnStepCompleteHook bool // contains filtered or unexported fields }
func (*AssembleOptions) GetValueFromStepJson ¶
func (o *AssembleOptions) GetValueFromStepJson(key string) string
type Configuration ¶
type Configuration struct { AffinityGroup string `json:"affinityGroup"` InputSteps []NamedReference `json:"inputSteps"` InputResources []NamedReference `json:"inputResources"` OutputResources []NamedReference `json:"outputResources"` Integrations []NamedReference `json:"integrations"` EnvironmentVariables []EnvironmentVariable `json:"environmentVariables"` NodePool string `json:"nodePool"` TimeoutSeconds int `json:"timeoutSeconds"` Runtime Runtime `json:"runtime"` IsOnDemand bool `json:"isOnDemand"` InstanceSize interface{} `json:"instanceSize"` NodeId int `json:"nodeId"` NodeName string `json:"nodeName"` }
type DependenciesDownloader ¶
type DependenciesDownloader interface {
Download(options *DependenciesDownloadOptions) error
}
func NewDependenciesDownloader ¶
func NewDependenciesDownloader() DependenciesDownloader
type DependenciesDownloaderImpl ¶
type DependenciesDownloaderImpl struct {
// contains filtered or unexported fields
}
func (*DependenciesDownloaderImpl) Download ¶
func (d *DependenciesDownloaderImpl) Download(options *DependenciesDownloadOptions) error
type DependenciesDownloaderMock ¶
func (*DependenciesDownloaderMock) Download ¶
func (m *DependenciesDownloaderMock) Download(options *DependenciesDownloadOptions) error
type EnvironmentVariable ¶
type FormJSONValues ¶
type IntegrationParserMock ¶
func (*IntegrationParserMock) GetIntegrations ¶
func (m *IntegrationParserMock) GetIntegrations() map[string]ProjectIntegration
func (*IntegrationParserMock) GetSimplifiedIntegrations ¶
func (m *IntegrationParserMock) GetSimplifiedIntegrations() map[string]map[string]interface{}
func (*IntegrationParserMock) Parse ¶
func (m *IntegrationParserMock) Parse(options *ParseIntegrationsOptions) error
type IntegrationsParser ¶
type IntegrationsParser interface { Parse(*ParseIntegrationsOptions) error GetIntegrations() map[string]ProjectIntegration GetSimplifiedIntegrations() map[string]map[string]interface{} }
func NewIntegrationParser ¶
func NewIntegrationParser() IntegrationsParser
type IntegrationsParserImpl ¶
type IntegrationsParserImpl struct {
// contains filtered or unexported fields
}
func (*IntegrationsParserImpl) GetIntegrations ¶
func (i *IntegrationsParserImpl) GetIntegrations() map[string]ProjectIntegration
func (*IntegrationsParserImpl) GetSimplifiedIntegrations ¶
func (i *IntegrationsParserImpl) GetSimplifiedIntegrations() map[string]map[string]interface{}
func (*IntegrationsParserImpl) Parse ¶
func (i *IntegrationsParserImpl) Parse(options *ParseIntegrationsOptions) error
type NamedReference ¶
type NamedReference struct {
Name string `json:"name"`
}
type ParseIntegrationsOptions ¶
type ParseIntegrationsOptions struct {
PathToIntegrationsFile string
}
type ProjectIntegration ¶
type ProjectIntegration struct { Id int `json:"id"` MasterIntegrationId int `json:"masterIntegrationId"` Name string `json:"name"` MasterIntegrationType string `json:"masterIntegrationType"` ProjectId int `json:"projectId"` MasterIntegrationName string `json:"masterIntegrationName"` ProviderId int `json:"providerId"` Environments interface{} `json:"environments"` IsInternal bool `json:"isInternal"` CreatedByUserName string `json:"createdByUserName"` UpdatedByUserName string `json:"updatedByUserName"` FormJSONValues []FormJSONValues `json:"formJSONValues"` CreatedBy int `json:"createdBy"` UpdatedBy int `json:"updatedBy"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
func (ProjectIntegration) GetIntegrationAsEnvironmentVariable ¶
func (p ProjectIntegration) GetIntegrationAsEnvironmentVariable() map[string]string
type RunnerMock ¶
func (*RunnerMock) GetRuntimeConfiguration ¶
func (m *RunnerMock) GetRuntimeConfiguration() *runners.RuntimeConfiguration
func (*RunnerMock) Run ¶
func (m *RunnerMock) Run(options *runners.RunnerOptions) error
type ScriptAssembler ¶
type ScriptAssembler interface {
Assemble(options *AssembleOptions) ([]byte, error)
}
func NewScriptAssembler ¶
func NewScriptAssembler(runner runners.Runner, integrationsParser IntegrationsParser) ScriptAssembler
type ScriptAssemblerImpl ¶
type ScriptAssemblerImpl struct {
// contains filtered or unexported fields
}
func (*ScriptAssemblerImpl) Assemble ¶
func (s *ScriptAssemblerImpl) Assemble(options *AssembleOptions) ([]byte, error)
type ScriptAssemblerMock ¶
func (*ScriptAssemblerMock) Assemble ¶
func (m *ScriptAssemblerMock) Assemble(options *AssembleOptions) ([]byte, error)
type StepJsonAssembleOptions ¶
type StepJsonAssembleOptions struct { }
type StepJsonAssembler ¶
type StepJsonAssembler interface {
Assemble(options *StepJsonAssembleOptions) ([]byte, error)
}
func NewStepJsonAssembler ¶
func NewStepJsonAssembler(integrationsParser IntegrationsParser) StepJsonAssembler
type StepJsonAssemblerImpl ¶
type StepJsonAssemblerImpl struct {
// contains filtered or unexported fields
}
func (*StepJsonAssemblerImpl) Assemble ¶
func (s *StepJsonAssemblerImpl) Assemble(options *StepJsonAssembleOptions) ([]byte, error)
type StepJsonAssemblerMock ¶
func (*StepJsonAssemblerMock) Assemble ¶
func (m *StepJsonAssemblerMock) Assemble(options *StepJsonAssembleOptions) ([]byte, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.