Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(55)

Delta Between Two Patch Sets: state/api/params/params.go

Issue 99670044: Add output for ensure-availability command.
Left Patch Set: Add output for ensure-availability command. Created 9 years, 10 months ago
Right Patch Set: Add output for ensure-availability command. Created 9 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 // Copyright 2013 Canonical Ltd. 1 // Copyright 2013 Canonical Ltd.
2 // Licensed under the AGPLv3, see LICENCE file for details. 2 // Licensed under the AGPLv3, see LICENCE file for details.
3 3
4 package params 4 package params
5 5
6 import ( 6 import (
7 "bytes" 7 "bytes"
8 "encoding/json" 8 "encoding/json"
9 "fmt" 9 "fmt"
10 10
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 Servers [][]instance.HostPort 717 Servers [][]instance.HostPort
718 } 718 }
719 719
720 // LoginResult holds the result of a Login call. 720 // LoginResult holds the result of a Login call.
721 type LoginResult struct { 721 type LoginResult struct {
722 Servers [][]instance.HostPort 722 Servers [][]instance.HostPort
723 } 723 }
724 724
725 // EnsureAvailability contains arguments for 725 // EnsureAvailability contains arguments for
726 // the EnsureAvailability client API call. 726 // the EnsureAvailability client API call.
727 type EnsureAvailability struct { 727 type EnsureAvailabilityParams struct {
728 » NumStateServers int 728 » NumStateServers int `bson:num-state-servers`
729 » Constraints constraints.Value 729 » Constraints constraints.Value `bson:constraints,omitempty`
730 // Series is the series to associate with new state server machines. 730 // Series is the series to associate with new state server machines.
731 // If this is empty, then the environment's default series is used. 731 // If this is empty, then the environment's default series is used.
732 » Series string 732 » Series string `bson:series,omitempty`
733 } 733 }
734 734
735 // EnsureAvailabilityResult lists the servers 735 // EnsureAvailabilityResult lists the servers
736 // that have been added, removed or maintained in the 736 // that have been added, removed or maintained in the
737 // pool as a result of an ensure-availability operation. 737 // pool as a result of an ensure-availability operation.
738 type EnsureAvailabilityResult struct { 738 type EnsureAvailabilityResult struct {
fwereade 2014/06/02 09:50:03 Surely, this is not an anythingResult? It's a Stat
739 » Added []string 739 » Added []string `bson:added,omitempty`
740 » Maintained []string 740 » Maintained []string `bson:maintained,omitempty`
741 » Removed []string 741 » Removed []string `bson:removed,omitempty`
742 } 742 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b