Documentation ¶
Overview ¶
///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 /////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////// Copyright (c) 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 /////////////////////////////////////////////////////////////////////
Index ¶
- Variables
- func CallCreateBaseImage(bi interface{}) error
- func CallCreateFunction(f interface{}) error
- func CallCreateImage(i interface{}) error
- func CallCreateSecret(s interface{}) error
- func CallDeleteBaseImage(i interface{}) error
- func CallDeleteFunction(i interface{}) error
- func CallDeleteImage(i interface{}) error
- func CallDeleteSecret(s interface{}) error
- func CheckErr(err error)
- func GetAuthInfoWriter() runtime.ClientAuthInfoWriter
- func NewCLI(in io.Reader, out, errOut io.Writer) *cobra.Command
- func NewCmdCreate(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateAPI(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateBaseImage(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateEventDriver(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateFunction(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateImage(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateSecret(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdCreateSubscription(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdDelete(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdDeleteAPI(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdDeleteBaseImage(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdDeleteEventDriver(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdDeleteFunction(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdDeleteImage(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdDeleteSecret(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdDeleteSubscription(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdEmit(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdExec(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGet(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGetAPI(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGetBaseImage(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGetEventDriver(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGetFunction(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGetImage(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGetRun(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGetSecret(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdGetSubscription(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdInstall(out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdLogin(in io.Reader, out, errOut io.Writer) *cobra.Command
- func NewCmdLogout(in io.Reader, out, errOut io.Writer) *cobra.Command
- func NewCmdUninstall(out io.Writer, errOut io.Writer) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
var ErrExit = fmt.Errorf("exit")
ErrExit may be passed to CheckError to instruct it to output nothing but exit with status code 1.
Functions ¶
func CallCreateBaseImage ¶
func CallCreateBaseImage(bi interface{}) error
CallCreateBaseImage makes the API call to create a base image
func CallCreateFunction ¶
func CallCreateFunction(f interface{}) error
CallCreateFunction makes the API call to create a function
func CallCreateImage ¶
func CallCreateImage(i interface{}) error
CallCreateImage makes the API call to create an image
func CallCreateSecret ¶
func CallCreateSecret(s interface{}) error
func CallDeleteBaseImage ¶
func CallDeleteBaseImage(i interface{}) error
CallDeleteBaseImage makes the API call to create an image
func CallDeleteFunction ¶
func CallDeleteFunction(i interface{}) error
CallDeleteFunction makes the API call to delete a function
func CallDeleteImage ¶
func CallDeleteImage(i interface{}) error
CallDeleteImage makes the API call to delete an image
func CallDeleteSecret ¶
func CallDeleteSecret(s interface{}) error
CallDeleteSecret makes the API call to delete a secret
func CheckErr ¶
func CheckErr(err error)
CheckErr prints a user friendly error to STDERR and exits with a non-zero exit code.
func GetAuthInfoWriter ¶
func GetAuthInfoWriter() runtime.ClientAuthInfoWriter
GetAuthInfoWriter constructor an ClientAuthInfoWriter based on the SkipAuth flag
func NewCmdCreate ¶
NewCmdCreate creates a command object for the "create" action. Currently, one must use subcommands for specific resources to be created. In future create should accept file or stdin with multiple resources specifications. TODO: add create command implementation
func NewCmdCreateAPI ¶
NewCmdCreateAPI creates command responsible for serverless function api creation.
func NewCmdCreateBaseImage ¶
NewCmdCreateBaseImage creates command responsible for base image creation.
func NewCmdCreateEventDriver ¶
NewCmdCreateEventDriver creates command responsible for dispatch function eventDriver creation.
func NewCmdCreateFunction ¶
NewCmdCreateFunction creates command responsible for serverless function creation.
func NewCmdCreateImage ¶
NewCmdCreateImage creates command responsible for image creation.
func NewCmdCreateSecret ¶
NewCmdCreateSecret creates command responsible for secret creation.
func NewCmdCreateSubscription ¶
NewCmdCreateSubscription creates command responsible for subscription creation.
func NewCmdDelete ¶
NewCmdDelete creates a command object for the generic "delete" action, which deletes one or more resources from a server.
func NewCmdDeleteAPI ¶
NewCmdDeleteAPI creates command responsible for deleting API.
func NewCmdDeleteBaseImage ¶
NewCmdDeleteBaseImage creates command responsible for deleting base images.
func NewCmdDeleteEventDriver ¶
NewCmdDeleteEventDriver creates command responsible for deleting EventDriver.
func NewCmdDeleteFunction ¶
NewCmdDeleteFunction creates command responsible for deleting functions.
func NewCmdDeleteImage ¶
NewCmdDeleteImage creates command responsible for deleting images.
func NewCmdDeleteSecret ¶
NewCmdDeleteSecret creates command responsible for deleting secrets.
func NewCmdDeleteSubscription ¶
NewCmdDeleteSubscription creates command responsible for deleting subscriptions.
func NewCmdEmit ¶
NewCmdEmit creates a command to emit a serverless event.
func NewCmdExec ¶
NewCmdExec creates a command to execute a serverless function.
func NewCmdGet ¶
NewCmdGet creates a command object for the generic "get" action, which retrieves one or more resources from a server.
func NewCmdGetAPI ¶
NewCmdGetAPI gets command responsible for serverless function api creation.
func NewCmdGetBaseImage ¶
NewCmdGetBaseImage creates command responsible for getting base images.
func NewCmdGetEventDriver ¶
NewCmdGetEventDriver gets command responsible for retrieving Dispatch event driver.
func NewCmdGetFunction ¶
NewCmdGetFunction creates command responsible for getting functions.
func NewCmdGetImage ¶
NewCmdGetImage creates command responsible for getting images.
func NewCmdGetRun ¶
NewCmdGetRun creates command responsible for getting runs.
func NewCmdGetSecret ¶
NewCmdGetSecret creates command responsible for getting secrets.
func NewCmdGetSubscription ¶
NewCmdGetSubscription creates command responsible for getting subscriptions.
func NewCmdInstall ¶
NewCmdInstall creates a command object for the generic "get" action, which retrieves one or more resources from a server.
func NewCmdLogin ¶
NewCmdLogin creates a command to login to VMware Dispatch.
func NewCmdLogout ¶
NewCmdLogout creates a command to logout from Dispatch.
Types ¶
This section is empty.
Source Files ¶
- auth.go
- cmd.go
- create.go
- create_api.go
- create_baseimage.go
- create_eventdriver.go
- create_function.go
- create_image.go
- create_secret.go
- create_subscription.go
- delete.go
- delete_api.go
- delete_baseimage.go
- delete_eventdriver.go
- delete_function.go
- delete_image.go
- delete_secret.go
- delete_subscription.go
- emit.go
- errors.go
- exec.go
- get.go
- get_api.go
- get_baseimage.go
- get_eventdriver.go
- get_function.go
- get_image.go
- get_run.go
- get_secret.go
- get_subscription.go
- helpers.go
- install.go
- login.go
- logout.go
- rest_clients.go
- uninstall.go