definition

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Type          string              `yaml:"Type"`
	Icon          *DefinitionIcon     `yaml:"Icon"`
	Label         *DefinitionLabel    `yaml:"Label"`
	Fill          *DefinitionFill     `yaml:"Fill"`
	Border        *DefinitionBorder   `yaml:"Border"`
	Directory     DefinitionDirectory `yaml:"Directory"`
	ZipFile       DefinitionZipFile   `yaml:"ZipFile"`
	CFn           DefinitionCFn       `yaml:"CFn"`
	Parent        *Definition
	CacheFilePath string
}

func (*Definition) String

func (d *Definition) String() string

type DefinitionBorder

type DefinitionBorder struct {
	Color string `yaml:"Color"`
}

type DefinitionCFn

type DefinitionCFn struct {
	HasChildren bool `yaml:"HasChildren"`
}

type DefinitionDirectory

type DefinitionDirectory struct {
	Source string `yaml:"Source"`
	Path   string `yaml:"Path"`
}

type DefinitionFill

type DefinitionFill struct {
	Color string `yaml:"Color"`
}

type DefinitionIcon

type DefinitionIcon struct {
	Source string `yaml:"Source"`
	Path   string `yaml:"Path"`
}

[TODO] make interface

type DefinitionLabel

type DefinitionLabel struct {
	Title string `yaml:"Title"`
	Color string `yaml:"Color"`
	Font  string `yaml:"Font"`
}

type DefinitionStructure

type DefinitionStructure struct {
	Definitions map[string]*Definition `yaml:"Definitions"`
}

func (*DefinitionStructure) LoadDefinitions

func (ds *DefinitionStructure) LoadDefinitions(filePath string) error

type DefinitionZipFile

type DefinitionZipFile struct {
	SourceType string `yaml:"SourceType"`
	Source     string `yaml:"Source"`
	Path       string `yaml:"Path"`
	Url        string `yaml:"Url"`
}

Jump to

Keyboard shortcuts

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