LEFT | RIGHT |
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 Loading... |
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 { |
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 } |
LEFT | RIGHT |