Documentation ¶
Index ¶
- Constants
- Variables
- type CfApp
- type CfAppInstance
- type CfAppResource
- type CfAppSummary
- type CfAppSummaryRoute
- type CfAppSummaryService
- type CfAppSummaryServicePlan
- type CfAppSummaryServicePlanService
- type CfAppsResponse
- type CfBinding
- type CfBindingResource
- type CfBindingsResources
- type CfCopyBitsRequest
- type CfCreateRouteRequest
- type CfDomain
- type CfDomainResponse
- type CfJob
- type CfJobResponse
- type CfMeta
- type CfRoute
- type CfRouteResource
- type CfRoutesResponse
- type CfService
- type CfServiceBindingCreateRequest
- type CfServiceBindingCreateResponse
- type CfServiceBroker
- type CfServiceBrokerResource
- type CfServiceBrokerResources
- type CfServiceContext
- type CfServiceInstanceCreateRequest
- type CfServiceInstanceCreateResponse
- type CfServicePlanResource
- type CfServicePlansResources
- type CfServiceResource
- type CfServicesResources
- type CfSpace
- type CfSpaceResource
- type CfUserProvidedService
- type CfUserProvidedServiceResource
- type CfVcapApplication
- type Component
- type ComponentClone
- type ComponentType
- type ServiceBindingResponse
Constants ¶
View Source
const ( AppStarted = "STARTED" AppStopped = "STOPPED" )
View Source
const ( ComponentService ComponentType = "Service" ComponentUPS = "User provided service" ComponentApp = "Application" )
Variables ¶
View Source
var CcCreateAppFailedError = errors.New("Error occurred while creating new app")
View Source
var CcGetInstancesFailedError = errors.New("Error occurred while getting app instances")
View Source
var CcJobFailedError = errors.New("Error occurred while copying bits")
View Source
var CcRestageFailedError = errors.New("Error occurred while restaging")
View Source
var CcUpdateFailedError = errors.New("Error occurred while app updating")
View Source
var EntityNotFoundError = errors.New("Entity does not exist")
View Source
var ExistingInstancesError = errors.New("Can't remove service with existing instances from catalog")
View Source
var InstanceAlreadyExistsError = errors.New("Such an instance already exists")
View Source
var InstanceNotFoundError = errors.New("No such instance exists")
View Source
var InternalServerError = errors.New("Some internal error occurred")
View Source
var InvalidInputError error = errors.New("Invalid request body")
View Source
var ServiceAlreadyExistsError = errors.New("Service already exists")
View Source
var ServiceNotFoundError = errors.New("No such service exists")
View Source
var TimeoutOccurredError = errors.New("Asynchronous call timeouted")
Functions ¶
This section is empty.
Types ¶
type CfApp ¶
type CfApp struct { Name string `json:"name"` SpaceGUID string `json:"space_guid"` RoutesURL string `json:"routes_url"` State string `json:"state"` BuildpackUrl string `json:"buildpack"` Command string `json:"command"` DiskQuota int64 `json:"disk_quota"` InstanceCount int `json:"instances"` Memory int64 `json:"memory"` Path string `json:"path"` Envs map[string]interface{} `json:"environment_json"` }
type CfAppInstance ¶
type CfAppResource ¶
func NewCfAppResource ¶
func NewCfAppResource(summary CfAppSummary, newName string, spaceGUID string) *CfAppResource
type CfAppSummary ¶
type CfAppSummary struct { CfApp GUID string `json:"guid"` Routes []CfAppSummaryRoute `json:"routes"` Services []CfAppSummaryService `json:"services"` }
type CfAppSummaryRoute ¶
type CfAppSummaryService ¶
type CfAppSummaryService struct { GUID string `json:"guid"` Name string `json:"name"` Plan CfAppSummaryServicePlan `json:"service_plan"` }
type CfAppSummaryServicePlan ¶
type CfAppSummaryServicePlan struct { GUID string `json:"guid"` Name string `json:"name"` Service CfAppSummaryServicePlanService }
type CfAppsResponse ¶
type CfAppsResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` Resources []CfAppResource `json:"resources"` }
cfAppsResponse describes the Cloud Controller API result for a list of apps
type CfBinding ¶
type CfBinding struct { GUID string `json:"guid"` AppGUID string `json:"app_guid"` ServiceInstanceGUID string `json:"service_instance_guid"` }
CFBindingResponse describes a CF Service Binding within the Cloud Controller
type CfBindingResource ¶
type CfBindingsResources ¶
type CfBindingsResources struct { TotalResults int `json:"total_results"` Resources []CfBindingResource `json:"resources"` }
type CfCopyBitsRequest ¶
type CfCopyBitsRequest struct {
SrcAppGUID string `json:"source_app_guid"`
}
type CfCreateRouteRequest ¶
type CfDomainResponse ¶
type CfJobResponse ¶
type CfRouteResource ¶
type CfRoutesResponse ¶
type CfRoutesResponse struct { Count int `json:"total_results"` Pages int `json:"total_pages"` Resources []CfRouteResource `json:"resources"` }
type CfServiceBindingCreateRequest ¶
type CfServiceBindingCreateRequest struct { ServiceInstanceGUID string `json:"service_instance_guid"` AppGUID string `json:"app_guid"` Params map[string]interface{} `json:"parameters,omitempty"` }
func NewCfServiceBindingRequest ¶
func NewCfServiceBindingRequest(appGUID string, svcInstanceGUID string) *CfServiceBindingCreateRequest
type CfServiceBindingCreateResponse ¶
type CfServiceBindingCreateResponse struct {
Meta CfMeta `json:"metadata"`
}
type CfServiceBroker ¶
type CfServiceBrokerResource ¶
type CfServiceBrokerResource struct { Meta CfMeta `json:"metadata"` Entity CfServiceBroker `json:"entity"` }
type CfServiceBrokerResources ¶
type CfServiceBrokerResources struct { TotalResults int `json:"total_results"` Resources []CfServiceBrokerResource `json:"resources"` }
type CfServiceContext ¶
type CfServiceContext struct { InstanceID string OrgName string SpaceName string SpaceGUID string InstanceName string AppName string }
CfServiceContext describes a CF Service Instance within the Cloud Controller
type CfServiceInstanceCreateRequest ¶
type CfServiceInstanceCreateRequest struct { Name string `json:"name"` SpaceGUID string `json:"space_guid"` PlanGUID string `json:"service_plan_guid,omitempty"` Params map[string]interface{} `json:"parameters,omitempty"` Tags []string `json:"tags,omitempty"` }
func NewCfServiceInstanceRequest ¶
func NewCfServiceInstanceRequest(name string, spaceGUID string, plan CfAppSummaryServicePlan) *CfServiceInstanceCreateRequest
type CfServiceInstanceCreateResponse ¶
type CfServiceInstanceCreateResponse struct {
Meta CfMeta `json:"metadata"`
}
type CfServicePlanResource ¶
type CfServicePlanResource struct { Meta CfMeta `json:"metadata"` Entity CfAppSummaryServicePlan `json:"entity"` }
type CfServicePlansResources ¶
type CfServicePlansResources struct { TotalResults int `json:"total_results"` Resources []CfServicePlanResource `json:"resources"` }
type CfServiceResource ¶
type CfServicesResources ¶
type CfServicesResources struct { TotalResults int `json:"total_results"` Resources []CfServiceResource `json:"resources"` }
type CfSpaceResource ¶
type CfUserProvidedService ¶
type CfUserProvidedServiceResource ¶
type CfUserProvidedServiceResource struct { Meta CfMeta `json:"metadata"` Entity CfUserProvidedService `json:"entity"` }
type CfVcapApplication ¶
type Component ¶
type Component struct { GUID string `json:"GUID"` Name string `json:"name"` Type ComponentType `json:"type"` DependencyOf []string `json:"dependencyOf"` Clone bool `json:"clone"` }
type ComponentClone ¶
type ComponentType ¶
type ComponentType string
type ServiceBindingResponse ¶
Click to show internal directories.
Click to hide internal directories.