clients

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0, BSD-3-Clause, MIT Imports: 16 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, parameters interface{}, name string) (*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 CreateSubaccountDestination added in v1.4.0

func CreateSubaccountDestination(serviceURL string, accessToken string, destination models.DestinationConfiguration) error

CreateSubaccountDestination create destination service subaccount destination

func DeleteServiceContent added in v1.1.0

func DeleteServiceContent(serviceURL string, accessToken string) error

DeleteServiceContent list HTML5 application files

func DeleteServiceInstance

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

DeleteServiceInstance delete Cloud Foundry service instance

func DeleteServiceKey

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

DeleteServiceKey delete Cloud Foundry service key

func DeleteSubaccountDestination added in v1.4.0

func DeleteSubaccountDestination(serviceURL string, accessToken string, destinationName string) error

DeleteSubaccountDestination delete destination service subaccount destination

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, resultChannel chan<- models.HTML5ApplicationFileContent)

GetFileContent get HTML5 applications file content

func GetFileMeta

func GetFileMeta(serviceURL string, filePath string, accessToken string, appHostGUID string, resultChannel chan<- models.HTML5ApplicationFileMetadata)

GetFileMeta get file size and etag

func GetServiceInstanceByName added in v1.2.0

func GetServiceInstanceByName(cliConnection plugin.CliConnection, spaceGUID string, serviceInstanceName string) (models.CFServiceInstance, error)

GetServiceInstanceByName get Cloud Foundry service instance by name

func GetServiceInstances

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

GetServiceInstances get Cloud Foundry service instances

func GetServiceInstancesByNamePrefix added in v1.4.0

func GetServiceInstancesByNamePrefix(cliConnection plugin.CliConnection, spaceGUID string, serviceInstancesNamePrefix string) ([]models.CFServiceInstance, error)

GetServiceInstancesByNamePrefix get Cloud Foundry service instance by name

func GetServiceKeys added in v1.1.0

func GetServiceKeys(cliConnection plugin.CliConnection, serviceInstanceGUID string) ([]models.CFServiceKey, error)

GetServiceKeys get Cloud Foundry service keys

func GetServiceMeta added in v1.1.0

func GetServiceMeta(serviceURL string, accessToken string, resultChannel chan<- models.HTML5ServiceMeta)

GetServiceMeta get metadata of html5-apps-repo service app-host plan service instance

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 ListSubaccountDestinations added in v1.4.0

func ListSubaccountDestinations(serviceURL string, accessToken string) (models.DestinationListDestinationsResponse, error)

ListSubaccountDestinations list destination service subaccount destinations

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