template

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentVersion added in v0.3.0

func CurrentVersion(repoURL string) string

func GenerateFromStackYaml

func GenerateFromStackYaml(stackConfig StackConfig) (map[string]string, error)

func IsVersionLocked added in v0.3.0

func IsVersionLocked(stackConfig StackConfig) (bool, error)

func LatestVersion added in v0.3.0

func LatestVersion(repoURL string) (string, error)

func RepoUrlWithoutVersion added in v0.3.0

func RepoUrlWithoutVersion(repoURL string) string

func StackDefinitionFromRepo

func StackDefinitionFromRepo(repoUrl string) (string, error)

func VersionsSince added in v0.3.0

func VersionsSince(repoURL string, sinceString string) ([]string, error)

Types

type Component

type Component struct {
	Name        string `json:"name,omitempty" yaml:"name"`
	Description string `json:"description,omitempty" yaml:"description"`
	Category    string `json:"category,omitempty" yaml:"category"`
	Variable    string `json:"variable,omitempty" yaml:"variable"`
	OnePager    string `json:"onePager,omitempty" yaml:"onePager"`
	Schema      string `json:"schema,omitempty" yaml:"schema"`
	UISchema    string `json:"uiSchema,omitempty" yaml:"uiSchema"`
}

type StackConfig

type StackConfig struct {
	Stack  StackRef               `yaml:"stack" json:"stack"`
	Config map[string]interface{} `yaml:"config" json:"config"`
}

func Configure

func Configure(stackDefinition StackDefinition, existingStackConfig StackConfig) (StackConfig, bool, error)

type StackDefinition

type StackDefinition struct {
	Name        string        `json:"name,omitempty" yaml:"name"`
	Description string        `json:"description,omitempty" yaml:"description"`
	Intro       string        `json:"intro,omitempty" yaml:"intro"`
	Categories  []interface{} `json:"categories" yaml:"categories"`
	Components  []*Component  `json:"components,omitempty" yaml:"components"`
	ChangLog    string        `json:"changeLog,omitempty" yaml:"changeLog"`
	Message     string        `json:"message,omitempty" yaml:"message"`
}

type StackRef

type StackRef struct {
	Repository string `yaml:"repository" json:"repository"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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