clients

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_ATTEMPTS = 10
)

Variables

View Source
var CustomCAPath = ""
View Source
var IsInsecure = false

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 CreateServiceInstanceDestination added in v1.4.5

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

CreateServiceInstanceDestination create destination service service instance destination

func CreateServiceKey

func CreateServiceKey(cliConnection plugin.CliConnection, serviceInstanceGUID string, parameters interface{}) (*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 DeleteServiceInstanceDestination added in v1.4.5

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

DeleteServiceInstanceDestination delete destination service instance level destination

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 GetClient added in v1.4.8

func GetClient(trustInsecure bool, customCAPath string) (client *http.Client, err error)

func GetClientWithCertificates added in v1.4.8

func GetClientWithCertificates(certificates []tls.Certificate) (client *http.Client, err error)

func GetDefaultClient added in v1.4.8

func GetDefaultClient() (client *http.Client, err error)

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 GetJobByUrl added in v1.4.7

func GetJobByUrl(cliConnection plugin.CliConnection, url string) (models.CFJob, error)

GetJobByUrl get Cloud Foundry job by full URL

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 GetServiceInstanceByUrl added in v1.4.7

func GetServiceInstanceByUrl(cliConnection plugin.CliConnection, url string) (models.CFServiceInstance, error)

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 GetServiceKeyByUrl added in v1.4.7

func GetServiceKeyByUrl(cliConnection plugin.CliConnection, url string) (models.CFServiceKey, error)

func GetServiceKeyDetails added in v1.4.7

func GetServiceKeyDetails(cliConnection plugin.CliConnection, serviceKeyGUID string) (models.CFCredentials, error)

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 ListServiceInstanceDestinations added in v1.4.5

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

ListServiceInstanceDestinations list destination service instance destinations

func ListSubaccountDestinations added in v1.4.0

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

ListSubaccountDestinations list destination service subaccount destinations

func PollJob added in v1.4.7

func PollJob(cliConnection plugin.CliConnection, url string) (models.CFJob, error)

func SetCustomCAPath added in v1.4.8

func SetCustomCAPath(customCAPath string)

func SetInsecure added in v1.4.8

func SetInsecure(isInsecure bool)

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