Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶ added in v0.3.0
type Build struct {
Name string `arg:"" help:"The name of the function"`
Source string `arg:"" type:"existingdir" help:"Path of the source directory"`
Destination string `short:"d" type:"path" help:"Path where the compiled wasm file will be saved" default:"."`
Language string `short:"l" enum:"rust,js" required:"" help:"Programming language of the function"`
}
type Create ¶
type Create struct {
Name string `arg:"" help:"Name of the function to create"`
Source string `arg:"" type:"existingdir" help:"Path of the source directory"`
Module string `short:"m" default:"_" help:"Module of the function to create"`
Language string `short:"l" required:"" enum:"rust,js" help:"Programming language of the function"`
}
type Delete ¶
type Fn ¶
type Fn struct {
Invoke Invoke `cmd:"" aliases:"i" help:"Invoke a function"`
Create Create `cmd:"" aliases:"c" help:"A combination of build and upload to create a function"`
Delete Delete `cmd:"" aliases:"d" help:"Delete an existing function"`
Build Build `cmd:"" aliases:"b" help:"Compile a function into a wasm binary"`
Upload Upload `cmd:"" aliases:"up" help:"Create functions by uploading wasm binaries"`
New New `cmd:"" aliases:"n" help:"Create a new function from a template"`
Host string `short:"H" help:"API host/port of the platform (no protocol)"`
}
type Invoke ¶
type Invoke struct {
Name string `arg:"" name:"name" help:"Name of the function to invoke"`
Module string `name:"module" short:"m" default:"_" help:"Module of the function to invoke"`
Args map[string]string `name:"args" short:"a" help:"Arguments of the function to invoke" xor:"args"`
JsonArgs string `name:"json" short:"j" help:"Json encoded arguments of the function to invoke; overrides args" xor:"args"`
}
type New ¶ added in v0.3.0
type New struct {
Name string `arg:"" help:"The name of the function"`
Language string `name:"lang" short:"l" required:"" enum:"rust, js" help:"The language of the function"`
TemplateDir string `short:"t" type:"path" default:"." help:"The directory where the template are located"`
OutDir string `short:"o" type:"path" default:"." help:"The directory where the function will be created"`
}
Click to show internal directories.
Click to hide internal directories.