fix redeclaring issues

This commit is contained in:
ramonskie 2019-05-06 11:46:10 +02:00
parent 8ab8835b38
commit f1218cf1cf
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ package tiles
import "encoding/json"
type ExampleTile struct {
type ExampleServiceTile struct {
ProductName string `json:"product-name"`
ProductProperties struct{} `json:"product-properties"`
ResourceConfig struct{} `json:"resource-config"`
@ -22,7 +22,7 @@ type ExampleTile struct {
} `json:"network-properties"`
}
func (pc *ExampleTile) ToJson() ([]byte, error) {
func (pc *ExampleServiceTile) ToJson() ([]byte, error) {
pc.ProductName = "example"
return json.Marshal(pc)
}

View File

@ -1,5 +1,5 @@
name: example
label: example tile
label: example service tile
property_blueprints: []
job_types: []
service_broker: true