compute

package
v0.0.0-...-2a79a0e Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0, MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ImageMap = map[string]string{
	"centos":      "centos-cloud",
	"coreos":      "coreos-cloud",
	"debian":      "debian-cloud",
	"opensuse":    "opensuse-cloud",
	"rhel":        "rhel-cloud",
	"rocky-linux": "rocky-linux-cloud",
	"sles":        "suse-cloud",
	"ubuntu":      "ubuntu-os-cloud",
	"windows":     "windows-cloud",
	"windows-sql": "windows-sql-cloud",
}

built-in projects to look for images/families containing the string on the left in

Functions

func DataSourceComputeNetworkPeering

func DataSourceComputeNetworkPeering() *schema.Resource

func DataSourceGoogleComputeAddress

func DataSourceGoogleComputeAddress() *schema.Resource

func DataSourceGoogleComputeBackendBucket

func DataSourceGoogleComputeBackendBucket() *schema.Resource

func DataSourceGoogleComputeBackendService

func DataSourceGoogleComputeBackendService() *schema.Resource

func DataSourceGoogleComputeDefaultServiceAccount

func DataSourceGoogleComputeDefaultServiceAccount() *schema.Resource

func DataSourceGoogleComputeDisk

func DataSourceGoogleComputeDisk() *schema.Resource

func DataSourceGoogleComputeForwardingRule

func DataSourceGoogleComputeForwardingRule() *schema.Resource

func DataSourceGoogleComputeGlobalAddress

func DataSourceGoogleComputeGlobalAddress() *schema.Resource

func DataSourceGoogleComputeGlobalForwardingRule

func DataSourceGoogleComputeGlobalForwardingRule() *schema.Resource

func DataSourceGoogleComputeHaVpnGateway

func DataSourceGoogleComputeHaVpnGateway() *schema.Resource

func DataSourceGoogleComputeHealthCheck

func DataSourceGoogleComputeHealthCheck() *schema.Resource

func DataSourceGoogleComputeInstanceGroup

func DataSourceGoogleComputeInstanceGroup() *schema.Resource

func DataSourceGoogleComputeInstanceGroupManager

func DataSourceGoogleComputeInstanceGroupManager() *schema.Resource

func DataSourceGoogleComputeInstanceSerialPort

func DataSourceGoogleComputeInstanceSerialPort() *schema.Resource

func DataSourceGoogleComputeLbIpRanges

func DataSourceGoogleComputeLbIpRanges() *schema.Resource

func DataSourceGoogleComputeNetwork

func DataSourceGoogleComputeNetwork() *schema.Resource

func DataSourceGoogleComputeNetworkEndpointGroup

func DataSourceGoogleComputeNetworkEndpointGroup() *schema.Resource

func DataSourceGoogleComputeNetworks

func DataSourceGoogleComputeNetworks() *schema.Resource

func DataSourceGoogleComputeRegionDisk

func DataSourceGoogleComputeRegionDisk() *schema.Resource

func DataSourceGoogleComputeRegionNetworkEndpointGroup

func DataSourceGoogleComputeRegionNetworkEndpointGroup() *schema.Resource

func DataSourceGoogleComputeReservation

func DataSourceGoogleComputeReservation() *schema.Resource

func DataSourceGoogleComputeRouter

func DataSourceGoogleComputeRouter() *schema.Resource

func DataSourceGoogleComputeRouterNat

func DataSourceGoogleComputeRouterNat() *schema.Resource

func DataSourceGoogleComputeSslCertificate

func DataSourceGoogleComputeSslCertificate() *schema.Resource

func DataSourceGoogleComputeSslPolicy

func DataSourceGoogleComputeSslPolicy() *schema.Resource

func DataSourceGoogleRegionComputeSslCertificate

func DataSourceGoogleRegionComputeSslCertificate() *schema.Resource

func PollCheckInstanceConfigDeleted

func PollCheckInstanceConfigDeleted(resp map[string]interface{}, respErr error) transport_tpg.PollResult

func PollCheckInstanceConfigInstanceDeleted

func PollCheckInstanceConfigInstanceDeleted(resp map[string]interface{}, respErr error) transport_tpg.PollResult

func ResolveImage

func ResolveImage(c *transport_tpg.Config, project, name, userAgent string) (string, error)

If the given name is a URL, return it. If it's in the form projects/{project}/global/images/{image}, return it If it's in the form projects/{project}/global/images/family/{family}, return it If it's in the form global/images/{image}, return it If it's in the form global/images/family/{family}, return it If it's in the form family/{family}, check if it's a family in the current project. If it is, return it as global/images/family/{family}.

If not, check if it could be a GCP-provided family, and if it exists. If it does, return it as projects/{project}/global/images/family/{family}.

If it's in the form {project}/{family-or-image}, check if it's an image in the named project. If it is, return it as projects/{project}/global/images/{image}.

If not, check if it's a family in the named project. If it is, return it as projects/{project}/global/images/family/{family}.

If it's in the form {family-or-image}, check if it's an image in the current project. If it is, return it as global/images/{image}.

If not, check if it could be a GCP-provided image, and if it exists. If it does, return it as projects/{project}/global/images/{image}.
If not, check if it's a family in the current project. If it is, return it as global/images/family/{family}.
If not, check if it could be a GCP-provided family, and if it exists. If it does, return it as projects/{project}/global/images/family/{family}

func ResourceComputeSharedVpcHostProject

func ResourceComputeSharedVpcHostProject() *schema.Resource

Types

type ComputeAddressId

type ComputeAddressId struct {
	Project string
	Region  string
	Name    string
}

func ParseComputeAddressId

func ParseComputeAddressId(id string, config *transport_tpg.Config) (*ComputeAddressId, error)

func (ComputeAddressId) CanonicalId

func (s ComputeAddressId) CanonicalId() string

Source Files

Jump to

Keyboard shortcuts

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