external

package
v0.0.0-...-dca94c8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 Tag

type Tag struct {
	tags.ITag
	// contains filtered or unexported fields
}

func (Tag) SatisfyFilters

func (t Tag) SatisfyFilters(block structure.IBlock) bool

type TagConfigValue

type TagConfigValue struct {
	Default string        `yaml:"default"`
	Matches MatchesConfig `yaml:"matches"`
}

type TagGroup

type TagGroup struct {
	tagging.TagGroup
	// contains filtered or unexported fields
}

func (*TagGroup) CalculateTagValue

func (t *TagGroup) CalculateTagValue(block structure.IBlock, tag Tag) (tags.ITag, error)

func (*TagGroup) CreateTagsForBlock

func (t *TagGroup) CreateTagsForBlock(block structure.IBlock) error

func (*TagGroup) ExtractExternalGroupsTags

func (t *TagGroup) ExtractExternalGroupsTags(tagsConfig TagsConfig) []Tag

func (*TagGroup) GetDefaultTags

func (t *TagGroup) GetDefaultTags() []tags.ITag

func (*TagGroup) InitExternalTagGroup

func (t *TagGroup) InitExternalTagGroup()

func (*TagGroup) InitExternalTagGroups

func (t *TagGroup) InitExternalTagGroups(configFilePath string, useCodeOwners bool)

func (*TagGroup) InitTagGroup

func (t *TagGroup) InitTagGroup(dir string, skippedTags []string, explicitlySpecifiedTags []string, options ...tagging.InitTagGroupOption)

type TagsConfig

type TagsConfig []struct {
	TagKey   string                 `yaml:"name"`
	TagValue TagConfigValue         `yaml:"value"`
	Filters  map[string]interface{} `yaml:"filters"`
}

Jump to

Keyboard shortcuts

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