Documentation
¶
Index ¶
- Constants
- type DeleteImageOptions
- type DockerImagesRepo
- func (repo *DockerImagesRepo) CreateImageRepo(imageName string) error
- func (repo *DockerImagesRepo) DeleteImageRepo(imageName string) error
- func (repo *DockerImagesRepo) DeleteRepoImage(_ DeleteImageOptions, repoImageList ...*image.Info) error
- func (repo *DockerImagesRepo) GetAllImageRepoTags(imageName string) ([]string, error)
- func (repo *DockerImagesRepo) GetRepoImage(imageName, tag string) (*image.Info, error)
- func (repo *DockerImagesRepo) GetRepoImages(imageNames []string) (map[string][]*image.Info, error)
- func (m DockerImagesRepo) ImageRepo(imageName string) string
- func (m DockerImagesRepo) ImageRepoTag(imageName, tag string) string
- func (m DockerImagesRepo) ImageRepoWithTag(imageName, tag string) string
- func (repo *DockerImagesRepo) ImageRepositoryName(imageName string) string
- func (repo *DockerImagesRepo) ImageRepositoryNameWithTag(imageName, tag string) string
- func (repo *DockerImagesRepo) ImageRepositoryTag(imageName, tag string) string
- func (m DockerImagesRepo) ImagesRepo() string
- func (m DockerImagesRepo) IsMonorepo() bool
- func (repo *DockerImagesRepo) PublishImage(publishImage *container_runtime.WerfImage) error
- func (repo *DockerImagesRepo) SelectRepoImages(imageNames []string, f func(string, *image.Info, error) (bool, error)) (map[string][]*image.Info, error)
- func (repo *DockerImagesRepo) String() string
- type DockerImagesRepoOptions
- type FileStagesStorageCache
- func (cache *FileStagesStorageCache) DeleteAllStages(projectName string) error
- func (cache *FileStagesStorageCache) DeleteStagesBySignature(projectName, signature string) error
- func (cache *FileStagesStorageCache) GetAllStages(projectName string) (bool, []image.StageID, error)
- func (cache *FileStagesStorageCache) GetStagesBySignature(projectName, signature string) (bool, []image.StageID, error)
- func (cache *FileStagesStorageCache) StoreStagesBySignature(projectName, signature string, stages []image.StageID) error
- func (cache *FileStagesStorageCache) String() string
- type GenericLockManager
- func (manager *GenericLockManager) LockDeployProcess(projectName string, releaseName string, kubeContextName string) (LockHandle, error)
- func (manager *GenericLockManager) LockImage(projectName, imageName string) (LockHandle, error)
- func (manager *GenericLockManager) LockStage(projectName, signature string) (LockHandle, error)
- func (manager *GenericLockManager) LockStageCache(projectName, signature string) (LockHandle, error)
- func (manager *GenericLockManager) LockStagesAndImages(projectName string, opts LockStagesAndImagesOptions) (LockHandle, error)
- func (manager *GenericLockManager) Unlock(lock LockHandle) error
- type ImagesRepo
- type ImagesRepoOptions
- type KubernetesStagesStorageCache
- func (cache *KubernetesStagesStorageCache) DeleteAllStages(projectName string) error
- func (cache *KubernetesStagesStorageCache) DeleteStagesBySignature(projectName, signature string) error
- func (cache *KubernetesStagesStorageCache) GetAllStages(projectName string) (bool, []image.StageID, error)
- func (cache *KubernetesStagesStorageCache) GetStagesBySignature(projectName, signature string) (bool, []image.StageID, error)
- func (cache *KubernetesStagesStorageCache) StoreStagesBySignature(projectName, signature string, stages []image.StageID) error
- func (cache *KubernetesStagesStorageCache) String() string
- type KubernetesStagesStorageCacheData
- type KuberntesLockManager
- func (manager *KuberntesLockManager) LockDeployProcess(projectName string, releaseName string, kubeContextName string) (LockHandle, error)
- func (manager *KuberntesLockManager) LockImage(projectName, imageName string) (LockHandle, error)
- func (manager *KuberntesLockManager) LockStage(projectName, signature string) (LockHandle, error)
- func (manager *KuberntesLockManager) LockStageCache(projectName, signature string) (LockHandle, error)
- func (manager *KuberntesLockManager) LockStagesAndImages(projectName string, opts LockStagesAndImagesOptions) (LockHandle, error)
- func (manager *KuberntesLockManager) Unlock(lock LockHandle) error
- type LocalDockerServerStagesStorage
- func (storage *LocalDockerServerStagesStorage) AddManagedImage(projectName, imageName string) error
- func (storage *LocalDockerServerStagesStorage) Address() string
- func (storage *LocalDockerServerStagesStorage) ConstructStageImageName(projectName, signature string, uniqueID int64) string
- func (storage *LocalDockerServerStagesStorage) CreateRepo() error
- func (storage *LocalDockerServerStagesStorage) DeleteRepo() error
- func (storage *LocalDockerServerStagesStorage) DeleteStages(options DeleteImageOptions, stages ...*image.StageDescription) error
- func (storage *LocalDockerServerStagesStorage) FetchImage(_ container_runtime.Image) error
- func (storage *LocalDockerServerStagesStorage) GetAllStages(projectName string) ([]image.StageID, error)
- func (storage *LocalDockerServerStagesStorage) GetManagedImages(projectName string) ([]string, error)
- func (storage *LocalDockerServerStagesStorage) GetStageDescription(projectName, signature string, uniqueID int64) (*image.StageDescription, error)
- func (storage *LocalDockerServerStagesStorage) GetStagesBySignature(projectName, signature string) ([]image.StageID, error)
- func (storage *LocalDockerServerStagesStorage) RmManagedImage(projectName, imageName string) error
- func (storage *LocalDockerServerStagesStorage) ShouldFetchImage(_ container_runtime.Image) (bool, error)
- func (storage *LocalDockerServerStagesStorage) StoreImage(img container_runtime.Image) error
- func (storage *LocalDockerServerStagesStorage) String() string
- type LockHandle
- type LockManager
- type LockStagesAndImagesOptions
- type RepoStagesStorage
- func (storage *RepoStagesStorage) AddManagedImage(projectName, imageName string) error
- func (storage *RepoStagesStorage) Address() string
- func (storage *RepoStagesStorage) ConstructStageImageName(projectName, signature string, uniqueID int64) string
- func (storage *RepoStagesStorage) CreateRepo() error
- func (storage *RepoStagesStorage) DeleteRepo() error
- func (storage *RepoStagesStorage) DeleteStages(options DeleteImageOptions, stages ...*image.StageDescription) error
- func (storage *RepoStagesStorage) FetchImage(img container_runtime.Image) error
- func (storage *RepoStagesStorage) GetAllStages(projectName string) ([]image.StageID, error)
- func (storage *RepoStagesStorage) GetManagedImages(projectName string) ([]string, error)
- func (storage *RepoStagesStorage) GetStageDescription(projectName, signature string, uniqueID int64) (*image.StageDescription, error)
- func (storage *RepoStagesStorage) GetStagesBySignature(projectName, signature string) ([]image.StageID, error)
- func (storage *RepoStagesStorage) RmManagedImage(projectName, imageName string) error
- func (storage *RepoStagesStorage) ShouldFetchImage(img container_runtime.Image) (bool, error)
- func (storage *RepoStagesStorage) StoreImage(img container_runtime.Image) error
- func (storage *RepoStagesStorage) String() string
- type RepoStagesStorageOptions
- type StagesStorage
- type StagesStorageCache
- type StagesStorageCacheRecord
- type StagesStorageOptions
Constants ¶
View Source
const ( LocalStage_ImageRepoPrefix = "werf-stages-storage/" LocalStage_ImageRepoFormat = "werf-stages-storage/%s" LocalStage_ImageFormat = "werf-stages-storage/%s:%s-%d" LocalManagedImageRecord_ImageNameFormat = "werf-managed-images/%s" LocalManagedImageRecord_ImageFormat = "werf-managed-images/%s:%s" )
View Source
const ( RepoStage_ImageFormat = "%s:%s-%d" RepoManagedImageRecord_ImageTagPrefix = "managed-image-" RepoManagedImageRecord_ImageNameFormat = "%s:managed-image-%s" )
View Source
const ( LocalStorageAddress = ":local" DefaultKubernetesStorageAddress = "kubernetes://werf-synchronization" NamelessImageRecordTag = "__nameless__" )
View Source
const (
StagesStorageCacheConfigMapKey = "stagesStorageCache"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteImageOptions ¶ added in v1.1.9
type DockerImagesRepo ¶ added in v1.1.9
type DockerImagesRepo struct {
docker_registry.DockerRegistry
// contains filtered or unexported fields
}
func (*DockerImagesRepo) CreateImageRepo ¶ added in v1.1.9
func (repo *DockerImagesRepo) CreateImageRepo(imageName string) error
func (*DockerImagesRepo) DeleteImageRepo ¶ added in v1.1.9
func (repo *DockerImagesRepo) DeleteImageRepo(imageName string) error
func (*DockerImagesRepo) DeleteRepoImage ¶ added in v1.1.9
func (repo *DockerImagesRepo) DeleteRepoImage(_ DeleteImageOptions, repoImageList ...*image.Info) error
func (*DockerImagesRepo) GetAllImageRepoTags ¶ added in v1.1.9
func (repo *DockerImagesRepo) GetAllImageRepoTags(imageName string) ([]string, error)
func (*DockerImagesRepo) GetRepoImage ¶ added in v1.1.9
func (repo *DockerImagesRepo) GetRepoImage(imageName, tag string) (*image.Info, error)
func (*DockerImagesRepo) GetRepoImages ¶ added in v1.1.9
func (DockerImagesRepo) ImageRepoTag ¶ added in v1.1.9
func (DockerImagesRepo) ImageRepoWithTag ¶ added in v1.1.9
func (*DockerImagesRepo) ImageRepositoryName ¶ added in v1.1.9
func (repo *DockerImagesRepo) ImageRepositoryName(imageName string) string
func (*DockerImagesRepo) ImageRepositoryNameWithTag ¶ added in v1.1.9
func (repo *DockerImagesRepo) ImageRepositoryNameWithTag(imageName, tag string) string
func (*DockerImagesRepo) ImageRepositoryTag ¶ added in v1.1.9
func (repo *DockerImagesRepo) ImageRepositoryTag(imageName, tag string) string
func (DockerImagesRepo) ImagesRepo ¶ added in v1.1.9
func (m DockerImagesRepo) ImagesRepo() string
func (DockerImagesRepo) IsMonorepo ¶ added in v1.1.9
func (m DockerImagesRepo) IsMonorepo() bool
func (*DockerImagesRepo) PublishImage ¶ added in v1.1.9
func (repo *DockerImagesRepo) PublishImage(publishImage *container_runtime.WerfImage) error
FIXME: use docker-registry object
func (*DockerImagesRepo) SelectRepoImages ¶ added in v1.1.10
func (*DockerImagesRepo) String ¶ added in v1.1.9
func (repo *DockerImagesRepo) String() string
type DockerImagesRepoOptions ¶ added in v1.1.9
type DockerImagesRepoOptions struct {
docker_registry.DockerRegistryOptions
Implementation string
}
type FileStagesStorageCache ¶
type FileStagesStorageCache struct {
CacheDir string
}
func NewFileStagesStorageCache ¶
func NewFileStagesStorageCache(cacheDir string) *FileStagesStorageCache
func (*FileStagesStorageCache) DeleteAllStages ¶ added in v1.1.10
func (cache *FileStagesStorageCache) DeleteAllStages(projectName string) error
func (*FileStagesStorageCache) DeleteStagesBySignature ¶ added in v1.1.9
func (cache *FileStagesStorageCache) DeleteStagesBySignature(projectName, signature string) error
func (*FileStagesStorageCache) GetAllStages ¶ added in v1.1.9
func (*FileStagesStorageCache) GetStagesBySignature ¶ added in v1.1.9
func (*FileStagesStorageCache) StoreStagesBySignature ¶ added in v1.1.9
func (cache *FileStagesStorageCache) StoreStagesBySignature(projectName, signature string, stages []image.StageID) error
func (*FileStagesStorageCache) String ¶ added in v1.1.10
func (cache *FileStagesStorageCache) String() string
type GenericLockManager ¶ added in v1.1.10
func NewGenericLockManager ¶ added in v1.1.10
func NewGenericLockManager(locker lockgate.Locker) *GenericLockManager
func (*GenericLockManager) LockDeployProcess ¶ added in v1.1.10
func (manager *GenericLockManager) LockDeployProcess(projectName string, releaseName string, kubeContextName string) (LockHandle, error)
func (*GenericLockManager) LockImage ¶ added in v1.1.10
func (manager *GenericLockManager) LockImage(projectName, imageName string) (LockHandle, error)
func (*GenericLockManager) LockStage ¶ added in v1.1.10
func (manager *GenericLockManager) LockStage(projectName, signature string) (LockHandle, error)
func (*GenericLockManager) LockStageCache ¶ added in v1.1.10
func (manager *GenericLockManager) LockStageCache(projectName, signature string) (LockHandle, error)
func (*GenericLockManager) LockStagesAndImages ¶ added in v1.1.10
func (manager *GenericLockManager) LockStagesAndImages(projectName string, opts LockStagesAndImagesOptions) (LockHandle, error)
func (*GenericLockManager) Unlock ¶ added in v1.1.10
func (manager *GenericLockManager) Unlock(lock LockHandle) error
type ImagesRepo ¶ added in v1.1.9
type ImagesRepo interface {
GetRepoImage(imageName, tag string) (*image.Info, error)
GetRepoImages(imageNames []string) (map[string][]*image.Info, error)
SelectRepoImages(imageNames []string, f func(string, *image.Info, error) (bool, error)) (map[string][]*image.Info, error)
DeleteRepoImage(_ DeleteImageOptions, repoImageList ...*image.Info) error
GetAllImageRepoTags(imageName string) ([]string, error)
PublishImage(publishImage *container_runtime.WerfImage) error
CreateImageRepo(imageName string) error
DeleteImageRepo(imageName string) error
ImageRepositoryName(imageName string) string
ImageRepositoryNameWithTag(imageName, tag string) string
ImageRepositoryTag(imageName, tag string) string
String() string
}
func NewDockerImagesRepo ¶ added in v1.1.9
func NewDockerImagesRepo(projectName, imagesRepoAddress, imagesRepoMode string, options DockerImagesRepoOptions) (ImagesRepo, error)
func NewImagesRepo ¶ added in v1.1.9
func NewImagesRepo(projectName, imagesRepoAddress, imagesRepoMode string, options ImagesRepoOptions) (ImagesRepo, error)
type ImagesRepoOptions ¶ added in v1.1.9
type ImagesRepoOptions struct {
DockerImagesRepoOptions
}
type KubernetesStagesStorageCache ¶ added in v1.1.10
type KubernetesStagesStorageCache struct {
Namespace string
}
func NewKubernetesStagesStorageCache ¶ added in v1.1.10
func NewKubernetesStagesStorageCache(namespace string) *KubernetesStagesStorageCache
func (*KubernetesStagesStorageCache) DeleteAllStages ¶ added in v1.1.10
func (cache *KubernetesStagesStorageCache) DeleteAllStages(projectName string) error
func (*KubernetesStagesStorageCache) DeleteStagesBySignature ¶ added in v1.1.10
func (cache *KubernetesStagesStorageCache) DeleteStagesBySignature(projectName, signature string) error
func (*KubernetesStagesStorageCache) GetAllStages ¶ added in v1.1.10
func (*KubernetesStagesStorageCache) GetStagesBySignature ¶ added in v1.1.10
func (*KubernetesStagesStorageCache) StoreStagesBySignature ¶ added in v1.1.10
func (cache *KubernetesStagesStorageCache) StoreStagesBySignature(projectName, signature string, stages []image.StageID) error
func (*KubernetesStagesStorageCache) String ¶ added in v1.1.10
func (cache *KubernetesStagesStorageCache) String() string
type KubernetesStagesStorageCacheData ¶ added in v1.1.10
type KuberntesLockManager ¶ added in v1.1.10
type KuberntesLockManager struct {
Namespace string
LockerPerProject map[string]lockgate.Locker
// contains filtered or unexported fields
}
func NewKubernetesLockManager ¶ added in v1.1.10
func NewKubernetesLockManager(namespace string) *KuberntesLockManager
func (*KuberntesLockManager) LockDeployProcess ¶ added in v1.1.10
func (manager *KuberntesLockManager) LockDeployProcess(projectName string, releaseName string, kubeContextName string) (LockHandle, error)
func (*KuberntesLockManager) LockImage ¶ added in v1.1.10
func (manager *KuberntesLockManager) LockImage(projectName, imageName string) (LockHandle, error)
func (*KuberntesLockManager) LockStage ¶ added in v1.1.10
func (manager *KuberntesLockManager) LockStage(projectName, signature string) (LockHandle, error)
func (*KuberntesLockManager) LockStageCache ¶ added in v1.1.10
func (manager *KuberntesLockManager) LockStageCache(projectName, signature string) (LockHandle, error)
func (*KuberntesLockManager) LockStagesAndImages ¶ added in v1.1.10
func (manager *KuberntesLockManager) LockStagesAndImages(projectName string, opts LockStagesAndImagesOptions) (LockHandle, error)
func (*KuberntesLockManager) Unlock ¶ added in v1.1.10
func (manager *KuberntesLockManager) Unlock(lock LockHandle) error
type LocalDockerServerStagesStorage ¶ added in v1.1.9
type LocalDockerServerStagesStorage struct {
// Local stages storage is compatible only with docker-server backed runtime
LocalDockerServerRuntime *container_runtime.LocalDockerServerRuntime
}
func NewLocalDockerServerStagesStorage ¶ added in v1.1.9
func NewLocalDockerServerStagesStorage(localDockerServerRuntime *container_runtime.LocalDockerServerRuntime) *LocalDockerServerStagesStorage
func (*LocalDockerServerStagesStorage) AddManagedImage ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) AddManagedImage(projectName, imageName string) error
func (*LocalDockerServerStagesStorage) Address ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) Address() string
func (*LocalDockerServerStagesStorage) ConstructStageImageName ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) ConstructStageImageName(projectName, signature string, uniqueID int64) string
func (*LocalDockerServerStagesStorage) CreateRepo ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) CreateRepo() error
func (*LocalDockerServerStagesStorage) DeleteRepo ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) DeleteRepo() error
func (*LocalDockerServerStagesStorage) DeleteStages ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) DeleteStages(options DeleteImageOptions, stages ...*image.StageDescription) error
func (*LocalDockerServerStagesStorage) FetchImage ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) FetchImage(_ container_runtime.Image) error
func (*LocalDockerServerStagesStorage) GetAllStages ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) GetAllStages(projectName string) ([]image.StageID, error)
func (*LocalDockerServerStagesStorage) GetManagedImages ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) GetManagedImages(projectName string) ([]string, error)
func (*LocalDockerServerStagesStorage) GetStageDescription ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) GetStageDescription(projectName, signature string, uniqueID int64) (*image.StageDescription, error)
func (*LocalDockerServerStagesStorage) GetStagesBySignature ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) GetStagesBySignature(projectName, signature string) ([]image.StageID, error)
func (*LocalDockerServerStagesStorage) RmManagedImage ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) RmManagedImage(projectName, imageName string) error
func (*LocalDockerServerStagesStorage) ShouldFetchImage ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) ShouldFetchImage(_ container_runtime.Image) (bool, error)
func (*LocalDockerServerStagesStorage) StoreImage ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) StoreImage(img container_runtime.Image) error
func (*LocalDockerServerStagesStorage) String ¶ added in v1.1.9
func (storage *LocalDockerServerStagesStorage) String() string
type LockHandle ¶ added in v1.1.10
type LockHandle struct {
ProjectName string
LockgateHandle lockgate.LockHandle
}
type LockManager ¶
type LockManager interface {
LockStage(projectName, signature string) (LockHandle, error)
LockStageCache(projectName, signature string) (LockHandle, error)
LockImage(projectName, imageName string) (LockHandle, error)
LockStagesAndImages(projectName string, opts LockStagesAndImagesOptions) (LockHandle, error)
LockDeployProcess(projectName string, releaseName string, kubeContextName string) (LockHandle, error)
Unlock(lock LockHandle) error
}
type LockStagesAndImagesOptions ¶ added in v1.1.9
type LockStagesAndImagesOptions struct {
GetOrCreateImagesOnly bool
}
type RepoStagesStorage ¶ added in v1.1.9
type RepoStagesStorage struct {
RepoAddress string
DockerRegistry docker_registry.DockerRegistry
ContainerRuntime container_runtime.ContainerRuntime
}
func NewRepoStagesStorage ¶ added in v1.1.9
func NewRepoStagesStorage(repoAddress string, containerRuntime container_runtime.ContainerRuntime, options RepoStagesStorageOptions) (*RepoStagesStorage, error)
func (*RepoStagesStorage) AddManagedImage ¶ added in v1.1.9
func (storage *RepoStagesStorage) AddManagedImage(projectName, imageName string) error
func (*RepoStagesStorage) Address ¶ added in v1.1.9
func (storage *RepoStagesStorage) Address() string
func (*RepoStagesStorage) ConstructStageImageName ¶ added in v1.1.9
func (storage *RepoStagesStorage) ConstructStageImageName(projectName, signature string, uniqueID int64) string
func (*RepoStagesStorage) CreateRepo ¶ added in v1.1.9
func (storage *RepoStagesStorage) CreateRepo() error
func (*RepoStagesStorage) DeleteRepo ¶ added in v1.1.9
func (storage *RepoStagesStorage) DeleteRepo() error
func (*RepoStagesStorage) DeleteStages ¶ added in v1.1.9
func (storage *RepoStagesStorage) DeleteStages(options DeleteImageOptions, stages ...*image.StageDescription) error
func (*RepoStagesStorage) FetchImage ¶ added in v1.1.9
func (storage *RepoStagesStorage) FetchImage(img container_runtime.Image) error
func (*RepoStagesStorage) GetAllStages ¶ added in v1.1.9
func (storage *RepoStagesStorage) GetAllStages(projectName string) ([]image.StageID, error)
func (*RepoStagesStorage) GetManagedImages ¶ added in v1.1.9
func (storage *RepoStagesStorage) GetManagedImages(projectName string) ([]string, error)
func (*RepoStagesStorage) GetStageDescription ¶ added in v1.1.9
func (storage *RepoStagesStorage) GetStageDescription(projectName, signature string, uniqueID int64) (*image.StageDescription, error)
func (*RepoStagesStorage) GetStagesBySignature ¶ added in v1.1.9
func (storage *RepoStagesStorage) GetStagesBySignature(projectName, signature string) ([]image.StageID, error)
func (*RepoStagesStorage) RmManagedImage ¶ added in v1.1.9
func (storage *RepoStagesStorage) RmManagedImage(projectName, imageName string) error
func (*RepoStagesStorage) ShouldFetchImage ¶ added in v1.1.9
func (storage *RepoStagesStorage) ShouldFetchImage(img container_runtime.Image) (bool, error)
func (*RepoStagesStorage) StoreImage ¶ added in v1.1.9
func (storage *RepoStagesStorage) StoreImage(img container_runtime.Image) error
func (*RepoStagesStorage) String ¶ added in v1.1.9
func (storage *RepoStagesStorage) String() string
type RepoStagesStorageOptions ¶ added in v1.1.9
type RepoStagesStorageOptions struct {
docker_registry.DockerRegistryOptions
Implementation string
}
type StagesStorage ¶
type StagesStorage interface {
GetAllStages(projectName string) ([]image.StageID, error)
GetStagesBySignature(projectName, signature string) ([]image.StageID, error)
GetStageDescription(projectName, signature string, uniqueID int64) (*image.StageDescription, error)
DeleteStages(options DeleteImageOptions, stages ...*image.StageDescription) error
ConstructStageImageName(projectName, signature string, uniqueID int64) string
// FetchImage will create a local image in the container-runtime
FetchImage(img container_runtime.Image) error
// StoreImage will store a local image into the container-runtime, local built image should exist prior running store
StoreImage(img container_runtime.Image) error
ShouldFetchImage(img container_runtime.Image) (bool, error)
CreateRepo() error
DeleteRepo() error
AddManagedImage(projectName, imageName string) error
RmManagedImage(projectName, imageName string) error
GetManagedImages(projectName string) ([]string, error)
String() string
Address() string
}
func NewStagesStorage ¶ added in v1.1.9
func NewStagesStorage(stagesStorageAddress string, containerRuntime container_runtime.ContainerRuntime, options StagesStorageOptions) (StagesStorage, error)
type StagesStorageCache ¶
type StagesStorageCache interface {
GetAllStages(projectName string) (bool, []image.StageID, error)
DeleteAllStages(projectName string) error
GetStagesBySignature(projectName, signature string) (bool, []image.StageID, error)
StoreStagesBySignature(projectName, signature string, stages []image.StageID) error
DeleteStagesBySignature(projectName, signature string) error
String() string
}
type StagesStorageCacheRecord ¶ added in v1.1.9
type StagesStorageOptions ¶ added in v1.1.9
type StagesStorageOptions struct {
RepoStagesStorageOptions
}
Source Files
¶
- delete_image_options.go
- docker_images_repo.go
- file_stages_storage_cache.go
- generic_lock_manager.go
- images_repo.go
- images_repo_manager.go
- kubernetes_helpers.go
- kubernetes_lock_manager.go
- kubernetes_stages_storage_cache.go
- local_docker_server_stages_storage.go
- lock_manager.go
- repo_stages_storage.go
- stages_storage.go
- stages_storage_cache.go
Click to show internal directories.
Click to hide internal directories.