artifacts

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 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 takes in a jobID and path inside the job and
	// moves the artifact to the artifact stores and returns a key
	// that references the artifact
	PublishArtifact(jobID, path string) (key string, err 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
	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)

func (*DockerArtifactsManager) RetrieveArtifact

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

Jump to

Keyboard shortcuts

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