api

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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 CheckReleaseTag

func CheckReleaseTag(tagNameRegexp *regexp.Regexp, tagName string, commitDate string) error

check if release tag has valid format, date in tag must be +- 5 days from commit date.

func GetGitlabProjectPath

func GetGitlabProjectPath(dockerRegistryPath string) (string, error)

Convert docker registry path to gitlab path.

func GetNotDeletableTags

func GetNotDeletableTags(input *GetNotDeletableTagsInput) []string

Detect stale tag.

func GetTagWithoutArch

func GetTagWithoutArch(tagName string) string

func GetTagsWithoutArch

func GetTagsWithoutArch(tags []string) []string

func GetVersion

func GetVersion() string

Get application version.

Types

type GetNotDeletableTagsInput

type GetNotDeletableTagsInput struct {
	Tags             map[string]types.TagType
	DateRegexp       *regexp.Regexp
	NotDeleteDays    float64
	MinNotDeleteTags int
}

type ReleaseTag

type ReleaseTag struct {
	TagName string
	TagDate time.Time
}

func GetReleaseTag

func GetReleaseTag(tagNameRegexp *regexp.Regexp, tagName string) (*ReleaseTag, error)

Jump to

Keyboard shortcuts

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