-
Notifications
You must be signed in to change notification settings - Fork 199
/
conveyor.go
32 lines (23 loc) · 900 Bytes
/
conveyor.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package image
import (
"sync"
"github.com/werf/werf/pkg/build/stage"
"github.com/werf/werf/pkg/git_repo"
)
type Conveyor interface {
stage.Conveyor
GetImage(targetPlatform, name string) *Image
GetOrCreateStageImage(name string, prevStageImage *stage.StageImage, stg stage.Interface, img *Image) *stage.StageImage
GetForcedTargetPlatforms() []string
GetTargetPlatforms() ([]string, error)
GetImageTargetPlatforms(imageName string) ([]string, error)
IsBaseImagesRepoIdsCacheExist(key string) bool
GetBaseImagesRepoIdsCache(key string) string
SetBaseImagesRepoIdsCache(key, value string)
IsBaseImagesRepoErrCacheExist(key string) bool
GetBaseImagesRepoErrCache(key string) error
SetBaseImagesRepoErrCache(key string, err error)
GetServiceRWMutex(service string) *sync.RWMutex
SetRemoteGitRepo(key string, repo *git_repo.Remote)
GetRemoteGitRepo(key string) *git_repo.Remote
}