fs

package
v0.0.0-...-03509d0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSLibrary

type FSLibrary struct {
	fs.FS
	// contains filtered or unexported fields
}

func New

func New(fs fs.FS, base string) *FSLibrary

New creates and returns a new Filesystem based template library.

func (FSLibrary) Flavours

func (f FSLibrary) Flavours() ([]*flavours.Flavour, error)

Flavours lists the flavours in a tree structure.

The base directory is searched for directories for example: └── flavours

├── 1.2.3
│   ├── template1.yaml
│   └── template2.yaml
└── 2.1.0
    └── template1.yaml

Would result in 3 templates, with two different versions 1.2.3 and 2.1.0.

Jump to

Keyboard shortcuts

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