Documentation ¶
Overview ¶
*
- Copyright (c) 2015 Intel Corporation *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright (c) 2015 Intel Corporation *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright (c) 2015 Intel Corporation *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright (c) 2015 Intel Corporation *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
Index ¶
- type Application
- type AtkInstance
- type AtkInstances
- type AtkInstancesResponse
- type AtkListService
- type ByName
- type CloudController
- type Credentials
- type ExtendedService
- type ExtendedSpaceSummary
- type InstanceMetadata
- type InternalServerError
- type Resource
- type ResourceEntity
- type ResourceList
- type ResourceMetadata
- type Service
- type ServiceCatalog
- type ServicePlan
- type ServicePlanService
- type SpaceSummary
- type SpaceSummaryHelper
- type UserProvided
- type VcapServices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type AtkInstance ¶
type AtkInstances ¶
type AtkInstances struct { Instances []AtkInstance `json:"instances"` ServicePlanGuid string `json:"service_plan_guid"` }
func (*AtkInstances) Append ¶
func (a *AtkInstances) Append(another *AtkInstances)
func (*AtkInstances) Sort ¶
func (a *AtkInstances) Sort()
type AtkInstancesResponse ¶
type AtkInstancesResponse struct { // in: body Body AtkInstances }
AtkInstances swagger:response AtkInstancesResponse
type AtkListService ¶
type AtkListService struct { SpaceSummaryHelper SpaceSummaryHelper // contains filtered or unexported fields }
func NewAtkListService ¶
func NewAtkListService(cloudController CloudController, serviceCatalog ServiceCatalog, SpaceSummaryHelper SpaceSummaryHelper) *AtkListService
func (*AtkListService) GetAllInstances ¶
func (p *AtkListService) GetAllInstances(atkLabel string, orgId string) (*AtkInstances, error)
type ByName ¶
type ByName []AtkInstance
type CloudController ¶
type CloudController interface { Spaces(organization string) (*ResourceList, error) SpaceSummary(space string) (*SpaceSummary, error) Services() (*ResourceList, error) ServicesFiltered(Name string) (*ResourceList, error) ServicePlans(Name string) (*ResourceList, error) }
type Credentials ¶
type Credentials struct {
Host string `json:"host"`
}
type ExtendedService ¶
type ExtendedService struct { Name string `json:"name"` Guid string `json:"guid"` ServicePlan ServicePlan `json:"service_plan"` Metadata InstanceMetadata `json:"metadata"` }
type ExtendedSpaceSummary ¶
type ExtendedSpaceSummary struct { Apps []Application `json:"apps"` Services []ExtendedService `json:"services"` }
type InstanceMetadata ¶
type InternalServerError ¶
type InternalServerError struct{}
InternalServerError swagger:response InternalServerError
type Resource ¶
type Resource struct { Metadata ResourceMetadata `json:"metadata"` Entity ResourceEntity `json:"entity"` }
type ResourceEntity ¶
type ResourceList ¶
type ResourceList struct { Count int `json:"total_results"` Resources []Resource `json:"resources"` }
func (*ResourceList) Contains ¶
func (rl *ResourceList) Contains(Id string) bool
func (*ResourceList) IdList ¶
func (rl *ResourceList) IdList() []string
type ResourceMetadata ¶
type Service ¶
type Service struct { Name string `json:"name"` Guid string `json:"guid"` ServicePlan ServicePlan `json:"service_plan"` }
type ServiceCatalog ¶
type ServiceCatalog interface {
ExtendedSummary(space string) (*ExtendedSpaceSummary, error)
}
type ServicePlan ¶
type ServicePlan struct { Guid string `json:"guid"` Service ServicePlanService `json:"service"` }
type ServicePlanService ¶
type ServicePlanService struct {
Label string `json:"label"`
}
type SpaceSummary ¶
type SpaceSummary struct { Apps []Application `json:"apps"` Services []Service `json:"services"` }
type SpaceSummaryHelper ¶
type SpaceSummaryHelper struct {
// contains filtered or unexported fields
}
func NewSpaceSummaryHelper ¶
func NewSpaceSummaryHelper() SpaceSummaryHelper
type UserProvided ¶
type UserProvided struct { UpsiCredentials Credentials `json:"credentials"` UpsiName string `json:"name"` }
type VcapServices ¶
type VcapServices struct {
UpsisList []UserProvided `json:"user-provided"`
}
Click to show internal directories.
Click to hide internal directories.