clients

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0, BSD-3-Clause, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServiceInstance

func CreateServiceInstance(cliConnection plugin.CliConnection, spaceGUID string, servicePlan models.CFServicePlan) (*models.CFServiceInstance, error)

CreateServiceInstance create Cloud Foundry service instance

func CreateServiceKey

func CreateServiceKey(cliConnection plugin.CliConnection, serviceInstanceGUID string) (*models.CFServiceKey, error)

CreateServiceKey create Cloud Foundry service key

func DeleteServiceInstance

func DeleteServiceInstance(cliConnection plugin.CliConnection, serviceInstanceGUID string) error

DeleteServiceInstance delete Cloud Foundry service instance

func DeleteServiceKey

func DeleteServiceKey(cliConnection plugin.CliConnection, serviceKeyGUID string) error

DeleteServiceKey delete Cloud Foundry service key

func GetApplication

func GetApplication(cliConnection plugin.CliConnection, spaceGUID string, appName string) (*models.CFApplication, error)

GetApplication get Cloud Foundry application

func GetEnvironment

func GetEnvironment(cliConnection plugin.CliConnection, appGUID string) (*models.CFEnvironmentResponse, error)

GetEnvironment get Cloud Foundry application environment

func GetFileContent

func GetFileContent(serviceURL string, filePath string, accessToken string, appHostGUID string) ([]byte, error)

GetFileContent get HTML5 applications file content

func GetFileMeta

func GetFileMeta(serviceURL string, filePath string, accessToken string, appHostGUID string) (models.HTML5ApplicationFileMetadata, error)

GetFileMeta get file size and etag

func GetServiceInstances

func GetServiceInstances(cliConnection plugin.CliConnection, spaceGUID string, servicePlans []models.CFServicePlan) ([]models.CFServiceInstance, error)

GetServiceInstances get Cloud Foundry service instances

func GetServicePlans

func GetServicePlans(cliConnection plugin.CliConnection, serviceGUID string) ([]models.CFServicePlan, error)

GetServicePlans get Cloud Foundry services

func GetServices

func GetServices(cliConnection plugin.CliConnection) ([]models.CFService, error)

GetServices get Cloud Foundry services

func GetToken

func GetToken(credentials models.CFCredentials) (string, error)

GetToken get token

func ListApplicationsForAppHost

func ListApplicationsForAppHost(serviceURL string, accessToken string, appHostGUID string) (models.HTML5ListApplicationsResponse, error)

ListApplicationsForAppHost list HTML5 applications for app-host

func ListApplicationsForAppRuntime

func ListApplicationsForAppRuntime(serviceURL string, accessToken string) (models.HTML5ListApplicationsResponse, error)

ListApplicationsForAppRuntime list HTML5 applications for app-runtime

func ListFilesOfApp

func ListFilesOfApp(serviceURL string, appKey string, accessToken string, appHostGUID string) (models.HTML5ListApplicationFilesResponse, error)

ListFilesOfApp list HTML5 application files

func UploadAppHost

func UploadAppHost(serviceURL string, zipFiles []string, accessToken string) error

UploadAppHost upload ZIP files with HTML5 applications to html5-apps-repo service

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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