Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deploy ¶
type Deploy struct {
// contains filtered or unexported fields
}
func (*Deploy) Deploy ¶
func (d *Deploy) Deploy(options InstanceCreateOptions, dryRun bool) (string, error)
func (*Deploy) LoadConfigFromFile ¶
func (d *Deploy) LoadConfigFromFile(configFile string) (InstanceCreateOptions, error)
type InstanceCreateOptions ¶
type InstanceCreateOptions struct {
Region string `json:"region"`
Type string `json:"type"`
Label string `json:"label,omitempty"`
Group string `json:"group,omitempty"`
RootPass string `json:"root_pass,omitempty"`
AuthorizedKeys []string `json:"authorized_keys,omitempty"`
AuthorizedUsers []string `json:"authorized_users,omitempty"`
StackScriptID StringInt `json:"stackscript_id,omitempty"`
StackScriptData map[string]string `json:"stackscript_data,omitempty"`
BackupID StringInt `json:"backup_id,omitempty"`
Image string `json:"image,omitempty"`
Interfaces []linode.InstanceConfigInterface `json:"interfaces,omitempty"`
BackupsEnabled bool `json:"backups_enabled,omitempty,string"`
PrivateIP bool `json:"private_ip,omitempty,string"`
Tags []string `json:"tags,omitempty"`
// Creation fields that need to be set explicitly false, "", or 0 use pointers
SwapSize *int `json:"swap_size,omitempty"`
Booted *bool `json:"booted,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.