Documentation ¶
Index ¶
Constants ¶
const ( DeleteApplicationProcessInstanceRequest = "DeleteApplicationProcessInstance" DeleteApplicationRequest = "DeleteApplication" DeleteBuildpackRequest = "DeleteBuildpack" DeleteDomainRequest = "DeleteDomainRequest" DeleteIsolationSegmentRelationshipOrganizationRequest = "DeleteIsolationSegmentRelationshipOrganization" DeleteIsolationSegmentRequest = "DeleteIsolationSegment" DeleteOrganizationRequest = "DeleteOrganization" DeleteOrganizationQuotaRequest = "DeleteOrganizationQuota" DeleteOrphanedRoutesRequest = "DeleteOrphanedRoutes" DeleteRoleRequest = "DeleteRoleRequest" DeleteRouteRequest = "DeleteRouteRequest" DeleteRouteBindingRequest = "DeleteRouteBinding" DeleteSecurityGroupRequest = "DeleteSecurityGroup" DeleteSecurityGroupStagingSpaceRequest = "DeleteSecurityGroupStagingSpace" DeleteSecurityGroupRunningSpaceRequest = "DeleteSecurityGroupRunningSpace" DeleteServiceCredentialBindingRequest = "DeleteServiceCredentialBinding" DeleteServiceBrokerRequest = "DeleteServiceBrokerRequest" DeleteServiceInstanceRequest = "DeleteServiceInstance" DeleteServiceOfferingRequest = "DeleteServiceOffering" DeleteServicePlanVisibilityRequest = "DeleteServicePlanVisibility" DeleteSpaceQuotaRequest = "DeleteSpaceQuota" DeleteSpaceRequest = "DeleteSpace" DeleteSpaceQuotaFromSpaceRequest = "DeleteSpaceQuotaFromSpace" DeleteUserRequest = "DeleteUser" GetApplicationDropletCurrentRequest = "GetApplicationDropletCurrent" GetApplicationEnvRequest = "GetApplicationEnv" GetApplicationFeaturesRequest = "GetApplicationFeatures" GetApplicationManifestRequest = "GetApplicationManifest" GetApplicationProcessRequest = "GetApplicationProcess" GetApplicationProcessesRequest = "GetApplicationProcesses" GetApplicationRevisionsRequest = "GetApplicationRevisions" GetApplicationRevisionsDeployedRequest = "GetApplicationRevisionsDeployed" GetApplicationRoutesRequest = "GetApplicationRoutes" GetApplicationTasksRequest = "GetApplicationTasks" GetApplicationsRequest = "GetApplications" GetBuildRequest = "GetBuild" GetBuildpacksRequest = "GetBuildpacks" GetDefaultDomainRequest = "GetDefaultDomain" GetDeploymentRequest = "GetDeployment" GetDeploymentsRequest = "GetDeployments" GetDomainRequest = "GetDomain" GetDomainRouteReservationsRequest = "GetDomainRouteReservations" GetDomainsRequest = "GetDomains" GetDropletRequest = "GetDroplet" GetDropletsRequest = "GetDroplets" GetDropletBitsRequest = "GetDropletBits" GetEnvironmentVariableGroupRequest = "GetEnvironmentVariableGroup" GetEventsRequest = "GetEvents" GetFeatureFlagRequest = "GetFeatureFlag" GetFeatureFlagsRequest = "GetFeatureFlags" GetIsolationSegmentOrganizationsRequest = "GetIsolationSegmentOrganizations" GetIsolationSegmentRequest = "GetIsolationSegment" GetIsolationSegmentsRequest = "GetIsolationSegments" GetOrganizationDomainsRequest = "GetOrganizationDomains" GetOrganizationQuotasRequest = "GetOrganizationQuotas" GetOrganizationQuotaRequest = "GetOrganizationQuota" GetOrganizationRelationshipDefaultIsolationSegmentRequest = "GetOrganizationRelationshipDefaultIsolationSegment" GetOrganizationRequest = "GetOrganization" GetOrganizationsRequest = "GetOrganizations" GetPackageRequest = "GetPackage" GetPackagesRequest = "GetPackages" GetPackageDropletsRequest = "GetPackageDroplets" GetProcessRequest = "GetProcess" GetProcessesRequest = "GetProcesses" GetProcessStatsRequest = "GetProcessStats" GetProcessSidecarsRequest = "GetProcessSidecars" GetRolesRequest = "GetRoles" GetRouteBindingsRequest = "GetRouteBindings" GetRouteDestinationsRequest = "GetRouteDestinations" GetRoutesRequest = "GetRoutes" GetSecurityGroupsRequest = "GetSecurityGroups" GetServiceBrokersRequest = "GetServiceBrokers" GetServiceCredentialBindingsRequest = "GetServiceCredentialBindings" GetServiceCredentialBindingDetailsRequest = "GetServiceCredentialBindingDetails" GetServiceInstanceParametersRequest = "GetServiceInstanceParameters" GetServiceInstancesRequest = "GetServiceInstances" GetServiceOfferingRequest = "GetServiceOffering" GetServiceOfferingsRequest = "GetServiceOfferings" GetServicePlanRequest = "GetServicePlan" GetServicePlansRequest = "GetServicePlans" GetServicePlanVisibilityRequest = "GetServicePlanVisibility" GetSpaceFeatureRequest = "GetSpaceFeatureRequest" GetSpaceRelationshipIsolationSegmentRequest = "GetSpaceRelationshipIsolationSegment" GetSpaceRunningSecurityGroupsRequest = "GetSpaceRunningSecurityGroups" GetSpacesRequest = "GetSpaces" GetSpaceQuotaRequest = "GetSpaceQuota" GetSpaceQuotasRequest = "GetSpaceQuotas" GetSpaceStagingSecurityGroupsRequest = "GetSpaceStagingSecurityGroups" GetSSHEnabled = "GetSSHEnabled" GetStacksRequest = "GetStacks" GetTasksRequest = "GetTasks" GetTaskRequest = "GetTask" GetUserRequest = "GetUser" GetUsersRequest = "GetUsers" MapRouteRequest = "MapRoute" PatchApplicationCurrentDropletRequest = "PatchApplicationCurrentDroplet" PatchApplicationEnvironmentVariablesRequest = "PatchApplicationEnvironmentVariables" PatchApplicationRequest = "PatchApplication" PatchApplicationFeaturesRequest = "PatchApplicationFeatures" PatchEnvironmentVariableGroupRequest = "PatchEnvironmentVariableGroup" PatchBuildpackRequest = "PatchBuildpack" PatchDestinationRequest = "PatchDestination" PatchDomainRequest = "PatchDomain" PatchFeatureFlagRequest = "PatchFeatureFlag" PatchOrganizationRelationshipDefaultIsolationSegmentRequest = "PatchOrganizationRelationshipDefaultIsolationSegment" PatchOrganizationRequest = "PatchOrganization" PatchOrganizationQuotaRequest = "PatchOrganizationQuota" PatchProcessRequest = "PatchProcess" PatchRouteRequest = "PatchRoute" PatchSecurityGroupRequest = "PatchSecurityGroup" PatchServiceBrokerRequest = "PatchServiceBrokerRequest" PatchServiceInstanceRequest = "PatchServiceInstance" PatchServiceOfferingRequest = "PatchServiceOfferingRequest" PatchServicePlanRequest = "PatchServicePlanRequest" PatchSpaceRelationshipIsolationSegmentRequest = "PatchSpaceRelationshipIsolationSegment" PatchSpaceRequest = "PatchSpace" PatchSpaceFeaturesRequest = "PatchSpaceFeatures" PatchSpaceQuotaRequest = "PatchSpaceQuota" PatchStackRequest = "PatchStack" PatchMoveRouteRequest = "PatchMoveRouteRequest" PostApplicationActionApplyManifest = "PostApplicationActionApplyM" PostApplicationActionRestartRequest = "PostApplicationActionRestart" PostApplicationActionStartRequest = "PostApplicationActionStart" PostApplicationActionStopRequest = "PostApplicationActionStop" PostApplicationDeploymentActionCancelRequest = "PostApplicationDeploymentActionCancel" PostApplicationDeploymentRequest = "PostApplicationDeployment" PostApplicationProcessActionScaleRequest = "PostApplicationProcessActionScale" PostApplicationRequest = "PostApplication" PostApplicationTasksRequest = "PostApplicationTasks" PostBuildRequest = "PostBuild" PostBuildpackBitsRequest = "PostBuildpackBits" PostBuildpackRequest = "PostBuildpack" PostDomainRequest = "PostDomain" PostDropletBitsRequest = "PostDropletBits" PostDropletRequest = "PostDroplet" PostIsolationSegmentRelationshipOrganizationsRequest = "PostIsolationSegmentRelationshipOrganizations" PostIsolationSegmentsRequest = "PostIsolationSegments" PostOrganizationRequest = "PostOrganization" PostOrganizationQuotaRequest = "PostOrganizationQuota" PostOrganizationQuotaApplyRequest = "PostOrganizationQuotaApply" PostPackageRequest = "PostPackage" PostPackageBitsRequest = "PostPackageBits" PostResourceMatchesRequest = "PostResourceMatches" PostRoleRequest = "PostRole" PostRouteRequest = "PostRoute" PostRouteBindingRequest = "PostRouteBinding" PostSecurityGroupRequest = "PostSecurityGroup" PostSecurityGroupStagingSpaceRequest = "PostSecurityGroupStagingSpace" PostSecurityGroupRunningSpaceRequest = "PostSecurityGroupRunningSpace" PostServiceCredentialBindingRequest = "PostServiceCredentialBinding" PostServiceBrokerRequest = "PostServiceBroker" PostServiceInstanceRequest = "PostServiceInstance" PostServicePlanVisibilityRequest = "PostServicePlanVisibility" PostSpaceActionApplyManifestRequest = "PostSpaceActionApplyManifest" PostSpaceDiffManifestRequest = "PostSpaceDiffManifest" PostSpaceRequest = "PostSpace" PostSpaceQuotaRequest = "PostSpaceQuota" PostSpaceQuotaRelationshipsRequest = "PostSpaceQuotaRelationships" PostUserRequest = "PostUser" PutTaskCancelRequest = "PutTaskCancel" UnmapRouteRequest = "UnmapRoute" WhoAmI = "WhoAmI" )
Naming convention:
HTTP method + non-parameter parts of the path + "Request"
If the request returns a single entity by GUID, use the singular (for example /v3/organizations/:organization_guid is GetOrganization).
Variables ¶
var APIRoutes = map[string]Route{}/* 170 elements not displayed */
APIRoutes is a list of routes used by the router to construct request URLs.
Functions ¶
This section is empty.
Types ¶
type Params ¶
Params map path keys to values. For example, if your route has the path pattern:
/person/:person_id/pets/:pet_type
Then a correct Params map would look like:
router.Params{ "person_id": "123", "pet_type": "cats", }
type Route ¶
type Route struct { // Method is any valid HTTP method Method string // Path contains a path pattern Path string }
Route defines the property of a Cloud Controller V3 endpoint.
Method can be one of the following:
GET HEAD POST PUT PATCH DELETE CONNECT OPTIONS TRACE
Path conforms to Pat-style pattern matching. The following docs are taken from http://godoc.org/github.com/bmizerany/pat#PatternServeMux
Path Patterns may contain literals or captures. Capture names start with a colon and consist of letters A-Z, a-z, _, and 0-9. The rest of the pattern matches literally. The portion of the URL matching each name ends with an occurrence of the character in the pattern immediately following the name, or a /, whichever comes first. It is possible for a name to match the empty string.
Example pattern with one capture:
/hello/:name
Will match:
/hello/blake /hello/keith
Will not match:
/hello/blake/ /hello/blake/foo /foo /foo/bar
Example 2:
/hello/:name/
Will match:
/hello/blake/ /hello/keith/foo /hello/blake /hello/keith
Will not match:
/foo /foo/bar