artifacthandler

package
v0.412.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactHandler

type ArtifactHandler interface {
	DownloadAndValidateArtifact(downloadOptions *artifactparameteroptions.ArtifactDownloadOptions) (downloadedArtifactPath string, err error)
	MustDownloadAndValidateArtifact(downloadOptions *artifactparameteroptions.ArtifactDownloadOptions) (downloadedArtifactPath string)
	GetLatestArtifactVersionAsString(artifactName string, verbose bool) (latestVersion string, err error)
	IsHandlingArtifactByName(artifactName string) (isHandlingArtifactByName bool, err error)
	UploadBinaryArtifact(uploadOptions *artifactparameteroptions.UploadArtifactOptions) (err error)
}

An artifact handler is used to download or update artifacts. While artifacts could be some compiled binaries, docker images, vm images...

type ArtifactHandlersService

type ArtifactHandlersService struct{}

func ArtifactHandlers

func ArtifactHandlers() (a *ArtifactHandlersService)

func NewArtifactHandlersService

func NewArtifactHandlersService() (a *ArtifactHandlersService)

func (*ArtifactHandlersService) GetArtifactHandlerForArtifact

func (a *ArtifactHandlersService) GetArtifactHandlerForArtifact(artifactHandlers []ArtifactHandler, artifactName string) (handler ArtifactHandler, err error)

func (*ArtifactHandlersService) MustGetArtifactHandlerForArtifact

func (a *ArtifactHandlersService) MustGetArtifactHandlerForArtifact(artifactHandlers []ArtifactHandler, artifactName string) (handler ArtifactHandler)

Jump to

Keyboard shortcuts

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