Documentation ¶
Overview ¶
Inspired by similar approach in: https://github.com/helm/helm (Apache 2.0 License).
Inspired by similar approach in: https://github.com/helm/helm (Apache 2.0 License).
Inspired by similar approach in: https://github.com/helm/helm (Apache 2.0 License).
Index ¶
- Constants
- Variables
- type Installer
- type LocalInstaller
- type Template
- func (t *Template) HasProjectPrompt() bool
- func (t *Template) HasValuesPrompt() bool
- func (t *Template) ParseProjectTemplate(projectName string, input map[string]interface{}) error
- func (t *Template) ParseValuesTemplate(input map[string]interface{}) ([]byte, error)
- func (t *Template) Validate() error
- type TemplateProject
- type TemplateValues
- type VCSInstaller
Constants ¶
View Source
const ( TemplateYAMLName = "template.outblocks" TemplateProjectName = "template.outblocks.project" TemplateValuesName = "template.outblocks.values" TemplateValuesJSON = "template.outblocks.values.json" TemplateProjectJSON = "template.outblocks.project.json" )
Variables ¶
View Source
var ErrMissingMetadata = errors.New("template metadata (template.outblocks.yaml) missing")
View Source
var (
TemplateTypes = []string{"project"}
)
Functions ¶
This section is empty.
Types ¶
type Installer ¶
func NewInstaller ¶
type LocalInstaller ¶
type LocalInstaller struct {
// contains filtered or unexported fields
}
func NewLocalInstaller ¶
func NewLocalInstaller(source string) (*LocalInstaller, error)
func (*LocalInstaller) Download ¶
func (i *LocalInstaller) Download() error
type Template ¶
type Template struct { Type string `json:"type"` TemplateFiles []string `json:"template_files"` Project *TemplateProject Values *TemplateValues // contains filtered or unexported fields }
func LoadTemplate ¶
func (*Template) HasProjectPrompt ¶
func (*Template) HasValuesPrompt ¶
func (*Template) ParseProjectTemplate ¶
func (*Template) ParseValuesTemplate ¶
type TemplateProject ¶
type TemplateValues ¶
type TemplateValues struct {
Val map[string]interface{}
}
type VCSInstaller ¶
func NewVCSInstaller ¶
func NewVCSInstaller(source, version string) (*VCSInstaller, error)
func (*VCSInstaller) Download ¶
func (i *VCSInstaller) Download() error
Click to show internal directories.
Click to hide internal directories.