stack

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotExist mean this stack doesn't exist.
	ErrNotExist = errors.New("target stack doesn't exist")
)
View Source
var Stacks = map[string]struct{}{
	"gin-vue":  {},
	"gin-next": {},
	"sample":   {},
}

Stacks stores all available stacks.

Functions

This section is empty.

Types

type Stack

type Stack struct {
	Path string

	// TODO Should read from stack metadata
	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 New

func New(name 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.

Jump to

Keyboard shortcuts

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