sls

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	YamlName = "serverless.yml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionMeta

type FunctionMeta struct {
	Name        string `yaml:"name"`
	Handler     string `yaml:"handler"`
	Description string `yaml:"description"`
	Runtime     string `yaml:"runtime"`
	MemorySize  string `yaml:"memorySize"`
}

type Functions

type Functions map[string]FunctionMeta

type ServiceStack

type ServiceStack struct {
	StackId  string `yaml:"service"`
	Provider struct {
		Name    string `yaml:"name"`
		Project string `yaml:"project"`
		Stage   string `yaml:"stage"`
	}

	Functions Functions
}

func ParseConfig

func ParseConfig(provider string, yamlDirPath string) (*ServiceStack, error)

type Wrapper

type Wrapper struct {
	Opts map[string]string
	// contains filtered or unexported fields
}

func New

func New(provider string, yamlDirPath string) (*Wrapper, error)

func (*Wrapper) DeployStack

func (w *Wrapper) DeployStack() error

func (*Wrapper) ListFunction

func (w *Wrapper) ListFunction() error

func (*Wrapper) ListFunctionsFromYaml

func (w *Wrapper) ListFunctionsFromYaml() Functions

func (*Wrapper) Project

func (w *Wrapper) Project() string

func (*Wrapper) RemoveStack

func (w *Wrapper) RemoveStack() error

func (*Wrapper) StackId

func (w *Wrapper) StackId() string

func (*Wrapper) Stage

func (w *Wrapper) Stage() string

Jump to

Keyboard shortcuts

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