gcetasks

package
v0.0.0-...-6060be6 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const InstanceTemplateNamePrefixMaxLength = 63 - 10 - 1

InstanceTemplateNamePrefixMaxLength is the max length for the NamePrefix of an InstanceTemplate

52 = 63 - 10 - 1; 63 is the GCE limit; 10 is the length of seconds since epoch; and one for the dash

Variables

This section is empty.

Functions

func BuildImageURL

func BuildImageURL(defaultProject, nameSpec string) string

func BuildMachineTypeURL

func BuildMachineTypeURL(project, zone, name string) string

func ShortenImageURL

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

Types

type Address

type Address struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	IPAddress *string
}

func (*Address) CheckChanges

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

func (*Address) Find

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

func (*Address) FindIPAddress

func (e *Address) FindIPAddress(context *fi.Context) (*string, error)

func (*Address) GetLifecycle

func (o *Address) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Address) GetName

func (o *Address) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Address) RenderGCE

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

func (*Address) RenderTerraform

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

func (*Address) Run

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

func (*Address) SetLifecycle

func (o *Address) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Address) SetName

func (o *Address) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Address) String

func (o *Address) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*Address) TerraformAddress

func (e *Address) TerraformAddress() *terraform.Literal

func (*Address) UnmarshalJSON

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

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type ByKey

type ByKey []*compute.MetadataItems

func (ByKey) Len

func (a ByKey) Len() int

func (ByKey) Less

func (a ByKey) Less(i, j int) bool

func (ByKey) Swap

func (a ByKey) Swap(i, j int)

type Disk

type Disk struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	VolumeType *string
	SizeGB     *int64
	Zone       *string
	Labels     map[string]string
}

Disk represents a GCE PD

func (*Disk) CheckChanges

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

func (*Disk) CompareWithID

func (e *Disk) CompareWithID() *string

func (*Disk) Find

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

func (*Disk) GetLifecycle

func (o *Disk) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Disk) GetName

func (o *Disk) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Disk) RenderGCE

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

func (*Disk) RenderTerraform

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

func (*Disk) Run

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

func (*Disk) SetLifecycle

func (o *Disk) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Disk) SetName

func (o *Disk) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Disk) String

func (o *Disk) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*Disk) URL

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

func (*Disk) UnmarshalJSON

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

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type FirewallRule

type FirewallRule struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	Network      *Network
	SourceTags   []string
	SourceRanges []string
	TargetTags   []string
	Allowed      []string
}

FirewallRule represents a GCE firewall rules

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

func (o *FirewallRule) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*FirewallRule) GetName

func (o *FirewallRule) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

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

func (o *FirewallRule) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*FirewallRule) SetName

func (o *FirewallRule) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*FirewallRule) String

func (o *FirewallRule) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*FirewallRule) UnmarshalJSON

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

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type ForwardingRule

type ForwardingRule struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	PortRange  string
	TargetPool *TargetPool
	IPAddress  *Address
	IPProtocol string
}

ForwardingRule represents a GCE ForwardingRule

func (*ForwardingRule) CheckChanges

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

func (*ForwardingRule) CompareWithID

func (e *ForwardingRule) CompareWithID() *string

func (*ForwardingRule) Find

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

func (*ForwardingRule) GetLifecycle

func (o *ForwardingRule) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*ForwardingRule) GetName

func (o *ForwardingRule) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*ForwardingRule) RenderGCE

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

func (*ForwardingRule) RenderTerraform

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

func (*ForwardingRule) Run

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

func (*ForwardingRule) SetLifecycle

func (o *ForwardingRule) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*ForwardingRule) SetName

func (o *ForwardingRule) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*ForwardingRule) String

func (o *ForwardingRule) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (e *ForwardingRule) TerraformLink() *terraform.Literal

func (*ForwardingRule) UnmarshalJSON

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

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type Instance

