Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(s Serverless, exts ...string)
Register will register a serverless to drivers collections safely
Types ¶
type Options ¶
type Options struct {
// Filename is the path to the serverless.yml file.
Filename string
// ZipperAddrs is the addresses of the zipper server
ZipperAddrs []string
// Name is the name of the service.
Name string
// ModFile is the path to the module file.
ModFile string
// Client credential
Credential string
// Runtime specifies the serverless runtime environment type
Runtime string
// use environment variables
UseEnv bool
}
Options describles the command arguments of serverless.
type Serverless ¶
type Serverless interface {
// Init initializes the serverless
Init(opts *Options) error
// Build compiles the serverless to executable
Build(clean bool) error
// Run compiles and runs the serverless
Run(verbose bool) error
Executable() bool
}
Serverless defines the interface for serverless
func Create ¶
func Create(opts *Options) (Serverless, error)
Create returns a new serverless instance with options.
Click to show internal directories.
Click to hide internal directories.