Update jen20/riviera dependency

This commit is contained in:
James Nugent 2016-02-18 13:34:38 -08:00 committed by stack72
parent 17a7990708
commit dbc5464a19
2 changed files with 11 additions and 12 deletions

View File

@ -37,7 +37,6 @@ func readTaggedFields(command interface{}) map[string]interface{} {
result := make(map[string]interface{}) result := make(map[string]interface{})
for i := 0; i < value.NumField(); i++ { // iterates through every struct type field for i := 0; i < value.NumField(); i++ { // iterates through every struct type field
fmt.Println(i, value.Type().Field(i).Name)
tag := value.Type().Field(i).Tag // returns the tag string tag := value.Type().Field(i).Tag // returns the tag string
tagValue := tag.Get("riviera") tagValue := tag.Get("riviera")
if tagValue != "" { if tagValue != "" {

View File

@ -3,17 +3,17 @@ package search
import "github.com/jen20/riviera/azure" import "github.com/jen20/riviera/azure"
type GetSearchServiceResponse struct { type GetSearchServiceResponse struct {
ID *string `mapstructure:"id"` ID *string `mapstructure:"id"`
Name string `json:"-"` Name string `json:"-"`
ResourceGroupName string `json:"-"` ResourceGroupName string `json:"-"`
Location string `json:"-" riviera:"location"` Location string `json:"-" riviera:"location"`
Tags map[string]*string `json:"-" riviera:"tags"` Tags map[string]*string `json:"-" riviera:"tags"`
Sku *Sku `json:"sku,omitempty"` Sku *Sku `json:"sku,omitempty"`
ReplicaCount *string `json:"replicaCount,omitempty"` ReplicaCount *string `json:"replicaCount,omitempty"`
PartitionCount *string `json:"partitionCount,omitempty"` PartitionCount *string `json:"partitionCount,omitempty"`
Status *string `mapstructure:"status"` Status *string `mapstructure:"status"`
StatusDetails *string `mapstructure:"statusDetails"` StatusDetails *string `mapstructure:"statusDetails"`
ProvisioningStatus *string `mapstructure:"provisioningStatus"` ProvisioningState *string `mapstructure:"provisioningState"`
} }
type GetSearchService struct { type GetSearchService struct {