gcetasks

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 16 Imported by: 143

Documentation

Index

Constants

View Source
const (
	// NATIPAllocationOptionAutoOnly is specified when NAT IPs are allocated by Google Cloud.
	NATIPAllocationOptionAutoOnly = "AUTO_ONLY"

	// SourceSubnetworkIPRangesAll is specified when all of the IP ranges in every subnetwork are allowed to be NAT-ed.
	SourceSubnetworkIPRangesAll = "ALL_SUBNETWORKS_ALL_IP_RANGES"
	// SourceSubnetworkIPRangesSpecificSubnets is specified when we should NAT only specific listed subnets.
	SourceSubnetworkIPRangesSpecificSubnets = "LIST_OF_SUBNETWORKS"
)
View Source
const (
	// terraform 0.12 with google cloud provider 3.2 will complain if the length of the name_prefix is more than 32
	InstanceTemplateNamePrefixMaxLength = 32
)

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 added in v1.10.0

type Address struct {
	Name      *string
	Lifecycle fi.Lifecycle

	IPAddress    *string
	ForAPIServer bool
}

+kops:fitask

func (*Address) CheckChanges added in v1.10.0

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

func (*Address) CompareWithID added in v1.19.0

func (e *Address) CompareWithID() *string

func (*Address) Find added in v1.10.0

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

func (*Address) FindIPAddress added in v1.10.0

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

func (*Address) GetLifecycle added in v1.10.0

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

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

func (*Address) GetName added in v1.10.0

func (o *Address) GetName() *string

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

func (*Address) IsForAPIServer added in v1.19.0

func (e *Address) IsForAPIServer() bool

func (*Address) RenderGCE added in v1.10.0

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

func (*Address) RenderTerraform added in v1.10.0

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

func (*Address) Run added in v1.10.0

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

func (*Address) SetLifecycle added in v1.10.0

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

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

func (*Address) String added in v1.10.0

func (o *Address) String() string

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

func (*Address) TerraformAddress added in v1.10.0

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

type ByKey added in v1.10.0

type ByKey []*compute.MetadataItems

func (ByKey) Len added in v1.10.0

func (a ByKey) Len() int

func (ByKey) Less added in v1.10.0

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

func (ByKey) Swap added in v1.10.0

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

type Disk added in v1.10.0

