builtin

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionSDK added in v0.9.0

type ActionSDK struct {
	BuildID              string
	JobID                string
	ProjectDir           string
	Modules              []*analyzerapi.ProjectModule
	Step                 plangenerate.Step
	CurrentModule        *analyzerapi.ProjectModule
	CurrentAction        *catalog.Action
	NCI                  nci.Spec
	Env                  map[string]string
	ActionEnv            map[string]string
	ActionConfig         string
	State                *state.ActionStateContext
	TempDir              string
	ArtifactDir          string
	ExecutableCandidates []executable.Executable
}

func (ActionSDK) ArtifactByIdV1 added in v0.9.0

func (sdk ActionSDK) ArtifactByIdV1(id string) (*actionsdk.Artifact, error)

func (ActionSDK) ArtifactDownloadByteArrayV1 added in v0.9.0

func (ActionSDK) ArtifactDownloadV1 added in v0.9.0

func (ActionSDK) ArtifactListV1 added in v0.9.0

func (sdk ActionSDK) ArtifactListV1(request actionsdk.ArtifactListRequest) ([]*actionsdk.Artifact, error)

func (ActionSDK) ArtifactUploadV1 added in v0.9.0

func (sdk ActionSDK) ArtifactUploadV1(request actionsdk.ArtifactUploadRequest) (filePath string, fileHash string, err error)

func (ActionSDK) ConfigV1 added in v0.9.0

func (sdk ActionSDK) ConfigV1() (*actionsdk.ConfigV1Response, error)

func (ActionSDK) DeploymentV1 added in v0.9.0

func (sdk ActionSDK) DeploymentV1() (*actionsdk.DeploymentV1Response, error)

func (ActionSDK) EnvironmentV1 added in v0.9.0

func (sdk ActionSDK) EnvironmentV1() (*actionsdk.EnvironmentV1Response, error)

func (ActionSDK) ExecuteCommandV1 added in v0.9.0

ExecuteCommand command

func (ActionSDK) FileCopyV1 added in v0.9.0

func (sdk ActionSDK) FileCopyV1(old string, new string) error

func (ActionSDK) FileExistsV1 added in v0.9.0

func (sdk ActionSDK) FileExistsV1(file string) bool

func (ActionSDK) FileListV1 added in v0.9.0

func (sdk ActionSDK) FileListV1(req actionsdk.FileV1Request) (files []actionsdk.File, err error)

func (ActionSDK) FileReadV1 added in v0.9.0

func (sdk ActionSDK) FileReadV1(file string) (string, error)

func (ActionSDK) FileRemoveV1 added in v0.9.0

func (sdk ActionSDK) FileRemoveV1(file string) error

func (ActionSDK) FileRenameV1 added in v0.9.0

func (sdk ActionSDK) FileRenameV1(old string, new string) error

func (ActionSDK) FileWriteV1 added in v0.9.0

func (sdk ActionSDK) FileWriteV1(file string, content []byte) error

func (ActionSDK) HealthV1 added in v0.9.0

func (sdk ActionSDK) HealthV1() (actionsdk.HealthV1Response, error)

func (ActionSDK) LogV1 added in v0.9.0

func (sdk ActionSDK) LogV1(req actionsdk.LogV1Request) error

func (ActionSDK) ModuleCurrentV1 added in v0.9.0

func (sdk ActionSDK) ModuleCurrentV1() (*actionsdk.ProjectModule, error)

func (ActionSDK) ModuleExecutionContextV1 added in v0.9.0

func (sdk ActionSDK) ModuleExecutionContextV1() (*actionsdk.ModuleExecutionContextV1Response, error)

func (ActionSDK) ModuleListV1 added in v0.9.0

func (sdk ActionSDK) ModuleListV1() ([]*actionsdk.ProjectModule, error)

func (ActionSDK) ProjectExecutionContextV1 added in v0.9.0

func (sdk ActionSDK) ProjectExecutionContextV1() (*actionsdk.ProjectExecutionContextV1Response, error)

func (ActionSDK) TARCreateV1 added in v0.9.0

func (sdk ActionSDK) TARCreateV1(inputDirectory string, outputFile string) error

TARCreate creates a tar archive of the directory at the given path.

func (ActionSDK) TARExtractV1 added in v0.9.0

func (sdk ActionSDK) TARExtractV1(archiveFile string, outputDirectory string) error

TARExtract extracts a tar archive at the given path into the given directory.

func (ActionSDK) UUIDV4 added in v0.9.0

func (sdk ActionSDK) UUIDV4() string

UUIDV4 generates a new UUID string.

func (ActionSDK) VCSCommitByHashV1 added in v0.9.0

func (sdk ActionSDK) VCSCommitByHashV1(request actionsdk.VCSCommitByHashRequest) (*actionsdk.VCSCommit, error)

func (ActionSDK) VCSCommitsV1 added in v0.9.0

func (sdk ActionSDK) VCSCommitsV1(request actionsdk.VCSCommitsRequest) ([]*actionsdk.VCSCommit, error)

func (ActionSDK) VCSDiffV1 added in v0.9.0

func (sdk ActionSDK) VCSDiffV1(request actionsdk.VCSDiffRequest) ([]actionsdk.VCSDiff, error)

func (ActionSDK) VCSReleasesV1 added in v0.9.0

func (sdk ActionSDK) VCSReleasesV1(request actionsdk.VCSReleasesRequest) ([]actionsdk.VCSRelease, error)

func (ActionSDK) VCSTagsV1 added in v0.9.0

func (sdk ActionSDK) VCSTagsV1() ([]actionsdk.VCSTag, error)

func (ActionSDK) ZIPCreateV1 added in v0.9.0

func (sdk ActionSDK) ZIPCreateV1(inputDirectory string, outputFile string) error

ZIPCreate creates a zip archive of the directory at the given path.

func (ActionSDK) ZIPExtractV1 added in v0.9.0

func (sdk ActionSDK) ZIPExtractV1(archiveFile string, outputDirectory string) error

ZIPExtract unzips the zip archive at the given path into the given directory.

type Executor

type Executor struct{}

func (Executor) Execute

func (e Executor) Execute(ctx *commonapi.ActionExecutionContext, localState *state.ActionStateContext, catalogAction *catalog.Action, step plangenerate.Step) error

func (Executor) GetName

func (e Executor) GetName() string

func (Executor) GetType

func (e Executor) GetType() string

func (Executor) GetVersion

func (e Executor) GetVersion() string

Jump to

Keyboard shortcuts

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