Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶
func Cleanup(ctx context.Context, projectName string, storageManager *manager.StorageManager, options CleanupOptions) error
func Purge ¶
func Purge(ctx context.Context, projectName string, storageManager *manager.StorageManager, options PurgeOptions) error
Types ¶
type CleanupOptions ¶
type CleanupOptions struct {
ImageNameList []string
LocalGit GitRepo
KubernetesContextClients []*kube.ContextClient
KubernetesNamespacesByContext map[string][]string
WithoutKube bool // TODO: remove this legacy logic in v3.
ConfigMetaCleanup config.MetaCleanup
KeepStagesBuiltWithinLastNHours *uint64
DryRun bool
Parallel bool
ParallelTasksLimit int64
KeepList KeepList
Report *cleanup_report.Report
}
type ContextResources ¶
type DeployedDockerImage ¶
type DeployedDockerImage struct {
Name string
ContextResources []*ContextResources
}
func AppendContextDeployedDockerImages ¶
func AppendContextDeployedDockerImages(list []*DeployedDockerImage, contextName string, images []*allow_list.DeployedImage) (res []*DeployedDockerImage)
type KeepList ¶ added in v2.38.0
func NewKeepList ¶ added in v2.38.0
func NewKeepListWithSize ¶ added in v2.38.0
type PurgeOptions ¶
type PurgeOptions struct {
RmContainersThatUseWerfImages bool
DryRun bool
Report *cleanup_report.Report
}
Click to show internal directories.
Click to hide internal directories.