artifact

package
v0.0.0-...-6518c9c Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

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