type Disk struct {
	Name      *string
	Lifecycle fi.Lifecycle

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

Disk represents a GCE PD +kops:fitask

func (*Disk) CheckChanges added in v1.10.0

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

func (*Disk) CompareWithID added in v1.10.0

func (e *Disk) CompareWithID() *string

func (*Disk) Find added in v1.10.0

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

func (*Disk) GetLifecycle added in v1.10.0

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

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

func (*Disk) GetName added in v1.10.0

func (o *Disk) GetName() *string

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

func (*Disk) RenderGCE added in v1.10.0

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

func (*Disk) RenderTerraform added in v1.10.0

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

func (*Disk) Run added in v1.10.0

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

func (*Disk) SetLifecycle added in v1.10.0

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

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

func (*Disk) String added in v1.10.0

func (o *Disk) String() string

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

func (*Disk) URL added in v1.10.0

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

type FirewallRule

type FirewallRule struct {
	Name      *string
	Lifecycle fi.Lifecycle

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

	// Disabled: Denotes whether the firewall rule is disabled. When set to
	// true, the firewall rule is not enforced and the network behaves as if
	// it did not exist. If this is unspecified, the firewall rule will be
	// enabled.
	Disabled bool
}

FirewallRule represents a GCE firewall rules +kops:fitask

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 added in v1.10.0

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 added in v1.10.0

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

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

func (*FirewallRule) String

func (o *FirewallRule) String() string

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

type ForwardingRule added in v1.10.0

type ForwardingRule struct {
	Name      *string
	Lifecycle fi.Lifecycle

	PortRange  string
	TargetPool *TargetPool
	IPAddress  *Address
	IPProtocol string
}

ForwardingRule represents a GCE ForwardingRule +kops:fitask

func (*ForwardingRule) CheckChanges added in v1.10.0

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

func (*ForwardingRule) CompareWithID added in v1.10.0

func (e *ForwardingRule) CompareWithID() *string

func (*ForwardingRule) Find added in v1.10.0

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

func (*ForwardingRule) GetLifecycle added in v1.10.0

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

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

func (*ForwardingRule) GetName added in v1.10.0

func (o *ForwardingRule) GetName() *string

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

func (*ForwardingRule) RenderGCE added in v1.10.0

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

func (*ForwardingRule) RenderTerraform added in v1.10.0

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

func (*ForwardingRule) Run added in v1.10.0

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

func (*ForwardingRule) SetLifecycle added in v1.10.0

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

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

func (*ForwardingRule) String added in v1.10.0

func (o *ForwardingRule) String() string

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

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

type Instance

type Instance struct {
	Name      *string
	Lifecycle fi.Lifecycle

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

	CanIPForward *bool
	IPAddress    *Address
	Subnet       *Subnet

	Scopes []string

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

+kops:fitask

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 added in v1.10.0

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 added in v1.10.0

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

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

func (*Instance) String

func (o *Instance) String() string

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

type InstanceGroupManager added in v1.10.0

type InstanceGroupManager struct {
	Name      *string
	Lifecycle fi.Lifecycle

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

	TargetPools []*TargetPool
}

+kops:fitask

func (*InstanceGroupManager) CheckChanges added in v1.10.0

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

func (*InstanceGroupManager) CompareWithID added in v1.10.0

func (e *InstanceGroupManager) CompareWithID() *string

func (*InstanceGroupManager) Find added in v1.10.0

func (*InstanceGroupManager) GetLifecycle added in v1.10.0

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

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

func (*InstanceGroupManager) GetName added in v1.10.0

func (o *InstanceGroupManager) GetName() *string

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

func (*InstanceGroupManager) RenderGCE added in v1.10.0

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

func (*InstanceGroupManager) RenderTerraform added in v1.10.0

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

func (*InstanceGroupManager) Run added in v1.10.0

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

func (*InstanceGroupManager) SetLifecycle added in v1.10.0

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

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

func (*InstanceGroupManager) String added in v1.10.0

func (o *InstanceGroupManager) String() string

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

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
	ServiceAccounts []string

	Metadata    map[string]fi.Resource
	MachineType *string

	// HasExternalIP is set to true when an external IP is allocated to an instance.
	HasExternalIP *bool

	// ID is the actual name
	ID *string
}

InstanceTemplate represents a GCE InstanceTemplate +kops:fitask

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 added in v1.10.0

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 added in v1.10.0

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

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

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() *terraformWriter.Literal

func (*InstanceTemplate) URL added in v1.10.0

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

type Network

type Network struct {
	Name      *string
	Lifecycle fi.Lifecycle
	Mode      string

	CIDR *string

	Shared *bool
}

+kops:fitask

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 added in v1.10.0

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 added in v1.10.0

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

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

func (*Network) String

func (o *Network) String() string

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

func (e *Network) TerraformLink() *terraformWriter.Literal

func (*Network) URL

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

type Router added in v1.21.0

type Router struct {
	Name      *string
	Lifecycle fi.Lifecycle

	Network *Network
	Region  *string

	NATIPAllocationOption         *string
	SourceSubnetworkIPRangesToNAT *string

	Subnetworks []*Subnet
}

Router is a Router task.

func (*Router) CheckChanges added in v1.21.0

func (*Router) CheckChanges(a, e, changes *Router) error

CheckChanges returns an error if a change is not allowed.

func (*Router) CompareWithID added in v1.21.0

func (r *Router) CompareWithID() *string

CompareWithID returns the name of the Router.

func (*Router) Find added in v1.21.0

func (r *Router) Find(c *fi.Context) (*Router, error)

Find discovers the Router in the cloud provider.

func (*Router) GetLifecycle added in v1.21.0

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

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

func (*Router) GetName added in v1.21.0

func (o *Router) GetName() *string

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

func (*Router) RenderGCE added in v1.21.0

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

RenderGCE creates or updates a Router.

func (*Router) RenderTerraform added in v1.21.0

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

RenderTerraform renders the Terraform config.

func (*Router) Run added in v1.21.0

func (r *Router) Run(c *fi.Context) error

Run implements fi.Task.Run.

func (*Router) SetLifecycle added in v1.21.0

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

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

func (*Router) String added in v1.21.0

func (o *Router) String() string

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

func (r *Router) TerraformLink() *terraformWriter.Literal

TerraformLink returns an expression for the name.

type StorageBucketAcl added in v1.10.0

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 +kops:fitask

func (*StorageBucketAcl) CheckChanges added in v1.10.0

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

func (*StorageBucketAcl) CompareWithID added in v1.10.0

func (e *StorageBucketAcl) CompareWithID() *string

func (*StorageBucketAcl) Find added in v1.10.0

func (*StorageBucketAcl) GetLifecycle added in v1.10.0

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

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

func (*StorageBucketAcl) GetName added in v1.10.0

func (o *StorageBucketAcl) GetName() *string

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

func (*StorageBucketAcl) RenderGCE added in v1.10.0

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

func (*StorageBucketAcl) RenderTerraform added in v1.10.0

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

func (*StorageBucketAcl) Run added in v1.10.0

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

func (*StorageBucketAcl) SetLifecycle added in v1.10.0

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

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

func (*StorageBucketAcl) String added in v1.10.0

func (o *StorageBucketAcl) String() string

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

type StorageObjectAcl added in v1.10.0

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 +kops:fitask

func (*StorageObjectAcl) CheckChanges added in v1.10.0

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

func (*StorageObjectAcl) CompareWithID added in v1.10.0

func (e *StorageObjectAcl) CompareWithID() *string

func (*StorageObjectAcl) Find added in v1.10.0

func (*StorageObjectAcl) GetLifecycle added in v1.10.0

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

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

func (*StorageObjectAcl) GetName added in v1.10.0

func (o *StorageObjectAcl) GetName() *string

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

func (*StorageObjectAcl) RenderGCE added in v1.10.0

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

func (*StorageObjectAcl) RenderTerraform added in v1.10.0

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

func (*StorageObjectAcl) Run added in v1.10.0

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

func (*StorageObjectAcl) SetLifecycle added in v1.10.0

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

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

func (*StorageObjectAcl) String added in v1.10.0

func (o *StorageObjectAcl) String() string

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

type Subnet

type Subnet struct {
	Name      *string
	Lifecycle fi.Lifecycle

	Network *Network
	Region  *string
	CIDR    *string

	SecondaryIpRanges map[string]string

	Shared *bool
}

+kops:fitask

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 added in v1.10.0

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 added in v1.10.0

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

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

func (*Subnet) String

func (o *Subnet) String() string

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

func (e *Subnet) TerraformLink() *terraformWriter.Literal

func (*Subnet) URL added in v1.15.1

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

type TargetPool added in v1.10.0

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

TargetPool represents a GCE TargetPool +kops:fitask

func (*TargetPool) CheckChanges added in v1.10.0

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

func (*TargetPool) CompareWithID added in v1.10.0

func (e *TargetPool) CompareWithID() *string

func (*TargetPool) Find added in v1.10.0

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

func (*TargetPool) GetLifecycle added in v1.10.0

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

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

func (*TargetPool) GetName added in v1.10.0

func (o *TargetPool) GetName() *string

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

func (*TargetPool) RenderGCE added in v1.10.0

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

func (*TargetPool) RenderTerraform added in v1.10.0

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

func (*TargetPool) Run added in v1.10.0

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

func (*TargetPool) SetLifecycle added in v1.10.0

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

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

func (*TargetPool) String added in v1.10.0

func (o *TargetPool) String() string

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

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

func (*TargetPool) URL added in v1.10.0

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

Jump to

Keyboard shortcuts

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