dotasks

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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) Find

func (d *Droplet) Find(c *fi.Context) (*Droplet, error)

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) Run

func (d *Droplet) Run(c *fi.Context) 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) Find

func (v *Volume) Find(c *fi.Context) (*Volume, error)

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) RenderDO

func (_ *Volume) RenderDO(t *do.DOAPITarget, a, e, changes *Volume) error

func (*Volume) RenderTerraform

func (_ *Volume) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *Volume) error

func (*Volume) Run

func (v *Volume) Run(c *fi.Context) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL