cmd

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 63 Imported by: 0

Documentation

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 CallCreateApplication added in v0.1.13

func CallCreateApplication(i interface{}) error

CallCreateApplication makes the API call to create an application

func CallDeleteApplication added in v0.1.13

func CallDeleteApplication(i interface{}) error

CallDeleteApplication makes the API call to delete an application

func CallUpdateApplication added in v0.1.13

func CallUpdateApplication(input interface{}) error

CallUpdateApplication makes the API call to update an application

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

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.

func NewCmdCreateAPI

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

NewCmdCreateAPI creates command responsible for dispatch function api creation.

func NewCmdCreateApplication added in v0.1.13

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

NewCmdCreateApplication creates command responsible for dispatch application 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 NewCmdCreateEventDriverType added in v0.1.13

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

NewCmdCreateEventDriverType 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 dispatch 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 NewCmdCreateSeedImages added in v0.1.17

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

NewCmdCreateSeedImages creates command responsible for creation of seed images and base-images.

func NewCmdCreateServiceInstance added in v0.1.13

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

NewCmdCreateServiceInstance creates command responsible for service instance 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 NewCmdDeleteApplication added in v0.1.13

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

NewCmdDeleteApplication creates command responsible for deleting applications.

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 NewCmdDeleteEventDriverType added in v0.1.13

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

NewCmdDeleteEventDriverType creates command responsible for deleting EventDriverType.

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 NewCmdDeleteServiceInstance added in v0.1.13

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

NewCmdDeleteServiceInstance creates command responsible for deleting a service instance

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 dispatch event.

func NewCmdExec

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

NewCmdExec creates a command to execute a dispatch 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 dispatch function api creation.

func NewCmdGetApplication added in v0.1.13

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

NewCmdGetApplication creates command responsible for getting applications.

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 NewCmdGetEventDriverType added in v0.1.13

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

NewCmdGetEventDriverType gets command responsible for retrieving Dispatch event driver type.

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 NewCmdGetServiceClass added in v0.1.13

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

NewCmdGetServiceClass creates command responsible for getting service classes.

func NewCmdGetServiceInstance added in v0.1.13

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

NewCmdGetServiceInstance creates command responsible for getting service instances.

func NewCmdGetSubscription

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

NewCmdGetSubscription creates command responsible for getting subscriptions.

func NewCmdIam added in v0.1.13

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

NewCmdIam creates a command for iam resource management

func NewCmdIamCreate added in v0.1.13

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

NewCmdIamCreate creates a command object for the iam reources creation.

func NewCmdIamCreateOrganization added in v0.1.18

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

NewCmdIamCreateOrganization creates command responsible for org creation

func NewCmdIamCreatePolicy added in v0.1.13

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

NewCmdIamCreatePolicy creates command responsible for dispatch policy creation

func NewCmdIamCreateServiceAccount added in v0.1.13

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

NewCmdIamCreateServiceAccount creates command responsible for service account creation

func NewCmdIamDelete added in v0.1.13

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

NewCmdIamDelete creates a command object for the iam reources creation.

func NewCmdIamDeleteOrganization added in v0.1.18

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

NewCmdIamDeleteOrganization creates command for delete service accounts

func NewCmdIamDeletePolicy added in v0.1.13

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

NewCmdIamDeletePolicy deletes policy

func NewCmdIamDeleteServiceAccount added in v0.1.13

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

NewCmdIamDeleteServiceAccount creates command for delete service accounts

func NewCmdIamGet added in v0.1.13

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

NewCmdIamGet creates a command object for the iam reources creation.

func NewCmdIamGetOrganization added in v0.1.18

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

NewCmdIamGetOrganization creates command for getting organizations

func NewCmdIamGetPolicy added in v0.1.13

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

NewCmdIamGetPolicy creates command for getting policies

func NewCmdIamGetServiceAccount added in v0.1.13

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

NewCmdIamGetServiceAccount creates command for getting service accounts

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 NewCmdLog added in v0.1.15

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

NewCmdLog creates a command object for Dispatch component logging

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 NewCmdManage added in v0.1.13

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

NewCmdManage creates a command object for Dispatch "manage" action

func NewCmdManageBootstrap added in v0.1.17

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

NewCmdManageBootstrap handles configuration context operations

func NewCmdManageContext added in v0.1.16

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

NewCmdManageContext handles configuration context operations

func NewCmdUninstall

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

NewCmdUninstall creates a command object for the uninstallation of dispatch compontents

func NewCmdUpdate added in v0.1.13

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

NewCmdUpdate updates command responsible for secret updates.

func NewCmdVersion added in v0.1.13

func NewCmdVersion(out io.Writer) *cobra.Command

NewCmdVersion creates a version command for CLI

Types

type ModelAction added in v0.1.17

type ModelAction func(interface{}) error

ModelAction is the function type for CLI actions

func CallCreateAPI added in v0.1.16

func CallCreateAPI(c client.APIsClient) ModelAction

CallCreateAPI makes the API call to create an API endpoint

func CallCreateBaseImage

func CallCreateBaseImage(c client.ImagesClient) ModelAction

CallCreateBaseImage makes the API call to create a base image

func CallCreateEventDriver added in v0.1.16

func CallCreateEventDriver(c client.EventsClient) ModelAction

CallCreateEventDriver makes the API call to create an event driver

