 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type ArtifactHandler
- type ArtifactHandlersService
- func (a *ArtifactHandlersService) GetArtifactHandlerForArtifact(artifactHandlers []ArtifactHandler, artifactName string) (handler ArtifactHandler, err error)
- func (a *ArtifactHandlersService) MustGetArtifactHandlerForArtifact(artifactHandlers []ArtifactHandler, artifactName string) (handler ArtifactHandler)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactHandler ¶
type ArtifactHandler interface {
	DownloadAndValidateArtifact(ctx context.Context, downloadOptions *artifactparameteroptions.ArtifactDownloadOptions) (downloadedArtifactPath string, err error)
	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)
 Click to show internal directories. 
   Click to hide internal directories.