models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataMapWriter

type DataMapWriter interface {
	AppendData(source map[string]string, destination map[string]string) (map[string]string, error)
}

type Element

type Element struct {
	Name        string     `yaml:"name"`
	Tags        []string   `yaml:"tags"`
	Fields      []Field    `yaml:"fields"`
	Expressions Expression `yaml:"expressions"`
}

func (*Element) GetFields

func (e *Element) GetFields(moduleName string) (map[string]string, error)

func (*Element) GetFullName

func (e *Element) GetFullName(moduleName string) string

func (*Element) GetFullyQualifiedExpression

func (e *Element) GetFullyQualifiedExpression(expression string, moduleName string) (string, error)

func (*Element) HasFilteredTag

func (e *Element) HasFilteredTag(tagFilter []string) bool

type Expression

type Expression struct {
	Install   string `yaml:"install""`
	Uninstall string `yaml:"uninstall""`
}

type Field

type Field struct {
	Id     string `yaml:"id"`
	Data   string `yaml:"data"`
	Prefix bool   `yaml:"prefix"`
}

func (*Field) GetFullName

func (f *Field) GetFullName(moduleName string) string

type Framework

type Framework struct {
	Release  Release   `yaml:"release"`
	Prefixes []Prefix  `yaml:"prefixes"`
	Packages []Package `yaml:"packages"`
}

func (*Framework) GetElements

func (f *Framework) GetElements() (map[string]string, error)

func (*Framework) GetExpressions

func (f *Framework) GetExpressions(kind string, tagFilter []string) (map[string]string, error)

func (*Framework) GetFields

func (f *Framework) GetFields() (map[string]string, error)

func (*Framework) GetPrefixMap

func (f *Framework) GetPrefixMap() map[string]string

func (*Framework) GetPrefixWithVersion

func (f *Framework) GetPrefixWithVersion(sectionName string) string

func (*Framework) SortPrefixes

func (f *Framework) SortPrefixes(prefixes []Prefix)

type Module

type Module struct {
	Name     string    `yaml:"name"`
	Tags     []string  `yaml:"tags"`
	Sections []Section `yaml:"sections"`
}

func (*Module) AppendData

func (m *Module) AppendData(source map[string]string, destination map[string]string) (map[string]string, error)

func (*Module) GetElements

func (m *Module) GetElements(packageName string) (map[string]string, error)

func (*Module) GetFields

func (m *Module) GetFields(packageName string) (map[string]string, error)

func (*Module) GetFullModuleName

func (m *Module) GetFullModuleName(packageName string) string

func (*Module) GetInstallExpressions

func (m *Module) GetInstallExpressions(packageName string, tagFilter []string) (map[string]string, error)

func (*Module) GetUninstallExpressions

func (m *Module) GetUninstallExpressions(packageName string, tagFilter []string) (map[string]string, error)

func (*Module) HasFilteredTag

func (m *Module) HasFilteredTag(tagFilter []string) bool

type Package

type Package struct {
	Name    string   `yaml:"name"`
	Modules []Module `yaml:"modules"`
}

func (*Package) AppendData

func (p *Package) AppendData(source map[string]string, destination map[string]string) (map[string]string, error)

func (*Package) GetElements

func (p *Package) GetElements() (map[string]string, error)

func (*Package) GetFields

func (p *Package) GetFields() (map[string]string, error)

func (*Package) GetInstallExpressions

func (p *Package) GetInstallExpressions(tagFilter []string) (map[string]string, error)

func (*Package) GetUninstallExpressions

func (p *Package) GetUninstallExpressions(tagFilter []string) (map[string]string, error)

type Prefix

type Prefix struct {
	Section         string `yaml:"section"`
	Prefix          string `yaml:"prefix"`
	ProcessingOrder int
}

type Release

type Release struct {
	Major int `yaml:"major"`
	Minor int `yaml:"minor"`
	Patch int `yaml:"patch"`
}

func (*Release) GetSemanticVersion

func (r *Release) GetSemanticVersion() string

func (*Release) GetVersionAsString

func (r *Release) GetVersionAsString() string

type Section

type Section struct {
	Name     string    `yaml:"name"`
	Elements []Element `yaml:"elements"`
}

func (*Section) GetElements

func (s *Section) GetElements(moduleName string) (map[string]string, error)

func (*Section) GetFields

func (s *Section) GetFields(moduleName string) (map[string]string, error)

func (*Section) GetFullName

func (s *Section) GetFullName(moduleName string) string

func (*Section) GetInstallExpressions

func (s *Section) GetInstallExpressions(moduleName string, tagFilter []string) (map[string]string, error)

func (*Section) GetUninstallExpressions

func (s *Section) GetUninstallExpressions(moduleName string, tagFilter []string) (map[string]string, error)

type SectionData

type SectionData struct {
	Name        string
	Expressions []string
}

type UnfoldedExpressionData

type UnfoldedExpressionData struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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