Help us shape the future of Go! Take the 2026 Go Developer Survey

action

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: BSD-3-Clause Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeTestsReasons added in v0.52.0

func ComputeTestsReasons(s sdk.JUnitTestsSuites) []string

func GetArtifactFromIntegrationPlugin

func GetArtifactFromIntegrationPlugin(ctx context.Context, wk workerruntime.Runtime, res sdk.Result, pattern string, regexp *regexp.Regexp, destPath string, pluginName string, key, wkfName string, number int64) (sdk.Result, error)

func ParseTestsuiteAlone

func ParseTestsuiteAlone(data []byte) (sdk.JUnitTestSuite, bool)

func PushBuildInfo

func PushBuildInfo(ctx context.Context, wk workerruntime.Runtime, _ sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunArtifactDownload

func RunArtifactDownload(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunArtifactUpload

func RunArtifactUpload(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunCheckoutApplication

func RunCheckoutApplication(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunDeployApplication

func RunDeployApplication(ctx context.Context, wk workerruntime.Runtime, _ sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunGitClone

func RunGitClone(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunGitTag

func RunGitTag(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunInstallKey

func RunInstallKey(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunParseCoverageResultAction

func RunParseCoverageResultAction(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunParseJunitTestResultAction

func RunParseJunitTestResultAction(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunPromote

func RunPromote(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunRelease

func RunRelease(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunReleaseActionPrepare added in v0.52.0

func RunReleaseActionPrepare(ctx context.Context, wk workerruntime.Runtime, a sdk.Action) ([]string, error)

func RunReleaseVCS

func RunReleaseVCS(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunScriptAction

func RunScriptAction(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

Types

type TestWorker

type TestWorker struct {
	Params []sdk.Parameter
	// contains filtered or unexported fields
}

func SetupTest

func SetupTest(t *testing.T) (*TestWorker, context.Context)

func (*TestWorker) AddStepOutput added in v0.53.1

func (w *TestWorker) AddStepOutput(ctx context.Context, outputName string, outputValue string)

func (TestWorker) BaseDir

func (wk TestWorker) BaseDir() afero.Fs

func (*TestWorker) Blur

func (w *TestWorker) Blur(i interface{}) error

func (*TestWorker) CDNHttpURL

func (w *TestWorker) CDNHttpURL() string

func (*TestWorker) Client

func (w *TestWorker) Client() cdsclient.WorkerInterface

func (*TestWorker) ClientV2 added in v0.53.0

func (w *TestWorker) ClientV2() cdsclient.V2WorkerInterface

func (*TestWorker) Environ

func (_ *TestWorker) Environ() []string

func (*TestWorker) FeatureEnabled

func (w *TestWorker) FeatureEnabled(featureName sdk.FeatureName) bool

func (*TestWorker) GetActionPlugin added in v0.53.0

func (w *TestWorker) GetActionPlugin(t string) *sdk.GRPCPlugin

func (*TestWorker) GetIntegrationPlugin added in v0.53.0

func (w *TestWorker) GetIntegrationPlugin(t string) *sdk.GRPCPlugin

func (*TestWorker) GetJobIdentifiers

func (w *TestWorker) GetJobIdentifiers() (int64, int64, int64)

func (*TestWorker) HTTPPort

func (_ *TestWorker) HTTPPort() int32

func (*TestWorker) InstallKey

func (w *TestWorker) InstallKey(key sdk.Variable) (*workerruntime.KeyResponse, error)

func (*TestWorker) InstallKeyTo

func (w *TestWorker) InstallKeyTo(key sdk.Variable, destinationPath string) (*workerruntime.KeyResponse, error)

func (*TestWorker) KeyDirectory

func (w *TestWorker) KeyDirectory() *afero.BasePathFile

func (*TestWorker) Name

func (_ *TestWorker) Name() string

func (*TestWorker) Parameters

func (w *TestWorker) Parameters() []sdk.Parameter

func (*TestWorker) PluginGet added in v0.53.0

func (w *TestWorker) PluginGet(pluginName string) (*sdk.GRPCPlugin, error)

func (*TestWorker) PluginGetBinary added in v0.53.0

func (w *TestWorker) PluginGetBinary(name, os, arch string, wr io.Writer) error

func (*TestWorker) ProcessJob

func (_ *TestWorker) ProcessJob(job sdk.WorkflowNodeJobRunData) sdk.Result

func (*TestWorker) Register

func (_ *TestWorker) Register(ctx context.Context) error

func (*TestWorker) RunResultSignature

func (w *TestWorker) RunResultSignature(artifactName string, perm uint32, t sdk.WorkflowRunResultType) (string, error)

func (*TestWorker) SendLog

func (w *TestWorker) SendLog(ctx context.Context, level workerruntime.Level, format string)

func (*TestWorker) SetActionPlugin added in v0.53.0

func (w *TestWorker) SetActionPlugin(p *sdk.GRPCPlugin)

func (*TestWorker) Take

func (*TestWorker) Unregister

func (_ *TestWorker) Unregister(ctx context.Context) error

func (*TestWorker) V2AddRunResult added in v0.53.1

func (*TestWorker) V2GetCacheLink(ctx context.Context, cacheKey string) (*sdk.CDNItemLinks, error)

func (*TestWorker) V2GetCacheSignature added in v0.55.0

func (*TestWorker) V2GetCacheSignature(ctx context.Context, cacheKey string) (*workerruntime.CDNSignature, error)

func (*TestWorker) V2GetJobContext added in v0.53.1

func (*TestWorker) V2GetJobContext(ctx context.Context) *sdk.WorkflowRunJobsContext

V2GetJobContext implements workerruntime.Runtime.

func (*TestWorker) V2GetJobRun added in v0.53.1

func (*TestWorker) V2GetJobRun(ctx context.Context) *sdk.V2WorkflowRunJob

V2GetJobRun implements workerruntime.Runtime.

func (*TestWorker) V2GetProjectKey added in v0.55.0

func (*TestWorker) V2GetProjectKey(ctx context.Context, keyName string, clear bool) (*sdk.ProjectKey, error)

func (*TestWorker) V2GetRunResult added in v0.53.1

func (*TestWorker) V2RunResultsSynchronize added in v0.55.0

func (w *TestWorker) V2RunResultsSynchronize(ctx context.Context) error

func (*TestWorker) V2UpdateRunResult added in v0.53.1

func (*TestWorker) WorkerCacheSignature

func (w *TestWorker) WorkerCacheSignature(tag string) (string, error)

func (*TestWorker) WorkingDirectory

func (w *TestWorker) WorkingDirectory() *afero.BasePathFile

Jump to

Keyboard shortcuts

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