Exemplo n.º 1
0
func (cmd *ApiCommand) Setup(config commands.Config, ui commands.UI) error {
	cmd.Actor = configactions.NewActor(config, cloudcontrollerv2.NewCloudControllerClient())
	cmd.UI = ui
	cmd.Config = config
	return nil
}
func NewCloudControllerClient(config commands.Config) (*cloudcontrollerv2.CloudControllerClient, error) {
	client := cloudcontrollerv2.NewCloudControllerClient()
	_, err := client.TargetCF(config.Target(), config.SkipSSLValidation())
	return client, err
}