Documentation ¶
Index ¶
- Variables
- func ShouldResetStagesStorageCache(err error) bool
- type ForEachDeleteStageOptions
- type StagesStorageManager
- func (m *StagesStorageManager) AtomicStoreStagesByDigestToCache(ctx context.Context, stageName, stageDigest string, stageIDs []image.StageID) error
- func (m *StagesStorageManager) CopySuitableByDigestStage(ctx context.Context, stageDesc *image.StageDescription, ...) (*image.StageDescription, error)
- func (m *StagesStorageManager) EnableParallel(parallelTasksLimit int)
- func (m *StagesStorageManager) FetchStage(ctx context.Context, stg stage.Interface) error
- func (m *StagesStorageManager) ForEachDeleteStage(ctx context.Context, options ForEachDeleteStageOptions, ...) error
- func (m *StagesStorageManager) ForEachGetImportMetadata(ctx context.Context, projectName string, ids []string, ...) error
- func (m *StagesStorageManager) ForEachRmImageMetadata(ctx context.Context, projectName, imageNameOrID string, ...) error
- func (m *StagesStorageManager) ForEachRmImportMetadata(ctx context.Context, projectName string, ids []string, ...) error
- func (m *StagesStorageManager) ForEachRmManagedImage(ctx context.Context, projectName string, managedImages []string, ...) error
- func (m *StagesStorageManager) GenerateStageUniqueID(digest string, stages []*image.StageDescription) (string, int64)
- func (m *StagesStorageManager) GetStageDescriptionList(ctx context.Context) ([]*image.StageDescription, error)
- func (m *StagesStorageManager) GetStagesByDigest(ctx context.Context, stageName, stageDigest string) ([]*image.StageDescription, error)
- func (m *StagesStorageManager) GetStagesByDigestFromStagesStorage(ctx context.Context, stageName, stageDigest string, ...) ([]*image.StageDescription, error)
- func (m *StagesStorageManager) MaxNumberOfWorkers() int
- func (m *StagesStorageManager) ResetStagesStorageCache(ctx context.Context) error
- func (m *StagesStorageManager) SelectSuitableStage(ctx context.Context, c stage.Conveyor, stg stage.Interface, ...) (*image.StageDescription, error)
- type StorageManager
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrShouldResetStagesStorageCache = errors.New("should reset storage cache")
Functions ¶
Types ¶
type ForEachDeleteStageOptions ¶
type ForEachDeleteStageOptions struct { storage.DeleteImageOptions storage.FilterStagesAndProcessRelatedDataOptions }
type StagesStorageManager ¶
type StagesStorageManager struct { ProjectName string StorageLockManager storage.LockManager StagesStorage storage.StagesStorage StagesStorageCache storage.StagesStorageCache SecondaryStagesStorageList []storage.StagesStorage // contains filtered or unexported fields }
func (*StagesStorageManager) AtomicStoreStagesByDigestToCache ¶ added in v1.2.0
func (*StagesStorageManager) CopySuitableByDigestStage ¶ added in v1.2.0
func (m *StagesStorageManager) CopySuitableByDigestStage(ctx context.Context, stageDesc *image.StageDescription, sourceStagesStorage, destinationStagesStorage storage.StagesStorage, containerRuntime container_runtime.ContainerRuntime) (*image.StageDescription, error)
func (*StagesStorageManager) EnableParallel ¶
func (m *StagesStorageManager) EnableParallel(parallelTasksLimit int)
func (*StagesStorageManager) FetchStage ¶
func (*StagesStorageManager) ForEachDeleteStage ¶
func (m *StagesStorageManager) ForEachDeleteStage(ctx context.Context, options ForEachDeleteStageOptions, stagesDescriptions []*image.StageDescription, f func(ctx context.Context, stageDesc *image.StageDescription, err error) error) error
func (*StagesStorageManager) ForEachGetImportMetadata ¶ added in v1.2.0
func (*StagesStorageManager) ForEachRmImageMetadata ¶ added in v1.2.0
func (*StagesStorageManager) ForEachRmImportMetadata ¶ added in v1.2.0
func (*StagesStorageManager) ForEachRmManagedImage ¶ added in v1.2.0
func (*StagesStorageManager) GenerateStageUniqueID ¶
func (m *StagesStorageManager) GenerateStageUniqueID(digest string, stages []*image.StageDescription) (string, int64)
func (*StagesStorageManager) GetStageDescriptionList ¶ added in v1.2.0
func (m *StagesStorageManager) GetStageDescriptionList(ctx context.Context) ([]*image.StageDescription, error)
func (*StagesStorageManager) GetStagesByDigest ¶ added in v1.2.0
func (m *StagesStorageManager) GetStagesByDigest(ctx context.Context, stageName, stageDigest string) ([]*image.StageDescription, error)
func (*StagesStorageManager) GetStagesByDigestFromStagesStorage ¶ added in v1.2.0
func (m *StagesStorageManager) GetStagesByDigestFromStagesStorage(ctx context.Context, stageName, stageDigest string, stagesStorage storage.StagesStorage) ([]*image.StageDescription, error)
func (*StagesStorageManager) MaxNumberOfWorkers ¶
func (m *StagesStorageManager) MaxNumberOfWorkers() int
func (*StagesStorageManager) ResetStagesStorageCache ¶
func (m *StagesStorageManager) ResetStagesStorageCache(ctx context.Context) error
func (*StagesStorageManager) SelectSuitableStage ¶
func (m *StagesStorageManager) SelectSuitableStage(ctx context.Context, c stage.Conveyor, stg stage.Interface, stages []*image.StageDescription) (*image.StageDescription, error)
type StorageManager ¶
type StorageManager struct {
*StagesStorageManager
}
func NewStorageManager ¶
func NewStorageManager(projectName string, stagesStorage storage.StagesStorage, secondaryStagesStorageList []storage.StagesStorage, storageLockManager storage.LockManager, stagesStorageCache storage.StagesStorageCache) *StorageManager
func (StorageManager) EnableParallel ¶ added in v1.2.0
func (m StorageManager) EnableParallel(parallelTasksLimit int)
func (StorageManager) MaxNumberOfWorkers ¶ added in v1.2.0
func (m StorageManager) MaxNumberOfWorkers() int
Click to show internal directories.
Click to hide internal directories.