Documentation ¶
Index ¶
- Constants
- Variables
- func CreateServiceInstance(cliConnection plugin.CliConnection, spaceGUID string, ...) (*models.CFServiceInstance, error)
- func CreateServiceInstanceDestination(serviceURL string, accessToken string, ...) error
- func CreateServiceKey(cliConnection plugin.CliConnection, serviceInstanceGUID string, ...) (*models.CFServiceKey, error)
- func CreateSubaccountDestination(serviceURL string, accessToken string, ...) error
- func DeleteServiceContent(serviceURL string, accessToken string) error
- func DeleteServiceInstance(cliConnection plugin.CliConnection, serviceInstanceGUID string, ...) error
- func DeleteServiceInstanceDestination(serviceURL string, accessToken string, destinationName string) error
- func DeleteServiceKey(cliConnection plugin.CliConnection, serviceKeyGUID string, maxRetryCount int) error
- func DeleteSubaccountDestination(serviceURL string, accessToken string, destinationName string) error
- func GetApplication(cliConnection plugin.CliConnection, spaceGUID string, appName string) (*models.CFApplication, error)
- func GetClient(trustInsecure bool, customCAPath string) (client *http.Client, err error)
- func GetClientWithCertificates(certificates []tls.Certificate) (client *http.Client, err error)
- func GetDefaultClient() (client *http.Client, err error)
- func GetEnvironment(cliConnection plugin.CliConnection, appGUID string) (*models.CFEnvironmentResponse, error)
- func GetFileContent(serviceURL string, filePath string, accessToken string, appHostGUID string, ...)
- func GetFileMeta(serviceURL string, filePath string, accessToken string, appHostGUID string, ...)
- func GetJobByUrl(cliConnection plugin.CliConnection, url string) (models.CFJob, error)
- func GetServiceInstanceByName(cliConnection plugin.CliConnection, spaceGUID string, ...) (models.CFServiceInstance, error)
- func GetServiceInstanceByUrl(cliConnection plugin.CliConnection, url string) (models.CFServiceInstance, error)
- func GetServiceInstances(cliConnection plugin.CliConnection, spaceGUID string, ...) ([]models.CFServiceInstance, error)
- func GetServiceInstancesByNamePrefix(cliConnection plugin.CliConnection, spaceGUID string, ...) ([]models.CFServiceInstance, error)
- func GetServiceKeyByUrl(cliConnection plugin.CliConnection, url string) (models.CFServiceKey, error)
- func GetServiceKeyDetails(cliConnection plugin.CliConnection, serviceKeyGUID string) (models.CFCredentials, error)
- func GetServiceKeys(cliConnection plugin.CliConnection, serviceInstanceGUID string) ([]models.CFServiceKey, error)
- func GetServiceMeta(serviceURL string, accessToken string, ...)
- func GetServicePlans(cliConnection plugin.CliConnection, serviceGUID string) ([]models.CFServicePlan, error)
- func GetServices(cliConnection plugin.CliConnection) ([]models.CFService, error)
- func GetToken(credentials models.CFCredentials) (string, error)
- func ListApplicationsForAppHost(serviceURL string, accessToken string, appHostGUID string) (models.HTML5ListApplicationsResponse, error)
- func ListApplicationsForAppRuntime(serviceURL string, accessToken string) (models.HTML5ListApplicationsResponse, error)
- func ListFilesOfApp(serviceURL string, appKey string, accessToken string, appHostGUID string) (models.HTML5ListApplicationFilesResponse, error)
- func ListServiceInstanceDestinations(serviceURL string, accessToken string) (models.DestinationListDestinationsResponse, error)
- func ListSubaccountDestinations(serviceURL string, accessToken string) (models.DestinationListDestinationsResponse, error)
- func PollJob(cliConnection plugin.CliConnection, url string) (models.CFJob, error)
- func SetCustomCAPath(customCAPath string)
- func SetInsecure(isInsecure bool)
- func UploadAppHost(serviceURL string, zipFiles []string, accessToken string) error
Constants ¶
const (
MAX_ATTEMPTS = 10
)
Variables ¶
var CustomCAPath = ""
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
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 GetClientWithCertificates ¶ added in v1.4.8
func GetClientWithCertificates(certificates []tls.Certificate) (client *http.Client, err error)
func GetDefaultClient ¶ added in v1.4.8
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
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 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 SetCustomCAPath ¶ added in v1.4.8
func SetCustomCAPath(customCAPath string)
func SetInsecure ¶ added in v1.4.8
func SetInsecure(isInsecure bool)
Types ¶
This section is empty.
Source Files ¶
- create_service_instance.go
- create_service_instance_destination.go
- create_service_key.go
- create_subaccount_destination.go
- delete_service_content.go
- delete_service_instance.go
- delete_service_instance_destination.go
- delete_service_key.go
- delete_subaccount_destination.go
- get_application.go
- get_environment.go
- get_file_content.go
- get_file_meta.go
- get_job_by_url.go
- get_service_instance_by_name.go
- get_service_instance_by_url.go
- get_service_instances.go
- get_service_instances_by_name_prefix.go
- get_service_key_by_url.go
- get_service_key_details.go
- get_service_keys.go
- get_service_meta.go
- get_service_plans.go
- get_services.go
- get_token.go
- http_client.go
- list_applications_for_app_host.go
- list_applications_for_app_runtime.go
- list_files_of_app.go
- list_service_instance_destinations.go
- list_subaccount_destinations.go
- poll_job.go
- upload_app_host.go