Skip to content

Commit

Permalink
Adding schemas to the service plan model for controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmelville committed Aug 22, 2016
1 parent 267fc5e commit 781dcba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions k8s/service_controller/model/schemas.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package model

type Schemas struct {
Instance Schema `json:"instance"`
Binding Schema `json:"binding"`
}

// A schema consists of the schema for inputs and the schema for outputs.
// Schemas are in the form of JSON Schema v4 (http://json-schema.org/).
type Schema struct {
Inputs string `json:"inputs"`
Outputs string `json:"outputs"`
}
2 changes: 2 additions & 0 deletions k8s/service_controller/model/service_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ type ServicePlan struct {
Description string `json:"description"`
Metadata interface{} `json:"metadata, omitempty"`
Free bool `json:"free, omitempty"`

Schemas *Schemas `json:"schemas, omitempty"`
}

0 comments on commit 781dcba

Please sign in to comment.