actionsdotnetactcompat

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDefaults

func ConvertDefaults(jobDefaults []protocol.TemplateToken) (model.Defaults, error)

func ConvertEnvironment

func ConvertEnvironment(environmentVariables []protocol.TemplateToken) (map[string]string, error)

func ConvertMatrixInstance

func ConvertMatrixInstance(contextData map[string]protocol.PipelineContextData) (map[string]interface{}, error)

func ConvertServiceContainer

func ConvertServiceContainer(jobServiceContainers *protocol.TemplateToken) (map[string]*model.ContainerSpec, error)

func ConvertSteps

func ConvertSteps(jobSteps []protocol.ActionStep) ([]*model.Step, error)

Types

type ActRunner

type ActRunner struct {
	actionsrunner.WorkerRunnerEnvironment
}

func (*ActRunner) ExecWorker

func (arunner *ActRunner) ExecWorker(run *actionsrunner.RunRunner, wc actionsrunner.WorkerContext,
	jobreq *protocol.AgentJobRequestMessage, src []byte,
) error

type ActionCacheBase added in v0.11.0

type ActionCacheBase struct {
	VssConnection *protocol.VssConnection
	Plan          *protocol.TaskOrchestrationPlanReference
	GHToken       string
	HttpClient    *http.Client
	CacheDir      string
	// contains filtered or unexported fields
}

func (*ActionCacheBase) GetTarArchive added in v0.11.0

func (cache *ActionCacheBase) GetTarArchive(ctx context.Context, cacheDir, sha, includePrefix string) (io.ReadCloser, error)

GetTarArchive implements runner.ActionCache.

type JobLoggerFactory added in v0.6.0

type JobLoggerFactory struct {
	Logger *logrus.Logger
}

func (*JobLoggerFactory) WithJobLogger added in v0.6.0

func (factory *JobLoggerFactory) WithJobLogger() *logrus.Logger

type LaunchActionCache added in v0.11.0

type LaunchActionCache struct {
	ActionCacheBase
	LaunchEndpoint string
	JobID          string
}

func (*LaunchActionCache) Fetch added in v0.11.0

func (cache *LaunchActionCache) Fetch(ctx context.Context, cacheDir, url, ref, token string) (string, error)

Fetch implements runner.ActionCache.

type VssActionCache added in v0.11.0

type VssActionCache struct {
	ActionCacheBase
}

func (*VssActionCache) Fetch added in v0.11.0

func (cache *VssActionCache) Fetch(ctx context.Context, cacheDir, url, ref, token string) (string, error)

Fetch implements runner.ActionCache.

Jump to

Keyboard shortcuts

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