cleanoldtags

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

README

Clear old docker registry tags

This extention can reduce docker registry size by removing old registry tags

to delete old releases you need to name docker tags it with date of release - for example release-20210101-sometxt it can be changed with arg -release.pattern=release-(\\d{4}\\d{2}\\d{2}).*

Deletion will read all releases in your docker registry and will leave only last 10 day of releases -release.notDeleteDays=10 for example

release-20210415-with-master
release-20210415-hotfix
release-20210413
release-20210411
release-20210410
release-20210410-fix
release-20210405
release-20210404 (will be deleted)
release-20210401 (will be deleted)
release-20210325 (will be deleted)

Documentation

Overview

Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(rootSpan opentracing.Span)

Types

type RegistryData

type RegistryData struct {
	ProjectID     string
	DockerTag     string
	TagsNotDelete []string
}

Jump to

Keyboard shortcuts

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