Documentation
¶
Index ¶
- type Droplet
- func (_ *Droplet) CheckChanges(a, e, changes *Droplet) error
- func (d *Droplet) CompareWithID() *string
- func (d *Droplet) Find(c *fi.Context) (*Droplet, error)
- func (o *Droplet) GetLifecycle() *fi.Lifecycle
- func (o *Droplet) GetName() *string
- func (_ *Droplet) RenderDO(t *do.DOAPITarget, a, e, changes *Droplet) error
- func (d *Droplet) Run(c *fi.Context) error
- func (o *Droplet) SetLifecycle(lifecycle fi.Lifecycle)
- func (o *Droplet) SetName(name string)
- func (o *Droplet) String() string
- func (o *Droplet) UnmarshalJSON(data []byte) error
- type Volume
- func (_ *Volume) CheckChanges(a, e, changes *Volume) error
- func (v *Volume) CompareWithID() *string
- func (v *Volume) Find(c *fi.Context) (*Volume, error)
- func (o *Volume) GetLifecycle() *fi.Lifecycle
- func (o *Volume) GetName() *string
- func (_ *Volume) RenderDO(t *do.DOAPITarget, a, e, changes *Volume) error
- func (_ *Volume) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *Volume) error
- func (v *Volume) Run(c *fi.Context) error
- func (o *Volume) SetLifecycle(lifecycle fi.Lifecycle)
- func (o *Volume) SetName(name string)
- func (o *Volume) String() string
- func (o *Volume) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Droplet ¶
type Droplet struct {
Name *string
Lifecycle *fi.Lifecycle
Region *string
Size *string
Image *string
SSHKey *string
Tags []string
Count int
UserData *fi.ResourceHolder
}
Droplet represents a group of droplets. In the future it will be managed by the Machines API
func (*Droplet) CheckChanges ¶
func (_ *Droplet) CheckChanges(a, e, changes *Droplet) error
func (*Droplet) CompareWithID ¶
func (d *Droplet) CompareWithID() *string
func (*Droplet) GetLifecycle ¶
func (o *Droplet) GetLifecycle() *fi.Lifecycle
GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle
func (*Droplet) GetName ¶
func (o *Droplet) GetName() *string
GetName returns the Name of the object, implementing fi.HasName
func (*Droplet) RenderDO ¶
func (_ *Droplet) RenderDO(t *do.DOAPITarget, a, e, changes *Droplet) error
func (*Droplet) SetLifecycle ¶
func (o *Droplet) SetLifecycle(lifecycle fi.Lifecycle)
SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle
func (*Droplet) SetName ¶
func (o *Droplet) SetName(name string)
SetName sets the Name of the object, implementing fi.SetName
func (*Droplet) String ¶
func (o *Droplet) String() string
String is the stringer function for the task, producing readable output using fi.TaskAsString
func (*Droplet) UnmarshalJSON ¶
func (o *Droplet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements conversion to JSON, supporitng an alternate specification of the object as a string
type Volume ¶
type Volume struct {
Name *string
ID *string
Lifecycle *fi.Lifecycle
SizeGB *int64
Region *string
}
func (*Volume) CheckChanges ¶
func (_ *Volume) CheckChanges(a, e, changes *Volume) error
func (*Volume) CompareWithID ¶
func (v *Volume) CompareWithID() *string
func (*Volume) GetLifecycle ¶
func (o *Volume) GetLifecycle() *fi.Lifecycle
GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle
func (*Volume) GetName ¶
func (o *Volume) GetName() *string
GetName returns the Name of the object, implementing fi.HasName
func (*Volume) RenderTerraform ¶
func (_ *Volume) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *Volume) error
func (*Volume) SetLifecycle ¶
func (o *Volume) SetLifecycle(lifecycle fi.Lifecycle)
SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle
func (*Volume) SetName ¶
func (o *Volume) SetName(name string)
SetName sets the Name of the object, implementing fi.SetName
func (*Volume) String ¶
func (o *Volume) String() string
String is the stringer function for the task, producing readable output using fi.TaskAsString
func (*Volume) UnmarshalJSON ¶
func (o *Volume) UnmarshalJSON(data []byte) error
UnmarshalJSON implements conversion to JSON, supporitng an alternate specification of the object as a string