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) (string, error) GetLatestArtifactVersionAsString(ctx context.Context, artifactName string) (string, error) IsHandlingArtifactByName(artifactName string) (bool, error) UploadBinaryArtifact(ctx context.Context, uploadOptions *artifactparameteroptions.UploadArtifactOptions) 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.