artifact

package
v0.0.0-...-424292f Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(db gorp.SqlExecutor, id int64) error

Delete lock the artifact in database, then remove the actual object using storage driver, finally remove artifact from database if actual delete is performed

func InsertArtifact

func InsertArtifact(db gorp.SqlExecutor, pipelineID, applicationID int64, environmentID int64, art sdk.Artifact) error

InsertArtifact inserts a new artifact in database

func LoadArtifact

func LoadArtifact(db gorp.SqlExecutor, id int64) (*sdk.Artifact, error)

LoadArtifact Load artifact by ID

func LoadArtifactByApplicationID

func LoadArtifactByApplicationID(db gorp.SqlExecutor, applicationID int64) ([]sdk.Artifact, error)

LoadArtifactByApplicationID Load artifact by application ID

func LoadArtifactByHash

func LoadArtifactByHash(db gorp.SqlExecutor, hash string) (*sdk.Artifact, error)

LoadArtifactByHash retrieves an artiface using its download hash

func LoadArtifacts

func LoadArtifacts(db gorp.SqlExecutor, pipelineID int64, applicationID int64, environmentID int64, tag string) ([]sdk.Artifact, error)

LoadArtifacts Load artifact by pipeline ID

func LoadArtifactsByBuildNumber

func LoadArtifactsByBuildNumber(db gorp.SqlExecutor, pipelineID int64, applicationID int64, buildNumber int64, environmentID int64) ([]sdk.Artifact, error)

LoadArtifactsByBuildNumber Load artifact by pipeline ID and buildNUmber

func SaveFile

func SaveFile(db *gorp.DbMap, p *sdk.Pipeline, a *sdk.Application, art sdk.Artifact, content io.ReadCloser, e *sdk.Environment) error

SaveFile Insert file in db and write it in data directory

func SaveWorkflowFile

func SaveWorkflowFile(art *sdk.WorkflowNodeRunArtifact, content io.ReadCloser) error

SaveWorkflowFile Insert file in db and write it in data directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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