script

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchFileStep

type BatchFileStep struct {
	JobOutput []string

	Logger *log.JobLogger
	// contains filtered or unexported fields
}

func NewBatchFileStep

func NewBatchFileStep(jobOutput []string, spec interface{}, dirs *types.AgentWorkDirs, envs, secretEnvs []string, logger *log.JobLogger) (*BatchFileStep, error)

func (*BatchFileStep) Run

func (s *BatchFileStep) Run(ctx context.Context) error

type PowerShellStep

type PowerShellStep struct {
	JobOutput []string

	Logger *log.JobLogger
	// contains filtered or unexported fields
}

func NewPowerShellStep

func NewPowerShellStep(jobOutput []string, spec interface{}, dirs *types.AgentWorkDirs, envs, secretEnvs []string, logger *log.JobLogger) (*PowerShellStep, error)

func (*PowerShellStep) Run

func (s *PowerShellStep) Run(ctx context.Context) error

type ShellStep

type ShellStep struct {
	JobOutput []string

	Logger *log.JobLogger
	// contains filtered or unexported fields
}

func NewShellStep

func NewShellStep(jobOutput []string, spec interface{}, dirs *types.AgentWorkDirs, envs, secretEnvs []string, logger *log.JobLogger) (*ShellStep, error)

func (*ShellStep) Run

func (s *ShellStep) Run(ctx context.Context) error

type StepBatchFileSpec

type StepBatchFileSpec struct {
	Scripts     []string `json:"scripts"                                 yaml:"scripts,omitempty"`
	Script      string   `json:"script"                                  yaml:"script"`
	SkipPrepare bool     `json:"skip_prepare"                            yaml:"skip_prepare"`
}

type StepPowerShellSpec

type StepPowerShellSpec struct {
	Scripts     []string `json:"scripts"                                 yaml:"scripts,omitempty"`
	Script      string   `json:"script"                                  yaml:"script"`
	SkipPrepare bool     `json:"skip_prepare"                            yaml:"skip_prepare"`
}

type StepShellSpec

type StepShellSpec struct {
	Scripts     []string `json:"scripts"                                 yaml:"scripts,omitempty"`
	Script      string   `json:"script"                                  yaml:"script"`
	SkipPrepare bool     `json:"skip_prepare"                            yaml:"skip_prepare"`
}

Jump to

Keyboard shortcuts

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