Documentation
¶
Index ¶
- func DownloadApplicationPackages(currentDir string, cli plugin.CliConnection)
- func GenerateAppManifests(currentDir string, cli plugin.CliConnection, include_env_variables bool)
- type AppEntity
- type AppMetadata
- type AppPackageResource
- type AppPackages
- type AppSearchResource
- type AppSearchResults
- type BuildpackResources
- type Buildpacks
- type BuildpacksPagination
- type DomainResources
- type Domains
- type DomainsPagination
- type MaintenanceInfo
- type OrgData
- type OrgSearchResource
- type OrgSearchResults
- type PackageDownloadStatus
- type RelationshipsOrg
- type Route
- type RouteEntity
- type RouteResource
- type RouteResourceEntity
- type Routes
- type ServiceData
- type ServiceDataEntity
- type ServiceEntity
- type ServiceInstance
- type ServiceInstanceEntity
- type ServicePlanEntity
- type ServicePlanEntityData
- type ServiceResource
- type Services
- type SpaceRelationship
- type SpaceSearchResource
- type SpaceSearchResults
- type StackResource
- type Stacks
- type StacksPagination
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadApplicationPackages ¶
func DownloadApplicationPackages(currentDir string, cli plugin.CliConnection)
func GenerateAppManifests ¶
func GenerateAppManifests(currentDir string, cli plugin.CliConnection, include_env_variables bool)
Types ¶
type AppEntity ¶
type AppEntity struct {
Name string `json:"name"`
Instances int `json:"instances"`
State string `json:"state"`
Memory int `json:"memory"`
DiskQuota int `json:"disk_quota"`
Buildpack string `json:"buildpack"`
DetectedBuildPack string `json:"detected_buildpack"`
DetectedBuildPackGUID string `json:"detected_buildpack_guid"`
DetectedBuildPackFileName string `json:"detected_buildpack_filename"`
SpaceName string `json:"space_name"`
SpaceGUID string `json:"space_guid"`
StartCommand string `json:"detected_start_command"`
Environment map[string]string `json:"environment_json"`
Command string `json:"command"`
HealthCheck string `json:"health_check_type"`
HealthCheckEndpoint string `json:"health_check_http_endpoint"`
Routes []string `json:"routes"`
RoutesUrl string `json:"routes_url"`
Stack string `json:"stack"`
StackGUID string `json:"stack_guid"`
ServiceInstances []ServiceInstanceEntity `json:"service_instances"`
ServiceBindingsUrl string `json:"service_bindings_url"`
OrgGUID string `json:"org_guid"`
OrgName string `json:"org_name"`
}
type AppMetadata ¶
type AppPackageResource ¶
type AppPackageResource struct {
GUID string `json:"guid"`
}
type AppPackages ¶
type AppPackages struct {
Resources []AppPackageResource `json:"resources"`
}
type AppSearchResource ¶
type AppSearchResource struct {
Metadata AppMetadata `json:"metadata"`
Entity AppEntity `json:"entity"`
}
AppSearchResource represents resources attribute of JSON response from Cloud Foundry API
type AppSearchResults ¶
type AppSearchResults struct {
TotalResults int `json:"total_results"`
TotalPages int `json:"total_pages"`
NextUrl string `json:"next_url"`
Resources []AppSearchResource `json:"resources"`
}
AppSearchResults represents top level attributes of JSON response from Cloud Foundry API
func GatherData ¶
func GatherData(cli plugin.CliConnection, include_env_variables bool) (map[string]string, map[string]SpaceSearchResource, AppSearchResults)
type BuildpackResources ¶
type Buildpacks ¶
type Buildpacks struct {
Resources []BuildpackResources `json:"resources"`
Pagination BuildpacksPagination `json:"pagination"`
}
type BuildpacksPagination ¶
type BuildpacksPagination struct {
TotalPages int `json:"total_pages"`
}
type DomainResources ¶
type Domains ¶
type Domains struct {
Resources []DomainResources `json:"resources"`
Pagination DomainsPagination `json:"pagination"`
}
type DomainsPagination ¶
type DomainsPagination struct {
TotalPages int `json:"total_pages"`
}
type MaintenanceInfo ¶
type OrgSearchResource ¶
OrgSearchResource represents resources attribute of JSON response from Cloud Foundry API
type OrgSearchResults ¶
type OrgSearchResults struct {
TotalResults int `json:"total_results"`
TotalPages int `json:"total_pages"`
Resources []OrgSearchResource `json:"resources"`
}
OrgSearchResults represents top level attributes of JSON response from Cloud Foundry API
type PackageDownloadStatus ¶ added in v1.5.0
type RelationshipsOrg ¶
type RelationshipsOrg struct {
OrgData OrgData `json:"data"`
}
type Route ¶
type Route struct {
Entity RouteEntity `json:"entity"`
}
type RouteEntity ¶
type RouteEntity struct {
Name string `json:"name"`
}
type RouteResource ¶
type RouteResource struct {
Entity RouteResourceEntity `json:"entity"`
}
type RouteResourceEntity ¶
type Routes ¶
type Routes struct {
Resources []RouteResource `json:"resources"`
}
type ServiceData ¶ added in v1.4.0
type ServiceData struct {
Service ServiceDataEntity `json:"entity"`
}
type ServiceDataEntity ¶ added in v1.4.0
type ServiceEntity ¶
type ServiceEntity struct {
ServiceInstanceUrl string `json:"service_instance_url"`
}
type ServiceInstance ¶
type ServiceInstance struct {
Entity ServiceInstanceEntity `json:"entity"`
}
type ServiceInstanceEntity ¶
type ServiceInstanceEntity struct {
Name string `json:"name"`
Type string `json:"type"`
MaintenanceInfo MaintenanceInfo `json:"maintenance_info"`
ServicePlanUrl string `json:"service_plan_url"`
ServiceInstanceKeysUrl string `json:"service_keys_url"`
ServiceInstancePlanDetails ServicePlanEntityData `json:"service_plan_details"`
}
type ServicePlanEntity ¶
type ServicePlanEntity struct {
ServicePlanEntityData ServicePlanEntityData `json:"entity"`
}
type ServicePlanEntityData ¶
type ServicePlanEntityData struct {
Name string `json:"name"`
Free bool `json:"free"`
Description string `json:"description"`
Active bool `json:"active"`
Bindable bool `json:"bindable"`
ServiceURL string `json:"service_url"`
Label string `json:"label"`
ServiceBrokerName string `json:"service_broker_name"`
}
type ServiceResource ¶
type ServiceResource struct {
Entity ServiceEntity `json:"entity"`
}
type Services ¶
type Services struct {
Resources []ServiceResource `json:"resources"`
}
type SpaceRelationship ¶
type SpaceRelationship struct {
RelationshipsOrg RelationshipsOrg `json:"organization"`
}
type SpaceSearchResource ¶
type SpaceSearchResource struct {
Name string `json:"name"`
SpaceGUID string `json:"guid"`
Relationships SpaceRelationship `json:"relationships"`
}
SpaceSearchResource represents resources attribute of JSON response from Cloud Foundry API
type SpaceSearchResults ¶
type SpaceSearchResults struct {
TotalResults int `json:"total_results"`
TotalPages int `json:"total_pages"`
Resources []SpaceSearchResource `json:"resources"`
}
SpaceSearchResults represents top level attributes of JSON response from Cloud Foundry API
type StackResource ¶
type Stacks ¶
type Stacks struct {
Resources []StackResource `json:"resources"`
Pagination StacksPagination `json:"pagination"`
}
type StacksPagination ¶
type StacksPagination struct {
TotalPages int `json:"total_pages"`
}
Click to show internal directories.
Click to hide internal directories.