type Instance struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	Network     *Network
	Tags        []string
	Preemptible *bool
	Image       *string
	Disks       map[string]*Disk

	CanIPForward *bool
	IPAddress    *Address
	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) GetLifecycle

func (o *Instance) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Instance) GetName

func (o *Instance) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

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

func (o *Instance) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Instance) SetName

func (o *Instance) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Instance) String

func (o *Instance) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*Instance) UnmarshalJSON

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

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type InstanceGroupManager

type InstanceGroupManager struct {
	Name      *string
	Lifecycle *fi.Lifecycle

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

	TargetPools []*TargetPool
}

func (*InstanceGroupManager) CheckChanges

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

func (*InstanceGroupManager) CompareWithID

func (e *InstanceGroupManager) CompareWithID() *string

func (*InstanceGroupManager) Find

func (*InstanceGroupManager) GetLifecycle

func (o *InstanceGroupManager) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*InstanceGroupManager) GetName

func (o *InstanceGroupManager) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*InstanceGroupManager) RenderGCE

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

func (*InstanceGroupManager) RenderTerraform

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

func (*InstanceGroupManager) Run

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

func (*InstanceGroupManager) SetLifecycle

func (o *InstanceGroupManager) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*InstanceGroupManager) SetName

func (o *InstanceGroupManager) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*InstanceGroupManager) String

func (o *InstanceGroupManager) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*InstanceGroupManager) UnmarshalJSON

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

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type InstanceTemplate

type InstanceTemplate struct {
	Name *string

	// NamePrefix is used as the prefix for the names; we add a timestamp.  Max = InstanceTemplateNamePrefixMaxLength
	NamePrefix *string

	Lifecycle *fi.Lifecycle

	Network *Network
	Tags    []string
	//Labels      map[string]string
	Preemptible *bool

	BootDiskImage  *string
	BootDiskSizeGB *int64
	BootDiskType   *string

	CanIPForward  *bool
	Subnet        *Subnet
	AliasIPRanges map[string]string

	Scopes []string

	Metadata    map[string]*fi.ResourceHolder
	MachineType *string

	// ID is the actual name
	ID *string
}

InstanceTemplate represents a GCE InstanceTemplate

func (*InstanceTemplate) CheckChanges

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

func (*InstanceTemplate) CompareWithID

func (e *InstanceTemplate) CompareWithID() *string

func (*InstanceTemplate) Find

func (*InstanceTemplate) GetLifecycle

func (o *InstanceTemplate) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*InstanceTemplate) GetName

func (o *InstanceTemplate) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

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

func (o *InstanceTemplate) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*InstanceTemplate) SetName

func (o *InstanceTemplate) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*InstanceTemplate) String

func (o *InstanceTemplate) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (i *InstanceTemplate) TerraformLink() *terraform.Literal

func (*InstanceTemplate) URL

func (e *InstanceTemplate) URL(project string) (string, error)

func (*InstanceTemplate) UnmarshalJSON

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

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type Network

type Network struct {
	Name      *string
	Lifecycle *fi.Lifecycle
	Mode      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) GetLifecycle

func (o *Network) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Network) GetName

func (o *Network) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

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

func (o *Network) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Network) SetName

func (o *Network) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Network) String

func (o *Network) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

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

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type StorageBucketAcl

type StorageBucketAcl struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	Bucket *string
	Entity *string

	Role *string
}

StorageBucketAcl represents an ACL rule on a google cloud storage bucket

func (*StorageBucketAcl) CheckChanges

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

func (*StorageBucketAcl) CompareWithID

func (e *StorageBucketAcl) CompareWithID() *string

func (*StorageBucketAcl) Find

func (*StorageBucketAcl) GetLifecycle

func (o *StorageBucketAcl) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*StorageBucketAcl) GetName

func (o *StorageBucketAcl) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*StorageBucketAcl) RenderGCE

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

func (*StorageBucketAcl) RenderTerraform

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

