gcetasks

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImageURL

func BuildImageURL(defaultProject, nameSpec string) string

func BuildInstanceTemplateURL

func BuildInstanceTemplateURL(project, name string) string

func BuildMachineTypeURL

func BuildMachineTypeURL(project, zone, name string) string

func ShortenImageURL

func ShortenImageURL(defaultProject string, imageURL string) (string, error)

Types

type FirewallRule

type FirewallRule struct {
	Name         *string
	Network      *Network
	SourceTags   []string
	SourceRanges []string
	TargetTags   []string
	Allowed      []string
}

func (*FirewallRule) CheckChanges

func (_ *FirewallRule) CheckChanges(a, e, changes *FirewallRule) error

func (*FirewallRule) CompareWithID

func (e *FirewallRule) CompareWithID() *string

func (*FirewallRule) Find

func (e *FirewallRule) Find(c *fi.Context) (*FirewallRule, error)

func (*FirewallRule) GetName

func (e *FirewallRule) GetName() *string

func (*FirewallRule) RenderGCE

func (_ *FirewallRule) RenderGCE(t *gce.GCEAPITarget, a, e, changes *FirewallRule) error

func (*FirewallRule) RenderTerraform

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

func (*FirewallRule) Run

func (e *FirewallRule) Run(c *fi.Context) error

func (*FirewallRule) SetName

func (e *FirewallRule) SetName(name string)

func (*FirewallRule) String

func (e *FirewallRule) String() string

func (*FirewallRule) UnmarshalJSON

func (o *FirewallRule) UnmarshalJSON(data []byte) error

type IPAddress

type IPAddress struct {
	Name    *string
	Address *string
}

func (*IPAddress) CheckChanges

func (_ *IPAddress) CheckChanges(a, e, changes *IPAddress) error

func (*IPAddress) Find

func (e *IPAddress) Find(c *fi.Context) (*IPAddress, error)

func (*IPAddress) FindAddress

func (e *IPAddress) FindAddress(context *fi.Context) (*string, error)

func (*IPAddress) GetName

func (e *IPAddress) GetName() *string

func (*IPAddress) RenderGCE

func (_ *IPAddress) RenderGCE(t *gce.GCEAPITarget, a, e, changes *IPAddress) error

func (*IPAddress) RenderTerraform

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

func (*IPAddress) Run

func (e *IPAddress) Run(c *fi.Context) error

func (*IPAddress) SetName

func (e *IPAddress) SetName(name string)

func (*IPAddress) String

func (e *IPAddress) String() string

func (*IPAddress) UnmarshalJSON

func (o *IPAddress) UnmarshalJSON(data []byte) error

type Instance

type Instance struct {
	Name        *string
	Network     *Network
	Tags        []string
	Preemptible *bool
	Image       *string
	Disks       map[string]*PersistentDisk

	CanIPForward *bool
	IPAddress    *IPAddress
	Subnet       *Subnet

	Scopes []string

	Metadata    map[string]fi.Resource
	Zone        *string
	MachineType *string
	// contains filtered or unexported fields
}

func (*Instance) CheckChanges

func (_ *Instance) CheckChanges(a, e, changes *Instance) error

func (*Instance) CompareWithID

func (e *Instance) CompareWithID() *string

func (*Instance) Find

func (e *Instance) Find(c *fi.Context) (*Instance, error)

func (*Instance) GetName

func (e *Instance) GetName() *string

func (*Instance) RenderGCE

func (_ *Instance) RenderGCE(t *gce.GCEAPITarget, a, e, changes *Instance) error

func (*Instance) RenderTerraform

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

func (*Instance) Run

func (e *Instance) Run(c *fi.Context) error

func (*Instance) SetName

func (e *Instance) SetName(name string)

func (*Instance) String

func (e *Instance) String() string

func (*Instance) UnmarshalJSON

func (o *Instance) UnmarshalJSON(data []byte) error

type InstanceTemplate

type InstanceTemplate struct {
	Name        *string
	Network     *Network
	Tags        []string
	Preemptible *bool

	BootDiskImage  *string
	BootDiskSizeGB *int64
	BootDiskType   *string

	CanIPForward *bool
	Subnet       *Subnet

	Scopes []string

	Metadata    map[string]fi.Resource
	MachineType *string
}

func (*InstanceTemplate) CheckChanges

func (_ *InstanceTemplate) CheckChanges(a, e, changes *InstanceTemplate) error

func (*InstanceTemplate) CompareWithID

func (e *InstanceTemplate) CompareWithID() *string

func (*InstanceTemplate) Find

func (*InstanceTemplate) GetName

func (e *InstanceTemplate) GetName() *string

func (*InstanceTemplate) RenderGCE

func (_ *InstanceTemplate) RenderGCE(t *gce.GCEAPITarget, a, e, changes *InstanceTemplate) error

func (*InstanceTemplate) RenderTerraform

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

func (*InstanceTemplate) Run

func (e *InstanceTemplate) Run(c *fi.Context) error

func (*InstanceTemplate) SetName

func (e *InstanceTemplate) SetName(name string)

func (*InstanceTemplate) String

