cleaning

package
v1.1.9-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(projectName string, imagesRepo storage.ImagesRepo, stagesManager *stages_manager.StagesManager, 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, stagesManager *stages_manager.StagesManager, options PurgeOptions) error

func StagesCleanup

func StagesCleanup(projectName string, imagesRepo storage.ImagesRepo, stagesManager *stages_manager.StagesManager, options StagesCleanupOptions) error

func StagesPurge

func StagesPurge(projectName string, stagesManager *stages_manager.StagesManager, options StagesPurgeOptions) error

Types

type CleanupOptions

type CleanupOptions struct {
	ImagesCleanupOptions
	StagesCleanupOptions
}

type GitRepo

type GitRepo interface {
	IsCommitExists(commit string) (bool, error)
	TagsList() ([]string, error)
	RemoteBranchesList() ([]string, error)
}

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

	StagesSignatureStrategyHasLimit bool // No limit by default!
	StagesSignatureStrategyLimit    int64

	StagesSignatureStrategyHasExpiryPeriod bool // No expiration by default!
	StagesSignatureStrategyExpiryPeriod    time.Duration
}

type ImagesPurgeOptions

type ImagesPurgeOptions struct {
	ImageNameList []string
	DryRun        bool
}

type PurgeOptions

type PurgeOptions struct {
	ImagesPurgeOptions
	StagesPurgeOptions
}

type StagesCleanupOptions

type StagesCleanupOptions struct {
	ImageNameList []string
	DryRun        bool
}

type StagesPurgeOptions

type StagesPurgeOptions struct {
	RmContainersThatUseWerfImages bool
	DryRun                        bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL