templates

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const TemplateFile = `dago-template.yaml`

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetTemplate(templateName string) (Template, error)
	GetAllTemplateNames() []string
}

func NewFSRepository

func NewFSRepository(filesystem xfilesystem.FS) (Repository, error)

type Template

type Template struct {
	Name      string              `yaml:"name,omitempty"`
	Variables variables.Variables `yaml:"variables,omitempty"`
	Tasks     []tasks.Task        `yaml:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func CreateTemplate

func CreateTemplate(name string, folderPath string) (Template, error)

func (Template) Filesystem

func (t Template) Filesystem() xfilesystem.FS

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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