artefacts

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 15 Imported by: ? 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

This section is empty.

Types

type ArtefactManager

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

func (*ArtefactManager) DownloadAllJobArtefacts added in v1.8.0

func (m *ArtefactManager) DownloadAllJobArtefacts(ctx context.Context, jobName string, outputDirectory string) (err error)

func (*ArtefactManager) DownloadJobArtefact

func (m *ArtefactManager) DownloadJobArtefact(ctx context.Context, jobName string, outputDirectory string, artefactManager *client.ArtefactManagerItem) (err error)
func (m *ArtefactManager) DownloadJobArtefactFromLink(ctx context.Context, jobName string, outputDirectory string, artefactManagerItem *client.HalLinkData) (err error)

func (*ArtefactManager) ListJobArtefacts added in v1.8.0

func (m *ArtefactManager) ListJobArtefacts(ctx context.Context, jobName string) (pagination.IPaginatorAndPageFetcher, error)

type FollowLinkToArtefactManagersPageFunc added in v1.8.0

type FollowLinkToArtefactManagersPageFunc = func(ctx context.Context, link *client.HalLinkData) (*client.ArtefactManagerCollection, *http.Response, error)

FollowLinkToArtefactManagersPageFunc is a function able to follow a link to an artefact manager page.

type GetArtefactContentFunc added in v1.8.0

type GetArtefactContentFunc = func(ctx context.Context, job, artefactID string) (*os.File, *http.Response, error)

GetArtefactContentFunc is a function able to return the content of any artefact managers.

type GetArtefactManagerFunc added in v1.8.0

type GetArtefactManagerFunc = func(ctx context.Context, job, artefact string) (*client.ArtefactManagerItem, *http.Response, error)

GetArtefactManagerFunc is a function which retrieves information about an artefact manager.

type GetArtefactManagersFirstPageFunc added in v1.8.0

type GetArtefactManagersFirstPageFunc = func(ctx context.Context, job string) (*client.ArtefactManagerCollection, *http.Response, error)

GetArtefactManagersFirstPageFunc defines the function which can retrieve the first page of artefact managers.

type IArtefactManager

type IArtefactManager interface {
	// DownloadJobArtefactFromLink downloads a specific artefact into the output directory from a particular link.
	DownloadJobArtefactFromLink(ctx context.Context, jobName string, outputDirectory string, artefactManagerItemLink *client.HalLinkData) error
	// DownloadJobArtefact downloads a specific artefact into the output directory.
	DownloadJobArtefact(ctx context.Context, jobName string, outputDirectory string, artefactManager *client.ArtefactManagerItem) error
	// ListJobArtefacts lists all artefact managers associated with a particular job.
	ListJobArtefacts(ctx context.Context, jobName string) (pagination.IPaginatorAndPageFetcher, error)
	// DownloadAllJobArtefacts downloads all the artefacts produced for a particular job and puts them in an output directory.
	DownloadAllJobArtefacts(ctx context.Context, jobName string, outputDirectory string) error
}

func NewArtefactManager

func NewArtefactManager(getArtefactManagersFirstPage GetArtefactManagersFirstPageFunc, getArtefactsManagersPage FollowLinkToArtefactManagersPageFunc, getArtefactManager GetArtefactManagerFunc, getOutputArtefact GetArtefactContentFunc) IArtefactManager

NewArtefactManager returns an artefact manager.

Jump to

Keyboard shortcuts

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