catalog

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	Services []brokerapi.Service `json:"services"`
}

Catalog is an upstream Catalog struct

type ComposeCatalog

type ComposeCatalog struct {
	Catalog      Catalog
	ComposeUnits ComposeUnits
}

func Load added in v0.3.0

func Load(input io.Reader) (*ComposeCatalog, error)

func (*ComposeCatalog) GetService

func (c *ComposeCatalog) GetService(id string) (*Service, error)

func (*ComposeCatalog) Validate

func (c *ComposeCatalog) Validate() error

type ComposeUnits

type ComposeUnits struct {
	Services []Service `json:"services"`
}

type Service

type Service struct {
	ID    string        `json:"id"`
	Name  string        `json:"name"`
	Plans []ServicePlan `json:"plans"`
}

func (*Service) GetPlan

func (s *Service) GetPlan(id string) (*ServicePlan, error)

type ServicePlan

type ServicePlan struct {
	ID       string              `json:"id"`
	Metadata ServicePlanMetadata `json:"metadata,omitempty"`
}

type ServicePlanMetadata

type ServicePlanMetadata struct {
	Units int `json:"units,omitempty"`
}

Jump to

Keyboard shortcuts

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