cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 53 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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 NewCLI

func NewCLI(in io.Reader, out, errOut io.Writer) *cobra.Command

NewCLI creates cobra object for top-level Dispatch CLI

func NewCmdCreate

func NewCmdCreate(out io.Writer, errOut io.Writer) *cobra.Command

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

func NewCmdCreateAPI(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdCreateAPI creates command responsible for serverless function api creation.

func NewCmdCreateBaseImage

func NewCmdCreateBaseImage(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdCreateBaseImage creates command responsible for base image creation.

func NewCmdCreateEventDriver

func NewCmdCreateEventDriver(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdCreateEventDriver creates command responsible for dispatch function eventDriver creation.

func NewCmdCreateFunction

func NewCmdCreateFunction(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdCreateFunction creates command responsible for serverless function creation.

func NewCmdCreateImage

func NewCmdCreateImage(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdCreateImage creates command responsible for image creation.

func NewCmdCreateSecret

func NewCmdCreateSecret(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdCreateSecret creates command responsible for secret creation.

func NewCmdCreateSubscription

func NewCmdCreateSubscription(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdCreateSubscription creates command responsible for subscription creation.

func NewCmdDelete

func NewCmdDelete(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdDelete creates a command object for the generic "delete" action, which deletes one or more resources from a server.

func NewCmdDeleteAPI

func NewCmdDeleteAPI(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdDeleteAPI creates command responsible for deleting API.

func NewCmdDeleteBaseImage

func NewCmdDeleteBaseImage(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdDeleteBaseImage creates command responsible for deleting base images.

func NewCmdDeleteEventDriver

func NewCmdDeleteEventDriver(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdDeleteEventDriver creates command responsible for deleting EventDriver.

func NewCmdDeleteFunction

func NewCmdDeleteFunction(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdDeleteFunction creates command responsible for deleting functions.

func NewCmdDeleteImage

func NewCmdDeleteImage(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdDeleteImage creates command responsible for deleting images.

func NewCmdDeleteSecret

func NewCmdDeleteSecret(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdDeleteSecret creates command responsible for deleting secrets.

func NewCmdDeleteSubscription

func NewCmdDeleteSubscription(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdDeleteSubscription creates command responsible for deleting subscriptions.

func NewCmdEmit

func NewCmdEmit(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdEmit creates a command to emit a serverless event.

func NewCmdExec

func NewCmdExec(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdExec creates a command to execute a serverless function.

func NewCmdGet

func NewCmdGet(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdGet creates a command object for the generic "get" action, which retrieves one or more resources from a server.

func NewCmdGetAPI

func NewCmdGetAPI(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdGetAPI gets command responsible for serverless function api creation.

func NewCmdGetBaseImage

func NewCmdGetBaseImage(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdGetBaseImage creates command responsible for getting base images.

func NewCmdGetEventDriver

func NewCmdGetEventDriver(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdGetEventDriver gets command responsible for retrieving Dispatch event driver.

func NewCmdGetFunction

func NewCmdGetFunction(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdGetFunction creates command responsible for getting functions.

func NewCmdGetImage

func NewCmdGetImage(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdGetImage creates command responsible for getting images.

func NewCmdGetRun

func NewCmdGetRun(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdGetRun creates command responsible for getting runs.

func NewCmdGetSecret

func NewCmdGetSecret(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdGetSecret creates command responsible for getting secrets.

func NewCmdGetSubscription

func NewCmdGetSubscription(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdGetSubscription creates command responsible for getting subscriptions.

func NewCmdInstall

func NewCmdInstall(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdInstall creates a command object for the generic "get" action, which retrieves one or more resources from a server.

func NewCmdLogin

func NewCmdLogin(in io.Reader, out, errOut io.Writer) *cobra.Command

NewCmdLogin creates a command to login to VMware Dispatch.

func NewCmdLogout

func NewCmdLogout(in io.Reader, out, errOut io.Writer) *cobra.Command

NewCmdLogout creates a command to logout from Dispatch.

func NewCmdUninstall

func NewCmdUninstall(out io.Writer, errOut io.Writer) *cobra.Command

NewCmdUninstall creates a command object for the uninstallation of dispatch compontents

Types

This section is empty.

Jump to

Keyboard shortcuts

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