artifacts

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactManager

type ArtifactManager interface {
	PublishArtifact(jobID, path string) (key string, err error)
	RetrieveArtifact(jobID string, keys []string) error
}

func NewDockerArtifactsManager

func NewDockerArtifactsManager(artifactsDir string) ArtifactManager

type DockerArtifactsManager

type DockerArtifactsManager struct {
	// contains filtered or unexported fields
}

func (*DockerArtifactsManager) PublishArtifact

func (d *DockerArtifactsManager) PublishArtifact(jobID, path string) (string, error)

PublishArtifact takes in a jobID and path inside the job and moves the artifact to the artifact store and returns a key that references the artifact.

func (*DockerArtifactsManager) RetrieveArtifact

func (d *DockerArtifactsManager) RetrieveArtifact(jobID string, keys []string) error

RetrieveArtifact takes in a jobID, keys slice and moves the artifact to the original path inside the job. If the keys is nil, all artifacts will be moved into the job. The original path is the path from where the artifact was pushed in PublishArtifact.

Jump to

Keyboard shortcuts

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