~julian-edwards/gwacl/licence-readme-etc

« back to all changes in this revision

Viewing changes to xmlobjects.go

  • Committer: Tarmac
  • Author(s): Gavin Panella
  • Date: 2013-07-25 22:02:41 UTC
  • mfrom: (192.2.26 remove-role-endpoints)
  • Revision ID: tarmac-20130725220241-3h1spquba0z4x8tk
[r=julian-edwards,rvb][bug=][author=allenap] New method RemoveRoleEndpoints.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
// ConfigurationSet bits
40
40
//
41
41
 
 
42
const (
 
43
    CONFIG_SET_LINUX_PROVISIONING = "LinuxProvisioningConfiguration"
 
44
    CONFIG_SET_NETWORK            = "NetworkConfiguration"
 
45
)
 
46
 
42
47
// A ConfigurationSet object can be different things depending on its 'type'.
43
48
// The types we currently support are:
44
49
// - LinuxProvisioningConfigurationSet: configuration of a Linux VM
80
85
    Hostname, Username, Password, CustomData string,
81
86
    DisableSSHPasswordAuthentication string) *ConfigurationSet {
82
87
    return &ConfigurationSet{
83
 
        ConfigurationSetType:             "LinuxProvisioningConfiguration",
 
88
        ConfigurationSetType:             CONFIG_SET_LINUX_PROVISIONING,
84
89
        Hostname:                         Hostname,
85
90
        Username:                         Username,
86
91
        Password:                         Password,
93
98
func NewNetworkConfigurationSet(
94
99
    inputEndpoints []InputEndpoint, subnetNames []string) *ConfigurationSet {
95
100
    return &ConfigurationSet{
96
 
        ConfigurationSetType: "NetworkConfiguration",
 
101
        ConfigurationSetType: CONFIG_SET_NETWORK,
97
102
        InputEndpoints:       &inputEndpoints,
98
103
        SubnetNames:          &subnetNames,
99
104
    }