utiltags

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 2 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelOfTags

func LabelOfTags(t map[string]string) (ret string)

LabelOfTags returns tags as string

Types

type Tags

type Tags struct {
	KV    map[string]string
	Label string // format: version:1.0|app:mall|env:prod
}

Tags set tags and label

func NewDefaultTag

func NewDefaultTag(version, appID string) Tags

NewDefaultTag returns Tags with version and appID

func (Tags) AppID

func (t Tags) AppID() string

AppID returns buildinTagApp of tags

func (Tags) IsSubsetOf

func (t Tags) IsSubsetOf(labels map[string]string) bool

IsSubsetOf returns if tags is labels

func (Tags) String

func (t Tags) String() string

String returns label of tags

func (Tags) Version

func (t Tags) Version() string

Version returns buildinTagVersion of tags

Jump to

Keyboard shortcuts

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