template

package
v0.0.0-...-5af6bcd Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXT_ZIP    = ".zip"
	EXT_TGZ    = ".tgz"
	EXT_TAR_GZ = ".tar.gz"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppTemplate

type AppTemplate struct {
	TemplateBase
	Workloads map[string]*WorkloadTemplate
}

type TemplateBase

type TemplateBase struct {
	Name          string
	Version       string
	TemplateFiles []*TemplateFile
}

type TemplateFile

type TemplateFile struct {
	FileName string
	Content  []byte
}

type TemplateLoader

type TemplateLoader interface {
	LoadTemplate(path string) (*AppTemplate, error)
	TemplateName(path string) (string, string)
}

func NewTemplateLoader

func NewTemplateLoader(logger log.Logger) TemplateLoader

type WorkloadTemplate

type WorkloadTemplate struct {
	TemplateBase
}

Jump to

Keyboard shortcuts

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