Documentation ¶
Index ¶
- Constants
- func CDNItemUpload(ctx context.Context, c *actionplugin.Common, cdnAddr string, signature string, ...) (*sdk.CDNItem, time.Duration, error)
- func CreateRunResult(ctx context.Context, c *actionplugin.Common, ...) (*workerruntime.V2AddResultResponse, error)
- func Error(s string)
- func Errorf(s string, i ...any)
- func ExtractFileInfoIntoRunResult(runResult *sdk.V2WorkflowRunResult, fi ArtifactoryFileInfo, ...)
- func GetArtifactoryRunResults(ctx context.Context, c *actionplugin.Common, pattern string) (*workerruntime.V2GetResultResponse, error)
- func GetIntegrationByName(ctx context.Context, c *actionplugin.Common, name string) (*sdk.ProjectIntegration, error)
- func GetJobContext(ctx context.Context, c *actionplugin.Common) (*sdk.WorkflowRunJobsContext, error)
- func GetJobRun(ctx context.Context, c *actionplugin.Common) (*sdk.V2WorkflowRunJob, error)
- func GetRunResults(workerHTTPPort int32) ([]sdk.WorkflowRunResult, error)
- func GetV2RunResults(ctx context.Context, c *actionplugin.Common, ...) (*workerruntime.V2GetResultResponse, error)
- func GetWorkerDirectories(ctx context.Context, c *actionplugin.Common) (*sdk.WorkerDirectories, error)
- func Log(s string)
- func Logf(s string, i ...any)
- func Println(a ...interface{})
- func PromoteArtifactoryRunResult(ctx context.Context, c *actionplugin.Common, r sdk.V2WorkflowRunResult, ...) error
- func RetrieveFilesToUpload(ctx context.Context, dirFS fs.FS, filePath string, ifNoFilesFound string) (glob.Results, map[string]int64, map[string]os.FileMode, map[string]fs.File, ...)
- func RunScript(ctx context.Context, chanRes chan *actionplugin.ActionResult, ...) error
- func Success(s string)
- func Successf(s string, i ...any)
- func UpdateRunResult(ctx context.Context, c *actionplugin.Common, ...) (*workerruntime.V2UpdateResultResponse, error)
- func UploadRunResult(ctx context.Context, actplugin *actionplugin.Common, ...) (*workerruntime.V2UpdateResultResponse, error)
- func Warn(s string)
- func Warnf(s string, i ...any)
- type ArtifactoryConfig
- type ArtifactoryFileInfo
- type ArtifactoryFolderInfo
- type ArtifactoryUploadResult
- type ChecksumResult
- type IntegrationCache
Constants ¶
View Source
const ( WarnColor = "\033[1;33m" ErrColor = "\033[1;31m" SuccessColor = "\033[1;32m" NoColor = "\033[0m" )
Variables ¶
This section is empty.
Functions ¶
func CDNItemUpload ¶ added in v0.53.1
func CreateRunResult ¶ added in v0.53.1
func CreateRunResult(ctx context.Context, c *actionplugin.Common, result *workerruntime.V2RunResultRequest) (*workerruntime.V2AddResultResponse, error)
func ExtractFileInfoIntoRunResult ¶ added in v0.53.1
func ExtractFileInfoIntoRunResult(runResult *sdk.V2WorkflowRunResult, fi ArtifactoryFileInfo, name, resultType, localRepository, repository, maturity string)
func GetArtifactoryRunResults ¶ added in v0.53.1
func GetArtifactoryRunResults(ctx context.Context, c *actionplugin.Common, pattern string) (*workerruntime.V2GetResultResponse, error)
func GetIntegrationByName ¶ added in v0.53.1
func GetIntegrationByName(ctx context.Context, c *actionplugin.Common, name string) (*sdk.ProjectIntegration, error)
func GetJobContext ¶ added in v0.53.1
func GetJobContext(ctx context.Context, c *actionplugin.Common) (*sdk.WorkflowRunJobsContext, error)
func GetJobRun ¶ added in v0.53.1
func GetJobRun(ctx context.Context, c *actionplugin.Common) (*sdk.V2WorkflowRunJob, error)
func GetRunResults ¶
func GetRunResults(workerHTTPPort int32) ([]sdk.WorkflowRunResult, error)
func GetV2RunResults ¶ added in v0.53.1
func GetV2RunResults(ctx context.Context, c *actionplugin.Common, filter workerruntime.V2FilterRunResult) (*workerruntime.V2GetResultResponse, error)
func GetWorkerDirectories ¶ added in v0.53.0
func GetWorkerDirectories(ctx context.Context, c *actionplugin.Common) (*sdk.WorkerDirectories, error)
func PromoteArtifactoryRunResult ¶ added in v0.53.1
func PromoteArtifactoryRunResult(ctx context.Context, c *actionplugin.Common, r sdk.V2WorkflowRunResult, promotionType sdk.WorkflowRunResultPromotionType, maturity string, props *utils.Properties) error
func RetrieveFilesToUpload ¶ added in v0.53.1
func RunScript ¶ added in v0.53.1
func RunScript(ctx context.Context, chanRes chan *actionplugin.ActionResult, workingDir string, content string) error
func UpdateRunResult ¶ added in v0.53.1
func UpdateRunResult(ctx context.Context, c *actionplugin.Common, result *workerruntime.V2RunResultRequest) (*workerruntime.V2UpdateResultResponse, error)
func UploadRunResult ¶ added in v0.53.1
func UploadRunResult(ctx context.Context, actplugin *actionplugin.Common, integrationCache *IntegrationCache, runresultReq *workerruntime.V2RunResultRequest, fileName string, f fs.File, size int64, fileChecksum ChecksumResult) (*workerruntime.V2UpdateResultResponse, error)
Types ¶
type ArtifactoryConfig ¶ added in v0.53.1
type ArtifactoryFileInfo ¶ added in v0.53.1
type ArtifactoryFileInfo struct { Repo string `json:"repo"` Path string `json:"path"` Created time.Time `json:"created"` CreatedBy string `json:"createdBy"` DownloadURI string `json:"downloadUri"` MimeType string `json:"mimeType"` Size string `json:"size"` Checksums struct { Sha1 string `json:"sha1"` Md5 string `json:"md5"` Sha256 string `json:"sha256"` } `json:"checksums"` OriginalChecksums struct { Sha1 string `json:"sha1"` Md5 string `json:"md5"` Sha256 string `json:"sha256"` } `json:"originalChecksums"` URI string `json:"uri"` }
func GetArtifactoryFileInfo ¶ added in v0.53.1
func GetArtifactoryFileInfo(ctx context.Context, c *actionplugin.Common, config ArtifactoryConfig, repo, path string) (*ArtifactoryFileInfo, error)
type ArtifactoryFolderInfo ¶ added in v0.53.1
type ArtifactoryFolderInfo struct { Repo string `json:"repo"` Path string `json:"path"` Created time.Time `json:"created"` CreatedBy string `json:"createdBy"` URI string `json:"uri"` Children []struct { URI string `json:"uri"` Folder bool `json:"folder"` } `json:"children"` }
func GetArtifactoryFolderInfo ¶ added in v0.53.1
func GetArtifactoryFolderInfo(ctx context.Context, c *actionplugin.Common, config ArtifactoryConfig, repo, path string) (*ArtifactoryFolderInfo, error)
type ArtifactoryUploadResult ¶ added in v0.53.1
type ArtifactoryUploadResult struct { Repo string `json:"repo"` Path string `json:"path"` Created time.Time `json:"created"` CreatedBy string `json:"createdBy"` DownloadURI string `json:"downloadUri"` MimeType string `json:"mimeType"` Size string `json:"size"` Checksums struct { Sha1 string `json:"sha1"` Md5 string `json:"md5"` Sha256 string `json:"sha256"` } `json:"checksums"` OriginalChecksums struct { Sha1 string `json:"sha1"` Md5 string `json:"md5"` Sha256 string `json:"sha256"` } `json:"originalChecksums"` URI string `json:"uri"` }
func ArtifactoryItemUpload ¶ added in v0.53.1
func ArtifactoryItemUpload(ctx context.Context, c *actionplugin.Common, runResult *sdk.V2WorkflowRunResult, integ sdk.ProjectIntegration, reader io.ReadSeeker) (*ArtifactoryUploadResult, time.Duration, error)
type ChecksumResult ¶ added in v0.53.1
type IntegrationCache ¶ added in v0.53.1
type IntegrationCache struct {
// contains filtered or unexported fields
}
func NewIntegrationCache ¶ added in v0.53.1
func NewIntegrationCache() *IntegrationCache
Directories ¶
Path | Synopsis |
---|---|
action
|
|
archive
Module
|
|
clair
Module
|
|
download
Module
|
|
group-tmpl
Module
|
|
kafka-publish
Module
|
|
marathon
Module
|
|
npm-audit-parser
Module
|
|
plugin-checkout
Module
|
|
ssh-cmd
Module
|
|
tmpl
Module
|
|
venom
Module
|
Click to show internal directories.
Click to hide internal directories.