Documentation
¶
Index ¶
- type ActionSDK
- func (sdk ActionSDK) ArtifactByIdV1(id string) (*actionsdk.Artifact, error)
- func (sdk ActionSDK) ArtifactDownloadByteArrayV1(request actionsdk.ArtifactDownloadByteArrayRequest) (*actionsdk.ArtifactDownloadByteArrayResult, error)
- func (sdk ActionSDK) ArtifactDownloadV1(request actionsdk.ArtifactDownloadRequest) (*actionsdk.ArtifactDownloadResult, error)
- func (sdk ActionSDK) ArtifactListV1(request actionsdk.ArtifactListRequest) ([]*actionsdk.Artifact, error)
- func (sdk ActionSDK) ArtifactUploadV1(request actionsdk.ArtifactUploadRequest) (filePath string, fileHash string, err error)
- func (sdk ActionSDK) ConfigV1() (*actionsdk.ConfigV1Response, error)
- func (sdk ActionSDK) DeploymentV1() (*actionsdk.DeploymentV1Response, error)
- func (sdk ActionSDK) EnvironmentV1() (*actionsdk.EnvironmentV1Response, error)
- func (sdk ActionSDK) ExecuteCommandV1(req actionsdk.ExecuteCommandV1Request) (*actionsdk.ExecuteCommandV1Response, error)
- func (sdk ActionSDK) FileCopyV1(old string, new string) error
- func (sdk ActionSDK) FileExistsV1(file string) bool
- func (sdk ActionSDK) FileListV1(req actionsdk.FileV1Request) (files []actionsdk.File, err error)
- func (sdk ActionSDK) FileReadV1(file string) (string, error)
- func (sdk ActionSDK) FileRemoveV1(file string) error
- func (sdk ActionSDK) FileRenameV1(old string, new string) error
- func (sdk ActionSDK) FileWriteV1(file string, content []byte) error
- func (sdk ActionSDK) HealthV1() (actionsdk.HealthV1Response, error)
- func (sdk ActionSDK) LogV1(req actionsdk.LogV1Request) error
- func (sdk ActionSDK) ModuleCurrentV1() (*actionsdk.ProjectModule, error)
- func (sdk ActionSDK) ModuleExecutionContextV1() (*actionsdk.ModuleExecutionContextV1Response, error)
- func (sdk ActionSDK) ModuleListV1() ([]*actionsdk.ProjectModule, error)
- func (sdk ActionSDK) ProjectExecutionContextV1() (*actionsdk.ProjectExecutionContextV1Response, error)
- func (sdk ActionSDK) TARCreateV1(inputDirectory string, outputFile string) error
- func (sdk ActionSDK) TARExtractV1(archiveFile string, outputDirectory string) error
- func (sdk ActionSDK) UUIDV4() string
- func (sdk ActionSDK) VCSCommitByHashV1(request actionsdk.VCSCommitByHashRequest) (*actionsdk.VCSCommit, error)
- func (sdk ActionSDK) VCSCommitsV1(request actionsdk.VCSCommitsRequest) ([]*actionsdk.VCSCommit, error)
- func (sdk ActionSDK) VCSDiffV1(request actionsdk.VCSDiffRequest) ([]actionsdk.VCSDiff, error)
- func (sdk ActionSDK) VCSReleasesV1(request actionsdk.VCSReleasesRequest) ([]actionsdk.VCSRelease, error)
- func (sdk ActionSDK) VCSTagsV1() ([]actionsdk.VCSTag, error)
- func (sdk ActionSDK) ZIPCreateV1(inputDirectory string, outputFile string) error
- func (sdk ActionSDK) ZIPExtractV1(archiveFile string, outputDirectory string) error
- type Executor
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 (ActionSDK) ArtifactDownloadByteArrayV1 ¶ added in v0.9.0
func (sdk ActionSDK) ArtifactDownloadByteArrayV1(request actionsdk.ArtifactDownloadByteArrayRequest) (*actionsdk.ArtifactDownloadByteArrayResult, error)
func (ActionSDK) ArtifactDownloadV1 ¶ added in v0.9.0
func (sdk ActionSDK) ArtifactDownloadV1(request actionsdk.ArtifactDownloadRequest) (*actionsdk.ArtifactDownloadResult, error)
func (ActionSDK) ArtifactListV1 ¶ added in v0.9.0
func (ActionSDK) ArtifactUploadV1 ¶ added in v0.9.0
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
func (sdk ActionSDK) ExecuteCommandV1(req actionsdk.ExecuteCommandV1Request) (*actionsdk.ExecuteCommandV1Response, error)
ExecuteCommand command
func (ActionSDK) FileCopyV1 ¶ added in v0.9.0
func (ActionSDK) FileExistsV1 ¶ added in v0.9.0
func (ActionSDK) FileListV1 ¶ added in v0.9.0
func (ActionSDK) FileReadV1 ¶ added in v0.9.0
func (ActionSDK) FileRemoveV1 ¶ added in v0.9.0
func (ActionSDK) FileRenameV1 ¶ added in v0.9.0
func (ActionSDK) FileWriteV1 ¶ added in v0.9.0
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
TARCreate creates a tar archive of the directory at the given path.
func (ActionSDK) TARExtractV1 ¶ added in v0.9.0
TARExtract extracts a tar archive at the given path into the given directory.
func (ActionSDK) VCSCommitByHashV1 ¶ added in v0.9.0
func (ActionSDK) VCSCommitsV1 ¶ added in v0.9.0
func (ActionSDK) VCSReleasesV1 ¶ added in v0.9.0
func (sdk ActionSDK) VCSReleasesV1(request actionsdk.VCSReleasesRequest) ([]actionsdk.VCSRelease, error)
func (ActionSDK) ZIPCreateV1 ¶ added in v0.9.0
ZIPCreate creates a zip archive of the directory at the given path.
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) GetVersion ¶
Click to show internal directories.
Click to hide internal directories.