templates

package
v1.50.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader interface {
	Templates() ([]TemplateInfo, error)
	Get(name string) *TemplateInfo
	GetByLabel(label string) *TemplateInfo
	DownloadDirectoryContents(name string, destDir string, force bool) error
}

func NewDownloader

func NewDownloader() Downloader

type GetterClient

type GetterClient interface {
	Get() error
}

GetterClient exists because go-getter does not have an interface to mock.

func NewGetter

func NewGetter(c *getter.Client) GetterClient

type TemplateInfo

type TemplateInfo struct {
	Name  string `yaml:"name"`
	Label string `yaml:"label"`
	Desc  string `yaml:"desc"`
	Path  string `yaml:"path"`
}

Jump to

Keyboard shortcuts

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