rest_models

package
v0.0.0-...-5cf5000 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateInProgress = "in progress"
	StateSucceeded  = "succeeded"
	StateFailed     = "failed"

	OpProvision   = "provision"
	OpDeprovision = "deprovision"
)
View Source
const (
	DefaultServiceId     = "05FC7A18-5B52-4701-A475-5995B79DF2AD"
	PermissionlessPlanId = "15175506-D9F6-4CD8-AA1E-8F0AAFB99C07"
	PermissionedPlanId   = "4D64F255-927B-4807-A358-15CF06EC687B"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BindCredentials

type BindCredentials struct {
	Credentials BlockChainCredentials `json:"credentials"`
}

type BlockChainCredentials

type BlockChainCredentials struct {
	PeerEndpoints []string `json:"peers"`
}

type LastOperationResponse

type LastOperationResponse struct {
	State       string `json:"state"`
	Description string `json:"description"`
}

func GetLastOperationResponse

func GetLastOperationResponse(operation, boshState string) LastOperationResponse

type Plan

type Plan struct {
	Name        string       `json:"name"`
	Id          string       `json:"id"`
	Description string       `json:"description"`
	MetaData    PlanMetaData `json:"metadata"`
	Free        bool         `json:"free"`
}

type PlanMetaData

type PlanMetaData struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	DisplayName string   `json:"displayName"`
	Costs       []string `json:"costs"`
}

type Service

type Service struct {
	Name          string          `json:"name"`
	Id            string          `json:"id"`
	Description   string          `json:"description"`
	Tags          []string        `json:"tags"`
	Bindable      bool            `json:"bindable"`
	MetaData      ServiceMetaData `json:"metadata"`
	PlanUpdatable bool            `json:"plan_updateable"`
	Plans         []Plan          `json:"plans"`
}

func GetDefaultService

func GetDefaultService() Service

type ServiceBindingRequest

type ServiceBindingRequest struct {
	PlanId    string `json:"plan_id"`
	ServiceId string `json:"service_id"`
	AppGuid   string `json:"app_guid"`
}

type ServiceCatalog

type ServiceCatalog struct {
	Services Services `json:"services"`
}

type ServiceMetaData

type ServiceMetaData struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	DisplayName string `json:"displayName"`
}

type ServiceProvisionRequest

type ServiceProvisionRequest struct {
	OrganizationGuid string `json:"organization_guid"`
	PlanId           string `json:"plan_id"`
	ServiceId        string `json:"service_id"`
	SpaceGuid        string `json:"space_guid"`
}

type Services

type Services []Service

Jump to

Keyboard shortcuts

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