Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding schemas to the service plan model for controller. #60

Merged
merged 1 commit into from
Aug 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"`
}
1 change: 1 addition & 0 deletions k8s/service_controller/model/service_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ type ServicePlan struct {
Description string `json:"description"`
Metadata interface{} `json:"metadata, omitempty"`
Free bool `json:"free, omitempty"`
Schemas *Schemas `json:"schemas, omitempty"`
}