Documentation ¶
Index ¶
- Variables
- type Config
- type MatchesConfig
- type Tag
- type TagConfigValue
- type TagGroup
- func (t *TagGroup) CalculateTagValue(block structure.IBlock, tag Tag) (tags.ITag, error)
- func (t *TagGroup) CreateTagsForBlock(block structure.IBlock) error
- func (t *TagGroup) ExtractExternalGroupsTags(tagsConfig TagsConfig) []Tag
- func (t *TagGroup) GetDefaultTags() []tags.ITag
- func (t *TagGroup) InitExternalTagGroup()
- func (t *TagGroup) InitExternalTagGroups(configFilePath string, useCodeOwners bool)
- func (t *TagGroup) InitTagGroup(dir string, skippedTags []string, explicitlySpecifiedTags []string, ...)
- type TagsConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var EnvVariableRegex = regexp.MustCompile(`\${env:([^\s]+)}`)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { TagGroups []struct { TagGroupName string `yaml:"name"` Tags TagsConfig `yaml:"tags"` } `yaml:"tag_groups"` }
type MatchesConfig ¶
type MatchesConfig []map[string]interface{}
type TagConfigValue ¶
type TagConfigValue struct { Default string `yaml:"default"` Matches MatchesConfig `yaml:"matches"` }
type TagGroup ¶
func (*TagGroup) CalculateTagValue ¶
func (*TagGroup) CreateTagsForBlock ¶
func (*TagGroup) ExtractExternalGroupsTags ¶
func (t *TagGroup) ExtractExternalGroupsTags(tagsConfig TagsConfig) []Tag
func (*TagGroup) GetDefaultTags ¶
func (*TagGroup) InitExternalTagGroup ¶
func (t *TagGroup) InitExternalTagGroup()
func (*TagGroup) InitExternalTagGroups ¶
func (*TagGroup) InitTagGroup ¶
type TagsConfig ¶
type TagsConfig []struct { TagKey string `yaml:"name"` TagValue TagConfigValue `yaml:"value"` Filters map[string]interface{} `yaml:"filters"` }
Click to show internal directories.
Click to hide internal directories.