stack

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HlnRepoURL is official repo.
	HlnRepoURL = "https://stack.h8r.io"
	// MetaFileName is the name of metadata file.
	MetaFileName = "metadata.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata added in v0.3.6

type Metadata struct {
	Name        string `json:"name"`
	Version     string `json:"version"`
	OwnerRef    Owner  `json:"owner"`
	Description string `json:"description"`
	Icon        string `json:"icon"`
	URL         string `json:"url"`
	Tags        []*Tag `json:"tags"`
}

Metadata of the schema.

func LoadMeta added in v0.3.6

func LoadMeta(path string) (*Metadata, error)

LoadMeta loads metadata file.

func (Metadata) Show added in v0.3.6

func (m Metadata) Show(w io.Writer)

Show displays the info of metadata.

type Owner added in v0.3.6

type Owner struct {
	Name    string `json:"name"`
	Contact string `json:"contact"`
}

Owner info.

type Stack

type Stack struct {
	Path string

	Name        string `json:"name" yaml:"name"`
	URL         string `json:"url" yaml:"url"`
	Version     string `json:"version" yaml:"version"`
	Description string `json:"description" yaml:"description"`
}

Stack is a CloudNative application template.

func List added in v0.3.6

func List() ([]Stack, error)

List all stacks

func New

func New(name, version string) (*Stack, error)

New returns a Stack object.

func (*Stack) Update added in v0.2.1

func (s *Stack) Update() error

Update upgrades the stack if necessary.

type Tag added in v0.3.6

type Tag string

Tag is a key word.

Jump to

Keyboard shortcuts

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