function

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFunctionDirectoryRequired = errors.New("directory is required")
	ErrFunctionDirectoryExists   = errors.New("directory already exists")
	ErrFunctionRuntimeInvalid    = errors.New("runtime not found")
)

Functions

func New

func New(opts *Options) (*function, error)

New initialize a new function on the disk with the given options

func NewFromFile

func NewFromFile(folder string) (*function, error)

NewFromFile will read the Morty workspace file and return a function

Types

type Options

type Options struct {
	Name      string
	Runtime   string
	Directory string
}

Jump to

Keyboard shortcuts

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