artifact

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBuiltinArtifactActions

func CreateBuiltinArtifactActions(db *sql.DB) error

CreateBuiltinArtifactActions Create Action BuiltinArtifact

func DeleteArtifact

func DeleteArtifact(db database.QueryExecuter, id int64) error

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

func LoadArtifact

func LoadArtifact(db *sql.DB, id int64) (*sdk.Artifact, error)

LoadArtifact Load artifact by ID

func LoadArtifactByHash

func LoadArtifactByHash(db *sql.DB, hash string) (*sdk.Artifact, error)

LoadArtifactByHash retrieves an artiface using its download hash

func LoadArtifacts

func LoadArtifacts(db *sql.DB, pipelineID int64, applicationID int64, environmentID int64, tag string) ([]sdk.Artifact, error)

LoadArtifacts Load artifact by pipeline ID

func LoadArtifactsByBuildNumber

func LoadArtifactsByBuildNumber(db *sql.DB, pipelineID int64, applicationID int64, buildNumber int64, environmentID int64) ([]sdk.Artifact, error)

LoadArtifactsByBuildNumber Load artifact by pipeline ID and buildNUmber

func SaveFile

func SaveFile(db *sql.DB, 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 StreamFile

func StreamFile(w io.Writer, art sdk.Artifact) error

StreamFile Stream artifact

Types

This section is empty.

Jump to

Keyboard shortcuts

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