@@ -28,16 +28,16 @@ const relativePathKey = "Relative Path"
2828
2929type (
3030 // GetArtefactManagersFirstPageFunc defines the function which can retrieve the first page of artefact managers.
31- GetArtefactManagersFirstPageFunc [D LinkData , L Links [D ], C Collection [D , L ]] = func (ctx context.Context , job string ) (C , * http.Response , error )
31+ GetArtefactManagersFirstPageFunc [D ILinkData , L ILinks [D ], C ICollection [D , L ]] = func (ctx context.Context , job string ) (C , * http.Response , error )
3232 // FollowLinkToArtefactManagersPageFunc is a function able to follow a link to an artefact manager page.
33- FollowLinkToArtefactManagersPageFunc [D LinkData , L Links [D ], C Collection [D , L ]] = func (ctx context.Context , link D ) (C , * http.Response , error )
33+ FollowLinkToArtefactManagersPageFunc [D ILinkData , L ILinks [D ], C ICollection [D , L ]] = func (ctx context.Context , link D ) (C , * http.Response , error )
3434 // GetArtefactManagerFunc is a function which retrieves information about an artefact manager.
35- GetArtefactManagerFunc [M Manager ] = func (ctx context.Context , job , artefact string ) (M , * http.Response , error )
35+ GetArtefactManagerFunc [M IManager ] = func (ctx context.Context , job , artefact string ) (M , * http.Response , error )
3636 // GetArtefactContentFunc is a function able to return the content of any artefact managers.
3737 GetArtefactContentFunc = func (ctx context.Context , job , artefactID string ) (* os.File , * http.Response , error )
3838)
3939
40- func determineArtefactDestination [M Manager ](outputDir string , maintainTree bool , item M ) (artefactFileName string , destinationDir string , err error ) {
40+ func determineArtefactDestination [M IManager ](outputDir string , maintainTree bool , item M ) (artefactFileName string , destinationDir string , err error ) {
4141 if any (item ) == nil {
4242 err = fmt .Errorf ("%w: missing artefact item" , commonerrors .ErrUndefined )
4343 return
@@ -76,10 +76,10 @@ func determineArtefactDestination[M Manager](outputDir string, maintainTree bool
7676}
7777
7878type ArtefactManager [
79- M Manager ,
80- D LinkData ,
81- L Links [D ],
82- C Collection [D , L ],
79+ M IManager ,
80+ D ILinkData ,
81+ L ILinks [D ],
82+ C ICollection [D , L ],
8383] struct {
8484 getArtefactManagerFunc GetArtefactManagerFunc [M ]
8585 getArtefactContentFunc GetArtefactContentFunc
@@ -89,10 +89,10 @@ type ArtefactManager[
8989
9090// NewArtefactManager returns an artefact manager.
9191func NewArtefactManager [
92- M Manager ,
93- D LinkData ,
94- L Links [D ],
95- C Collection [D , L ],
92+ M IManager ,
93+ D ILinkData ,
94+ L ILinks [D ],
95+ C ICollection [D , L ],
9696](
9797 getArtefactManagersFirstPage GetArtefactManagersFirstPageFunc [D , L , C ],
9898 getArtefactsManagersPage FollowLinkToArtefactManagersPageFunc [D , L , C ],
0 commit comments