stack

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoSuchStack means heighliner can't find the stack in localstorage
	ErrNoSuchStack = errors.New("target stack doesn't exist")
)
View Source
var Stacks = map[string]struct{}{
	"sample":       {},
	"go-gin-stack": {},
	"gin-vue":      {},
}

Stacks stores all stacks that currently usable

Functions

This section is empty.

Types

type Stack

type Stack struct {
	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 app template

func New

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

New returns a Stack struct

func (*Stack) Copy

func (s *Stack) Copy(src, dst string) error

Copy the stack into dst dir

func (*Stack) Pull

func (s *Stack) Pull() error

Pull downloads and extracts the stack

Jump to

Keyboard shortcuts

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