Documentation
¶
Index ¶
- func Cleanup(ctx context.Context, projectName string, imagesRepo storage.ImagesRepo, ...) error
- func ImagesCleanup(ctx context.Context, projectName string, imagesRepo storage.ImagesRepo, ...) error
- func ImagesPurge(ctx context.Context, projectName string, imagesRepo storage.ImagesRepo, ...) error
- func Purge(ctx context.Context, projectName string, imagesRepo storage.ImagesRepo, ...) error
- func StagesCleanup(ctx context.Context, projectName string, imagesRepo storage.ImagesRepo, ...) error
- func StagesPurge(ctx context.Context, projectName string, ...) error
- type CleanupOptions
- type GitRepo
- type ImagesCleanupOptions
- type ImagesCleanupPolicies
- type ImagesPurgeOptions
- type PurgeOptions
- type StagesCleanupOptions
- type StagesPurgeOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶
func Cleanup(ctx context.Context, projectName string, imagesRepo storage.ImagesRepo, storageLockManager storage.LockManager, stagesManager *stages_manager.StagesManager, options CleanupOptions) error
func ImagesCleanup ¶
func ImagesCleanup(ctx context.Context, projectName string, imagesRepo storage.ImagesRepo, stagesManager *stages_manager.StagesManager, storageLockManager storage.LockManager, options ImagesCleanupOptions) error
func ImagesPurge ¶
func ImagesPurge(ctx context.Context, projectName string, imagesRepo storage.ImagesRepo, storageLockManager storage.LockManager, options ImagesPurgeOptions) error
func Purge ¶
func Purge(ctx context.Context, projectName string, imagesRepo storage.ImagesRepo, storageLockManager storage.LockManager, stagesManager *stages_manager.StagesManager, options PurgeOptions) error
func StagesCleanup ¶
func StagesCleanup(ctx context.Context, projectName string, imagesRepo storage.ImagesRepo, stagesManager *stages_manager.StagesManager, storageLockManager storage.LockManager, options StagesCleanupOptions) error
func StagesPurge ¶
func StagesPurge(ctx context.Context, projectName string, storageLockManager storage.LockManager, stagesManager *stages_manager.StagesManager, options StagesPurgeOptions) error
Types ¶
type CleanupOptions ¶
type CleanupOptions struct {
ImagesCleanupOptions
StagesCleanupOptions
}
type ImagesCleanupOptions ¶
type ImagesCleanupOptions struct {
ImageNameList []string
LocalGit GitRepo
KubernetesContextsClients map[string]kubernetes.Interface
WithoutKube bool
Policies ImagesCleanupPolicies
GitHistoryBasedCleanup bool
GitHistoryBasedCleanupV12 bool
GitHistoryBasedCleanupOptions config.MetaCleanup
DryRun bool
}
type ImagesCleanupPolicies ¶
type ImagesCleanupPolicies struct {
GitTagStrategyHasLimit bool // No limit by default!
GitTagStrategyLimit int64
GitTagStrategyHasExpiryPeriod bool // No expiration by default!
GitTagStrategyExpiryPeriod time.Duration
GitCommitStrategyHasLimit bool // No limit by default!
GitCommitStrategyLimit int64
GitCommitStrategyHasExpiryPeriod bool // No expiration by default!
GitCommitStrategyExpiryPeriod time.Duration
StagesSignatureStrategyHasLimit bool // No limit by default!
StagesSignatureStrategyLimit int64
StagesSignatureStrategyHasExpiryPeriod bool // No expiration by default!
StagesSignatureStrategyExpiryPeriod time.Duration
}
type ImagesPurgeOptions ¶
type PurgeOptions ¶
type PurgeOptions struct {
ImagesPurgeOptions
StagesPurgeOptions
}
type StagesCleanupOptions ¶
type StagesPurgeOptions ¶
Click to show internal directories.
Click to hide internal directories.