func (*StorageBucketAcl) Run

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

func (*StorageBucketAcl) SetLifecycle

func (o *StorageBucketAcl) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*StorageBucketAcl) SetName

func (o *StorageBucketAcl) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*StorageBucketAcl) String

func (o *StorageBucketAcl) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*StorageBucketAcl) UnmarshalJSON

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

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type StorageBucketIam

type StorageBucketIam struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	Bucket *string
	Entity *string

	Role *string
}

StorageBucketIam represents an IAM policy on a google cloud storage bucket

func (*StorageBucketIam) CheckChanges

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

func (*StorageBucketIam) CompareWithID

func (e *StorageBucketIam) CompareWithID() *string

func (*StorageBucketIam) Find

func (*StorageBucketIam) GetLifecycle

func (o *StorageBucketIam) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*StorageBucketIam) GetName

func (o *StorageBucketIam) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*StorageBucketIam) RenderGCE

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

func (*StorageBucketIam) RenderTerraform

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

func (*StorageBucketIam) Run

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

func (*StorageBucketIam) SetLifecycle

func (o *StorageBucketIam) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*StorageBucketIam) SetName

func (o *StorageBucketIam) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*StorageBucketIam) String

func (o *StorageBucketIam) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*StorageBucketIam) UnmarshalJSON

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

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type StorageObjectAcl

type StorageObjectAcl struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	Bucket *string
	Object *string
	Entity *string

	Role *string
}

StorageObjectAcl represents an ACL rule on a google cloud storage object

func (*StorageObjectAcl) CheckChanges

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

func (*StorageObjectAcl) CompareWithID

func (e *StorageObjectAcl) CompareWithID() *string

func (*StorageObjectAcl) Find

func (*StorageObjectAcl) GetLifecycle

func (o *StorageObjectAcl) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*StorageObjectAcl) GetName

func (o *StorageObjectAcl) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*StorageObjectAcl) RenderGCE

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

func (*StorageObjectAcl) RenderTerraform

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

func (*StorageObjectAcl) Run

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

func (*StorageObjectAcl) SetLifecycle

func (o *StorageObjectAcl) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*StorageObjectAcl) SetName

func (o *StorageObjectAcl) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*StorageObjectAcl) String

func (o *StorageObjectAcl) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*StorageObjectAcl) UnmarshalJSON

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

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type Subnet

type Subnet struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	GCEName *string
	Network *Network
	Region  *string
	CIDR    *string

	SecondaryIpRanges map[string]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) GetLifecycle

func (o *Subnet) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Subnet) GetName

func (o *Subnet) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

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

func (o *Subnet) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Subnet) SetName

func (o *Subnet) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Subnet) String

func (o *Subnet) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (*Subnet) TerraformName

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

func (*Subnet) URL

func (e *Subnet) URL(project string, region string) string

func (*Subnet) UnmarshalJSON

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

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type TargetPool

type TargetPool struct {
	Name      *string
	Lifecycle *fi.Lifecycle
}

TargetPool represents a GCE TargetPool

func (*TargetPool) CheckChanges

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

func (*TargetPool) CompareWithID

func (e *TargetPool) CompareWithID() *string

func (*TargetPool) Find

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

func (*TargetPool) GetLifecycle

func (o *TargetPool) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*TargetPool) GetName

func (o *TargetPool) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*TargetPool) RenderGCE

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

func (*TargetPool) RenderTerraform

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

func (*TargetPool) Run

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

func (*TargetPool) SetLifecycle

func (o *TargetPool) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*TargetPool) SetName

func (o *TargetPool) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*TargetPool) String

func (o *TargetPool) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (e *TargetPool) TerraformLink() *terraform.Literal

func (*TargetPool) URL

func (e *TargetPool) URL(cloud gce.GCECloud) string

func (*TargetPool) UnmarshalJSON

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

UnmarshalJSON implements conversion to JSON, supporting 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