service

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2016 License: Apache-2.0 Imports: 4 Imported by: 3

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name         string   `json:"name"`
	Urls         []string `json:"urls"`
	Guid         string   `json:"guid"`
	State        string   `json:"state"`
	ServiceNames []string `json:"service_names"`
}

type AtkInstance

type AtkInstance struct {
	Name        string           `json:"name"`
	Url         string           `json:"url"`
	Guid        string           `json:"guid"`
	ServiceGuid string           `json:"service_guid"`
	State       string           `json:"state"`
	Metadata    InstanceMetadata `json:"metadata"`
}

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

func (ByName) Len

func (a ByName) Len() int

func (ByName) Less

func (a ByName) Less(i, j int) bool

func (ByName) Swap

func (a ByName) Swap(i, j int)

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 InstanceMetadata struct {
	CreatorGuid string `json:"creator_guid"`
	CreatorName string `json:"creator_name"`
}

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 ResourceEntity struct {
	Label           string `json:"label"`
	ServicePlansUrl string `json:"service_plans_url"`
}

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 ResourceMetadata struct {
	Id  string `json:"guid"`
	Url string `json:"url"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL