Help us shape the future of Go! Take the 2026 Go Developer Survey

sls

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 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 {
	// 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