func CallCreateEventDriverType added in v0.1.16

func CallCreateEventDriverType(c client.EventsClient) ModelAction

CallCreateEventDriverType makes the API call to create an event driver type

func CallCreateFunction

func CallCreateFunction(c client.FunctionsClient) ModelAction

CallCreateFunction makes the API call to create a function

func CallCreateImage

func CallCreateImage(c client.ImagesClient) ModelAction

CallCreateImage makes the API call to create an image

func CallCreatePolicy added in v0.1.13

func CallCreatePolicy(c client.IdentityClient) ModelAction

CallCreatePolicy makes the api call to create a policy

func CallCreateSecret

func CallCreateSecret(c client.SecretsClient) ModelAction

CallCreateSecret makes the API call to create a secret

func CallCreateServiceAccount added in v0.1.13

func CallCreateServiceAccount(c client.IdentityClient) ModelAction

CallCreateServiceAccount makes the api call to create a service account

func CallCreateServiceInstance added in v0.1.13

func CallCreateServiceInstance(c client.ServicesClient) ModelAction

CallCreateServiceInstance makes the API call to create a service instance

func CallCreateSubscription added in v0.1.16

func CallCreateSubscription(c client.EventsClient) ModelAction

CallCreateSubscription makes the API call to create an event subscription

func CallDeleteAPI added in v0.1.16

func CallDeleteAPI(c client.APIsClient) ModelAction

CallDeleteAPI makes the API call to delete an API endpoint

func CallDeleteBaseImage

func CallDeleteBaseImage(c client.ImagesClient) ModelAction

CallDeleteBaseImage makes the API call to create an image

func CallDeleteEventDriver added in v0.1.16

func CallDeleteEventDriver(c client.EventsClient) ModelAction

CallDeleteEventDriver makes the API call to delete an event driver

func CallDeleteEventDriverType added in v0.1.16

func CallDeleteEventDriverType(c client.EventsClient) ModelAction

CallDeleteEventDriverType makes the API call to delete an event driver

func CallDeleteFunction

func CallDeleteFunction(c client.FunctionsClient) ModelAction

CallDeleteFunction makes the API call to delete a function

func CallDeleteImage

func CallDeleteImage(c client.ImagesClient) ModelAction

CallDeleteImage makes the API call to delete an image

func CallDeleteOrganization added in v0.1.18

func CallDeleteOrganization(c client.IdentityClient) ModelAction

CallDeleteOrganization makes the API call to delete Organization

func CallDeletePolicy added in v0.1.13

func CallDeletePolicy(c client.IdentityClient) ModelAction

CallDeletePolicy makes the API call to delete policy

func CallDeleteSecret

func CallDeleteSecret(c client.SecretsClient) ModelAction

CallDeleteSecret makes the API call to delete a secret

func CallDeleteServiceAccount added in v0.1.13

func CallDeleteServiceAccount(c client.IdentityClient) ModelAction

CallDeleteServiceAccount makes the API call to delete ServiceAccount

func CallDeleteServiceInstance added in v0.1.13

func CallDeleteServiceInstance(c client.ServicesClient) ModelAction

CallDeleteServiceInstance makes the API call to create an image

func CallDeleteSubscription added in v0.1.16

func CallDeleteSubscription(c client.EventsClient) ModelAction

CallDeleteSubscription makes the API call to delete an event subscription

func CallUpdateAPI added in v0.1.13

func CallUpdateAPI(c client.APIsClient) ModelAction

CallUpdateAPI makes the backend service call to update an api

func CallUpdateBaseImage added in v0.1.13

func CallUpdateBaseImage(c client.ImagesClient) ModelAction

CallUpdateBaseImage updates a base image

func CallUpdateDriver added in v0.1.13

func CallUpdateDriver(c client.EventsClient) ModelAction

CallUpdateDriver makes the API call to update an event driver

func CallUpdateDriverType added in v0.1.13

func CallUpdateDriverType(c client.EventsClient) ModelAction

CallUpdateDriverType makes the API call to update a driver type

func CallUpdateFunction added in v0.1.13

func CallUpdateFunction(c client.FunctionsClient) ModelAction

CallUpdateFunction makes the API call to update a function

func CallUpdateImage added in v0.1.13

func CallUpdateImage(c client.ImagesClient) ModelAction

CallUpdateImage makes the service call to update an image.

func CallUpdateOrganization added in v0.1.18

func CallUpdateOrganization(c client.IdentityClient) ModelAction

CallUpdateOrganization updates an organization

func CallUpdatePolicy added in v0.1.13

func CallUpdatePolicy(c client.IdentityClient) ModelAction

CallUpdatePolicy updates a policy

func CallUpdateSecret added in v0.1.13

func CallUpdateSecret(c client.SecretsClient) ModelAction

CallUpdateSecret makes the API call to update a secret

func CallUpdateServiceAccount added in v0.1.13

func CallUpdateServiceAccount(c client.IdentityClient) ModelAction

CallUpdateServiceAccount updates a serviceaccount

func CallUpdateSubscription added in v0.1.13

func CallUpdateSubscription(c client.EventsClient) ModelAction

CallUpdateSubscription makes the API call to update a subscription

type Runner added in v0.1.22

type Runner interface {
	Run(name string, arg ...string) ([]byte, error)
}

Runner interface for executing commands

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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