cleaning

package
v1.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(options CleanupOptions) error

func GCRImageRemove

func GCRImageRemove(image docker_registry.RepoImage, options CommonRepoOptions) error

func HostCleanup

func HostCleanup(options CommonOptions) error

func HostPurge

func HostPurge(options CommonOptions) error

func ImagesCleanup

func ImagesCleanup(options ImagesCleanupOptions) error

func ImagesPurge

func ImagesPurge(options CommonRepoOptions) error

func Purge

func Purge(options PurgeOptions) error

func ResetCacheVersion

func ResetCacheVersion(options CommonOptions) error

func ResetDevModeCache

func ResetDevModeCache(options CommonOptions) error

func StagesCleanup

func StagesCleanup(options StagesCleanupOptions) error

func StagesPurge

func StagesPurge(options CommonProjectOptions) error

Types

type CleanupOptions

type CleanupOptions struct {
	ImagesCleanupOptions ImagesCleanupOptions
	StagesCleanupOptions StagesCleanupOptions
}

type CommonOptions

type CommonOptions struct {
	DryRun         bool
	RmForce        bool
	RmiForce       bool
	SkipUsedImages bool
}

type CommonProjectOptions

type CommonProjectOptions struct {
	ProjectName   string
	CommonOptions CommonOptions
}

type CommonRepoOptions

type CommonRepoOptions struct {
	StagesStorage string
	ImagesRepo    string
	ImagesNames   []string
	DryRun        bool
}

type GitRepo

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

type ImagesCleanupOptions

type ImagesCleanupOptions struct {
	CommonRepoOptions CommonRepoOptions
	LocalGit          GitRepo
	KubernetesClients []kubernetes.Interface
	WithoutKube       bool
	Policies          ImagesCleanupPolicies
}

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 PurgeOptions

type PurgeOptions struct {
	CommonRepoOptions    CommonRepoOptions
	CommonProjectOptions CommonProjectOptions
}

type StagesCleanupOptions

type StagesCleanupOptions struct {
	CommonRepoOptions    CommonRepoOptions
	CommonProjectOptions CommonProjectOptions
}

Jump to

Keyboard shortcuts

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