LEFT | RIGHT |
(no file at all) | |
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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 // StatusParams holds parameters for the Status call. | 640 // StatusParams holds parameters for the Status call. |
641 type StatusParams struct { | 641 type StatusParams struct { |
642 Patterns []string | 642 Patterns []string |
643 } | 643 } |
644 | 644 |
645 // SetRsyslogCertParams holds parameters for the SetRsyslogCert call. | 645 // SetRsyslogCertParams holds parameters for the SetRsyslogCert call. |
646 type SetRsyslogCertParams struct { | 646 type SetRsyslogCertParams struct { |
647 CACert []byte | 647 CACert []byte |
648 } | 648 } |
649 | 649 |
| 650 // DistributionGroupResult contains the result of |
| 651 // the DistributionGroup provisioner API call. |
| 652 type DistributionGroupResult struct { |
| 653 Error *Error |
| 654 Result []instance.Id |
| 655 } |
| 656 |
| 657 // DistributionGroupResults is the bulk form of |
| 658 // DistributionGroupResult. |
| 659 type DistributionGroupResults struct { |
| 660 Results []DistributionGroupResult |
| 661 } |
| 662 |
650 // APIHostPortsResult holds the result of an APIHostPorts | 663 // APIHostPortsResult holds the result of an APIHostPorts |
651 // call. Each element in the top level slice holds | 664 // call. Each element in the top level slice holds |
652 // the addresses for one API server. | 665 // the addresses for one API server. |
653 type APIHostPortsResult struct { | 666 type APIHostPortsResult struct { |
654 Servers [][]instance.HostPort | 667 Servers [][]instance.HostPort |
655 } | 668 } |
656 | 669 |
657 // LoginResult holds the result of a Login call. | 670 // LoginResult holds the result of a Login call. |
658 type LoginResult struct { | 671 type LoginResult struct { |
659 Servers [][]instance.HostPort | 672 Servers [][]instance.HostPort |
660 } | 673 } |
661 | 674 |
662 // EnsureAvailability contains arguments for | 675 // EnsureAvailability contains arguments for |
663 // the EnsureAvailability client API call. | 676 // the EnsureAvailability client API call. |
664 type EnsureAvailability struct { | 677 type EnsureAvailability struct { |
665 NumStateServers int | 678 NumStateServers int |
666 Constraints constraints.Value | 679 Constraints constraints.Value |
667 // Series is the series to associate with new state server machines. | 680 // Series is the series to associate with new state server machines. |
668 // If this is empty, then the environment's default series is used. | 681 // If this is empty, then the environment's default series is used. |
669 Series string | 682 Series string |
670 } | 683 } |
LEFT | RIGHT |