Documentation ¶
Index ¶
- func CreateServiceInstance(cliConnection plugin.CliConnection, spaceGUID string, ...) (*models.CFServiceInstance, 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 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 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 GetServiceInstanceByName(cliConnection plugin.CliConnection, spaceGUID 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 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 ListSubaccountDestinations(serviceURL string, accessToken string) (models.DestinationListDestinationsResponse, error)
- func UploadAppHost(serviceURL string, zipFiles []string, accessToken string) error
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
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 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
Types ¶
This section is empty.
Source Files ¶
- create_service_instance.go
- create_service_key.go
- create_subaccount_destination.go
- delete_service_content.go
- delete_service_instance.go
- delete_service_key.go
- delete_subaccount_destination.go
- get_application.go
- get_environment.go
- get_file_content.go
- get_file_meta.go
- get_service_instance_by_name.go
- get_service_instances.go
- get_service_instances_by_name_prefix.go
- get_service_keys.go
- get_service_meta.go
- get_service_plans.go
- get_services.go
- get_token.go
- list_applications_for_app_host.go
- list_applications_for_app_runtime.go
- list_files_of_app.go
- list_subaccount_destinations.go
- upload_app_host.go