runners

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CONTAINER_DEPENDENCIES_DIR = "/dependencies"
View Source
const CONTAINER_NAME = constants.PLUGIN_NAME + "-run"
View Source
const CONTAINER_POST_TASK_SCRIPT_PATH = "/post-task/script.sh"
View Source
const CONTAINER_TASK_DIR = "/task"
View Source
const CONTAINER_WORK_DIR = "/workdir"
View Source
const DEFAULT_IMAGE = "releases-docker.jfrog.io/jfrog/pipelines-u20node:16"

TODO: Support docker image parameter TODO: Support windows

View Source
const DIND_CONTAINER_NAME = constants.PLUGIN_NAME + "-dind"
View Source
const NETWORK_NAME = constants.PLUGIN_NAME

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerRunner

type DockerRunner struct {
	// contains filtered or unexported fields
}

func NewDockerRunner

func NewDockerRunner() *DockerRunner

func (*DockerRunner) GetRuntimeConfiguration

func (r *DockerRunner) GetRuntimeConfiguration() *RuntimeConfiguration

func (*DockerRunner) Run

func (r *DockerRunner) Run(options *RunnerOptions) error

type Runner

type Runner interface {
	GetRuntimeConfiguration() *RuntimeConfiguration
	Run(options *RunnerOptions) error
}

type RunnerOptions

type RunnerOptions struct {
	PathToTask                 string
	PathToDependencies         string
	PathToLocalDeveloperFolder string
	PathToWorkingDirectory     string
	PathToPostTaskScript       string
	Script                     []byte
	StepJson                   []byte
	Output                     io.Writer
}

type RuntimeConfiguration

type RuntimeConfiguration struct {
	ContainerName         string
	PathToTask            string
	PathToDependencies    string
	PathToDeveloperFolder string
	PathToStepJsonFile    string
	PathToStepletScript   string
	PathToPostTaskScript  string
	Os                    string
	OsFamily              string
	ScriptExtension       string
	Architecture          string
}

Jump to

Keyboard shortcuts

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