func (e *InstanceTemplate) String() string
func (i *InstanceTemplate) TerraformLink() *terraform.Literal

func (*InstanceTemplate) UnmarshalJSON

func (o *InstanceTemplate) UnmarshalJSON(data []byte) error

type ManagedInstanceGroup

type ManagedInstanceGroup struct {
	Name *string

	Zone             *string
	BaseInstanceName *string
	InstanceTemplate *InstanceTemplate
	TargetSize       *int64
}

func (*ManagedInstanceGroup) CheckChanges

func (_ *ManagedInstanceGroup) CheckChanges(a, e, changes *ManagedInstanceGroup) error

func (*ManagedInstanceGroup) CompareWithID

func (e *ManagedInstanceGroup) CompareWithID() *string

func (*ManagedInstanceGroup) Find

func (*ManagedInstanceGroup) GetName

func (e *ManagedInstanceGroup) GetName() *string

func (*ManagedInstanceGroup) RenderGCE

func (_ *ManagedInstanceGroup) RenderGCE(t *gce.GCEAPITarget, a, e, changes *ManagedInstanceGroup) error

func (*ManagedInstanceGroup) RenderTerraform

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

func (*ManagedInstanceGroup) Run

func (e *ManagedInstanceGroup) Run(c *fi.Context) error

func (*ManagedInstanceGroup) SetName

func (e *ManagedInstanceGroup) SetName(name string)

func (*ManagedInstanceGroup) String

func (e *ManagedInstanceGroup) String() string

func (*ManagedInstanceGroup) UnmarshalJSON

func (o *ManagedInstanceGroup) UnmarshalJSON(data []byte) error

type Network

type Network struct {
	Name *string
	CIDR *string
}

func (*Network) CheckChanges

func (_ *Network) CheckChanges(a, e, changes *Network) error

func (*Network) CompareWithID

func (e *Network) CompareWithID() *string

func (*Network) Find

func (e *Network) Find(c *fi.Context) (*Network, error)

func (*Network) GetName

func (e *Network) GetName() *string

func (*Network) RenderGCE

func (_ *Network) RenderGCE(t *gce.GCEAPITarget, a, e, changes *Network) error

func (*Network) RenderTerraform

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

func (*Network) Run

func (e *Network) Run(c *fi.Context) error

func (*Network) SetName

func (e *Network) SetName(name string)

func (*Network) String

func (e *Network) String() string

func (*Network) TerraformName

func (i *Network) TerraformName() *terraform.Literal

func (*Network) URL

func (e *Network) URL(project string) string

func (*Network) UnmarshalJSON

func (o *Network) UnmarshalJSON(data []byte) error

type PersistentDisk

type PersistentDisk struct {
	Name       *string
	VolumeType *string
	SizeGB     *int64
	Zone       *string
}

func (*PersistentDisk) CheckChanges

func (_ *PersistentDisk) CheckChanges(a, e, changes *PersistentDisk) error

func (*PersistentDisk) CompareWithID

func (e *PersistentDisk) CompareWithID() *string

func (*PersistentDisk) Find

func (e *PersistentDisk) Find(c *fi.Context) (*PersistentDisk, error)

func (*PersistentDisk) GetName

func (e *PersistentDisk) GetName() *string

func (*PersistentDisk) RenderGCE

func (_ *PersistentDisk) RenderGCE(t *gce.GCEAPITarget, a, e, changes *PersistentDisk) error

func (*PersistentDisk) RenderTerraform

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

func (*PersistentDisk) Run

func (e *PersistentDisk) Run(c *fi.Context) error

func (*PersistentDisk) SetName

func (e *PersistentDisk) SetName(name string)

func (*PersistentDisk) String

func (e *PersistentDisk) String() string

func (*PersistentDisk) URL

func (e *PersistentDisk) URL(project string) string

func (*PersistentDisk) UnmarshalJSON

func (o *PersistentDisk) UnmarshalJSON(data []byte) error

type Subnet

type Subnet struct {
	Name    *string
	Network *Network
	Region  *string
	CIDR    *string
}

func (*Subnet) CheckChanges

func (_ *Subnet) CheckChanges(a, e, changes *Subnet) error

func (*Subnet) CompareWithID

func (e *Subnet) CompareWithID() *string

func (*Subnet) Find

func (e *Subnet) Find(c *fi.Context) (*Subnet, error)

func (*Subnet) GetName

func (e *Subnet) GetName() *string

func (*Subnet) RenderGCE

func (_ *Subnet) RenderGCE(t *gce.GCEAPITarget, a, e, changes *Subnet) error

func (*Subnet) RenderSubnet

func (_ *Subnet) RenderSubnet(t *terraform.TerraformTarget, a, e, changes *Subnet) error

func (*Subnet) Run

func (e *Subnet) Run(c *fi.Context) error

func (*Subnet) SetName

func (e *Subnet) SetName(name string)

func (*Subnet) String

func (e *Subnet) String() string

func (*Subnet) TerraformName

func (i *Subnet) TerraformName() *terraform.Literal

func (*Subnet) UnmarshalJSON

func (o *Subnet) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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