Documentation ¶
Index ¶
- Constants
- func MetadataFormatSchema(curMDMap map[string]interface{}, md *compute.Metadata) map[string]interface{}
- func MetadataRetryWrapper(update func() error) error
- func MetadataUpdate(oldMDMap map[string]interface{}, newMDMap map[string]interface{}, ...)
- func Provider() terraform.ResourceProvider
- func SignString(toSign []byte, cfg *jwt.Config) ([]byte, error)
- type ComputeOperationError
- type ComputeOperationWaitType
- type ComputeOperationWaiter
- type Config
- type ContainerOperationWaiter
- type DnsChangeWaiter
- type ResourceManagerOperationWaiter
- type RoleEntity
- type ServiceManagementOperationWaiter
- type SqlAdminOperationError
- type SqlAdminOperationWaiter
- type UrlData
Constants ¶
const FINGERPRINT_FAIL = "Invalid fingerprint."
const FINGERPRINT_RETRIES = 10
Variables ¶
This section is empty.
Functions ¶
func MetadataFormatSchema ¶
func MetadataFormatSchema(curMDMap map[string]interface{}, md *compute.Metadata) map[string]interface{}
Format metadata from the server data format -> schema data format
func MetadataRetryWrapper ¶
Since the google compute API uses optimistic locking, there is a chance we need to resubmit our updated metadata. To do this, you need to provide an update function that attempts to submit your metadata
func MetadataUpdate ¶
func MetadataUpdate(oldMDMap map[string]interface{}, newMDMap map[string]interface{}, serverMD *compute.Metadata)
Update the metadata (serverMD) according to the provided diff (oldMDMap v newMDMap).
func Provider ¶
func Provider() terraform.ResourceProvider
Provider returns a terraform.ResourceProvider.
Types ¶
type ComputeOperationError ¶
type ComputeOperationError compute.OperationError
ComputeOperationError wraps compute.OperationError and implements the error interface so it can be returned.
func (ComputeOperationError) Error ¶
func (e ComputeOperationError) Error() string
type ComputeOperationWaitType ¶
type ComputeOperationWaitType byte
OperationWaitType is an enum specifying what type of operation we're waiting on.
const ( ComputeOperationWaitInvalid ComputeOperationWaitType = iota ComputeOperationWaitGlobal ComputeOperationWaitRegion ComputeOperationWaitZone )
type ComputeOperationWaiter ¶
type ComputeOperationWaiter struct { Service *compute.Service Op *compute.Operation Project string Region string Type ComputeOperationWaitType Zone string }
func (*ComputeOperationWaiter) Conf ¶
func (w *ComputeOperationWaiter) Conf() *resource.StateChangeConf
func (*ComputeOperationWaiter) RefreshFunc ¶
func (w *ComputeOperationWaiter) RefreshFunc() resource.StateRefreshFunc
type Config ¶
type Config struct { Credentials string Project string Region string // contains filtered or unexported fields }
Config is the configuration structure used to instantiate the Google provider.
type ContainerOperationWaiter ¶
type ContainerOperationWaiter struct { Service *container.Service Op *container.Operation Project string Zone string }
func (*ContainerOperationWaiter) Conf ¶
func (w *ContainerOperationWaiter) Conf() *resource.StateChangeConf
func (*ContainerOperationWaiter) RefreshFunc ¶
func (w *ContainerOperationWaiter) RefreshFunc() resource.StateRefreshFunc
type DnsChangeWaiter ¶
type DnsChangeWaiter struct { Service *dns.Service Change *dns.Change Project string ManagedZone string }
func (*DnsChangeWaiter) Conf ¶
func (w *DnsChangeWaiter) Conf() *resource.StateChangeConf
func (*DnsChangeWaiter) RefreshFunc ¶
func (w *DnsChangeWaiter) RefreshFunc() resource.StateRefreshFunc
type ResourceManagerOperationWaiter ¶
type ResourceManagerOperationWaiter struct { Service *cloudresourcemanager.Service Op *cloudresourcemanager.Operation }
func (*ResourceManagerOperationWaiter) Conf ¶
func (w *ResourceManagerOperationWaiter) Conf() *resource.StateChangeConf
func (*ResourceManagerOperationWaiter) RefreshFunc ¶
func (w *ResourceManagerOperationWaiter) RefreshFunc() resource.StateRefreshFunc
type RoleEntity ¶
type ServiceManagementOperationWaiter ¶
type ServiceManagementOperationWaiter struct { Service *servicemanagement.APIService Op *servicemanagement.Operation }
func (*ServiceManagementOperationWaiter) Conf ¶
func (w *ServiceManagementOperationWaiter) Conf() *resource.StateChangeConf
func (*ServiceManagementOperationWaiter) RefreshFunc ¶
func (w *ServiceManagementOperationWaiter) RefreshFunc() resource.StateRefreshFunc
type SqlAdminOperationError ¶
type SqlAdminOperationError sqladmin.OperationErrors
SqlAdminOperationError wraps sqladmin.OperationError and implements the error interface so it can be returned.
func (SqlAdminOperationError) Error ¶
func (e SqlAdminOperationError) Error() string
type SqlAdminOperationWaiter ¶
type SqlAdminOperationWaiter struct { Service *sqladmin.Service Op *sqladmin.Operation Project string }
func (*SqlAdminOperationWaiter) Conf ¶
func (w *SqlAdminOperationWaiter) Conf() *resource.StateChangeConf
func (*SqlAdminOperationWaiter) RefreshFunc ¶
func (w *SqlAdminOperationWaiter) RefreshFunc() resource.StateRefreshFunc
type UrlData ¶
type UrlData struct { JwtConfig *jwt.Config ContentMd5 string ContentType string HttpMethod string Expires int HttpHeaders map[string]string Path string }
UrlData stores the values required to create a Signed Url
func (*UrlData) EncodedSignature ¶
EncodedSignature returns the Signature() after base64 encoding and url escaping
func (*UrlData) SignedUrl ¶
SignedUrl constructs the final signed URL a client can use to retrieve storage object
func (*UrlData) SigningString ¶
SigningString creates a string representation of the UrlData in a form ready for signing: see https://cloud.google.com/storage/docs/access-control/create-signed-urls-program Example output: ------------------- GET
1388534400 bucket/objectname -------------------
Source Files ¶
- compute_operation.go
- config.go
- container_operation.go
- data_source_google_compute_network.go
- data_source_google_compute_subnetwork.go
- data_source_google_compute_zones.go
- data_source_google_container_engine_versions.go
- data_source_google_iam_policy.go
- data_source_storage_object_signed_url.go
- disk_type.go
- dns_change.go
- image.go
- metadata.go
- provider.go
- resource_bigquery_dataset.go
- resource_bigquery_table.go
- resource_compute_address.go
- resource_compute_autoscaler.go
- resource_compute_backend_bucket.go
- resource_compute_backend_service.go
- resource_compute_disk.go
- resource_compute_firewall.go
- resource_compute_firewall_migrate.go
- resource_compute_forwarding_rule.go
- resource_compute_global_address.go
- resource_compute_global_forwarding_rule.go
- resource_compute_health_check.go
- resource_compute_http_health_check.go
- resource_compute_https_health_check.go
- resource_compute_image.go
- resource_compute_instance.go
- resource_compute_instance_group.go
- resource_compute_instance_group_manager.go
- resource_compute_instance_group_migrate.go
- resource_compute_instance_migrate.go
- resource_compute_instance_template.go
- resource_compute_network.go
- resource_compute_project_metadata.go
- resource_compute_region_backend_service.go
- resource_compute_route.go
- resource_compute_router.go
- resource_compute_router_interface.go
- resource_compute_router_peer.go
- resource_compute_snapshot.go
- resource_compute_ssl_certificate.go
- resource_compute_subnetwork.go
- resource_compute_target_http_proxy.go
- resource_compute_target_https_proxy.go
- resource_compute_target_pool.go
- resource_compute_url_map.go
- resource_compute_vpn_gateway.go
- resource_compute_vpn_tunnel.go
- resource_container_cluster.go
- resource_container_node_pool.go
- resource_dns_managed_zone.go
- resource_dns_record_set.go
- resource_google_project.go
- resource_google_project_iam_policy.go
- resource_google_project_migrate.go
- resource_google_project_services.go
- resource_google_service_account.go
- resource_pubsub_subscription.go
- resource_pubsub_topic.go
- resource_sql_database.go
- resource_sql_database_instance.go
- resource_sql_user.go
- resource_sql_user_migrate.go
- resource_storage_bucket.go
- resource_storage_bucket_acl.go
- resource_storage_bucket_object.go
- resource_storage_object_acl.go
- resourcemanager_operation.go
- service_scope.go
- serviceman_operation.go
- sqladmin_operation.go