Documentation
¶
Index ¶
- func Cleanup(projectName string, imagesRepo storage.ImagesRepo, ...) error
- func ImagesCleanup(imagesRepo storage.ImagesRepo, options ImagesCleanupOptions) error
- func ImagesPurge(imagesRepo storage.ImagesRepo, options ImagesPurgeOptions) error
- func Purge(projectName string, imagesRepo storage.ImagesRepo, ...) error
- func StagesCleanup(projectName string, imagesRepo storage.ImagesRepo, ...) error
- func StagesPurge(projectName string, stagesStorage storage.StagesStorage, ...) 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(projectName string, imagesRepo storage.ImagesRepo, stagesStorage storage.StagesStorage, options CleanupOptions) error
func ImagesCleanup ¶
func ImagesCleanup(imagesRepo storage.ImagesRepo, options ImagesCleanupOptions) error
func ImagesPurge ¶
func ImagesPurge(imagesRepo storage.ImagesRepo, options ImagesPurgeOptions) error
func Purge ¶
func Purge(projectName string, imagesRepo storage.ImagesRepo, stagesStorage storage.StagesStorage, options PurgeOptions) error
func StagesCleanup ¶
func StagesCleanup(projectName string, imagesRepo storage.ImagesRepo, stagesStorage storage.StagesStorage, options StagesCleanupOptions) error
func StagesPurge ¶
func StagesPurge(projectName string, stagesStorage storage.StagesStorage, 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
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
}
type ImagesPurgeOptions ¶
type PurgeOptions ¶
type PurgeOptions struct {
ImagesPurgeOptions
StagesPurgeOptions
}
type StagesCleanupOptions ¶
type StagesPurgeOptions ¶
Click to show internal directories.
Click to hide internal directories.