Documentation ¶
Index ¶
- Variables
- func AuthF(c *cobra.Command, args []string) error
- func FDeploy(c *cobra.Command, args []string) error
- func FNewBot(c *cobra.Command, args []string) error
- func FNewFunc(cmd *cobra.Command, args []string) error
- func FNewSecret(command *cobra.Command, args []string) error
- func FUp(c *cobra.Command, args []string) error
- func INewBot()
- func INewSecret()
- func IStart()
- func IUp()
- func PostDeploy(name string, function config2.Function, bot string) error
- func StartDaemon(c *cobra.Command, args []string) error
- func StopDaemon(c *cobra.Command, args []string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthCmd = &cobra.Command{ Use: "auth [bot] [key]", Short: "add a key to the key register to be manage your bot through the API", Args: cobra.MinimumNArgs(2), RunE: AuthF, }
View Source
var DeployCmd = &cobra.Command{ Use: "deploy [bot] [function configuration]", Short: "Deploys a given function to a bot", Args: cobra.MinimumNArgs(2), RunE: FDeploy, }
View Source
var NewBotCmd = &cobra.Command{ Use: "bot [bot name]", Short: "Create a new bot with given name", Args: cobra.MinimumNArgs(1), RunE: FNewBot, }
View Source
var NewCmd = &cobra.Command{ Use: "new [bot | function | secret]", Short: "Create a new function, bot or secret with given name", Args: cobra.MinimumNArgs(1), }
View Source
var NewFuncCmd = &cobra.Command{ Use: "function [function name]", Short: "Create a new function with given name", Args: cobra.MinimumNArgs(1), RunE: FNewFunc, }
View Source
var NewSecretCmd = &cobra.Command{ Use: "secret [secret key] [secret]", Short: "Create a new bot with given name", Args: cobra.MinimumNArgs(2), RunE: FNewSecret, }
View Source
var StartCmd = &cobra.Command{ Use: "start", Short: "Start the Discless background daemon", RunE: StartDaemon, }
View Source
var StopCmd = &cobra.Command{ Use: "stop", Short: "Stop the Discless background daemon", RunE: StopDaemon, }
View Source
var UpCmd = &cobra.Command{ Use: "up [bot configuration file]", Short: "Run your bot", Args: cobra.MinimumNArgs(1), RunE: FUp, }
Functions ¶
func INewSecret ¶
func INewSecret()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.