models

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caster

type Caster struct {
	Files   []File   `yaml:"files,omitempty" json:"files" mapstructure:"files"`
	Folders []Folder `yaml:"folders,omitempty" json:"folders" mapstructure:"folders"`
}

Caster is the top level struct representing a caster file

type File

type File struct {
	Name    string `yaml:"name,omitempty" json:"name" mapstructure:"name"`
	Content string `yaml:"content,omitempty" json:"content" mapstructure:"content"`
	Ref     string `yaml:"ref,omitempty" json:"ref" mapstructure:"ref"`
}

File represents a file in the hierarchy

type Folder

type Folder struct {
	Name    string   `yaml:"name,omitempty" json:"name" mapstructure:"name"`
	Files   []File   `yaml:"files,omitempty" json:"files" mapstructure:"files"`
	Folders []Folder `yaml:"folders,omitempty" json:"folders" mapstructure:"folders"`
}

Folder represents a folder in the hierachy

type Variable

type Variable struct {
	File  string `yaml:"omitempty"`
	Key   string `yaml:"omitempty"`
	Value string `yaml:"omitempty"`
	Env   string `yaml:"omitempty"`
}

Variable represents a variable file, key value or environment variable

Jump to

Keyboard shortcuts

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