diff --git a/outscale/data_source_outscale_access_key.go b/outscale/data_source_outscale_access_key.go index bdbc16271..80d55c929 100644 --- a/outscale/data_source_outscale_access_key.go +++ b/outscale/data_source_outscale_access_key.go @@ -14,9 +14,9 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) -func dataSourceOutscaleAccessKey() *schema.Resource { +func DataSourceOutscaleAccessKey() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleAccessKeyRead, + Read: DataSourceOutscaleAccessKeyRead, Schema: map[string]*schema.Schema{ "filter": dataSourceFiltersSchema(), "access_key_id": { @@ -48,7 +48,7 @@ func dataSourceOutscaleAccessKey() *schema.Resource { } } -func dataSourceOutscaleAccessKeyRead(d *schema.ResourceData, meta interface{}) error { +func DataSourceOutscaleAccessKeyRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI filters, filtersOk := d.GetOk("filter") diff --git a/outscale/data_source_outscale_access_keys.go b/outscale/data_source_outscale_access_keys.go index 4edfcbf80..0f5cbbd6b 100644 --- a/outscale/data_source_outscale_access_keys.go +++ b/outscale/data_source_outscale_access_keys.go @@ -13,9 +13,9 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) -func dataSourceOutscaleAccessKeys() *schema.Resource { +func DataSourceOutscaleAccessKeys() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleAccessKeysRead, + Read: DataSourceOutscaleAccessKeysRead, Schema: map[string]*schema.Schema{ "filter": dataSourceFiltersSchema(), "access_key_ids": { @@ -67,7 +67,7 @@ func dataSourceOutscaleAccessKeys() *schema.Resource { } } -func dataSourceOutscaleAccessKeysRead(d *schema.ResourceData, meta interface{}) error { +func DataSourceOutscaleAccessKeysRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI filters, filtersOk := d.GetOk("filter") diff --git a/outscale/data_source_outscale_client_gateway.go b/outscale/data_source_outscale_client_gateway.go index 05daa68f9..501c8c705 100644 --- a/outscale/data_source_outscale_client_gateway.go +++ b/outscale/data_source_outscale_client_gateway.go @@ -13,9 +13,9 @@ import ( "github.com/outscale/terraform-provider-outscale/utils" ) -func dataSourceOutscaleClientGateway() *schema.Resource { +func DataSourceOutscaleClientGateway() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleClientGatewayRead, + Read: DataSourceOutscaleClientGatewayRead, Schema: map[string]*schema.Schema{ "filter": dataSourceFiltersSchema(), "bgp_asn": { @@ -47,7 +47,7 @@ func dataSourceOutscaleClientGateway() *schema.Resource { } } -func dataSourceOutscaleClientGatewayRead(d *schema.ResourceData, meta interface{}) error { +func DataSourceOutscaleClientGatewayRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI filters, filtersOk := d.GetOk("filter") diff --git a/outscale/data_source_outscale_client_gateways.go b/outscale/data_source_outscale_client_gateways.go index 78f04a311..a7769f539 100644 --- a/outscale/data_source_outscale_client_gateways.go +++ b/outscale/data_source_outscale_client_gateways.go @@ -12,9 +12,9 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) -func dataSourceOutscaleClientGateways() *schema.Resource { +func DataSourceOutscaleClientGateways() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleClientGatewaysRead, + Read: DataSourceOutscaleClientGatewaysRead, Schema: map[string]*schema.Schema{ "filter": dataSourceFiltersSchema(), "client_gateway_ids": { @@ -61,7 +61,7 @@ func dataSourceOutscaleClientGateways() *schema.Resource { } } -func dataSourceOutscaleClientGatewaysRead(d *schema.ResourceData, meta interface{}) error { +func DataSourceOutscaleClientGatewaysRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI filters, filtersOk := d.GetOk("filter") diff --git a/outscale/data_source_outscale_dhcp_option.go b/outscale/data_source_outscale_dhcp_option.go index db86012d0..67e885ec4 100644 --- a/outscale/data_source_outscale_dhcp_option.go +++ b/outscale/data_source_outscale_dhcp_option.go @@ -13,9 +13,9 @@ import ( "github.com/spf13/cast" ) -func dataSourceOutscaleDHCPOption() *schema.Resource { +func DataSourceOutscaleDHCPOption() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleDHCPOptionRead, + Read: DataSourceOutscaleDHCPOptionRead, Schema: map[string]*schema.Schema{ "filter": dataSourceFiltersSchema(), @@ -61,7 +61,7 @@ func dataSourceOutscaleDHCPOption() *schema.Resource { } } -func dataSourceOutscaleDHCPOptionRead(d *schema.ResourceData, meta interface{}) error { +func DataSourceOutscaleDHCPOptionRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI filters, filtersOk := d.GetOk("filter") diff --git a/outscale/data_source_outscale_dhcp_options.go b/outscale/data_source_outscale_dhcp_options.go index 0ac75eea3..9ad27c2ed 100644 --- a/outscale/data_source_outscale_dhcp_options.go +++ b/outscale/data_source_outscale_dhcp_options.go @@ -12,9 +12,9 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) -func dataSourceOutscaleDHCPOptions() *schema.Resource { +func DataSourceOutscaleDHCPOptions() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleDHCPOptionsRead, + Read: DataSourceOutscaleDHCPOptionsRead, Schema: map[string]*schema.Schema{ "filter": dataSourceFiltersSchema(), @@ -75,7 +75,7 @@ func dataSourceOutscaleDHCPOptions() *schema.Resource { } } -func dataSourceOutscaleDHCPOptionsRead(d *schema.ResourceData, meta interface{}) error { +func DataSourceOutscaleDHCPOptionsRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI filters, filtersOk := d.GetOk("filter") diff --git a/outscale/data_source_outscale_load_balancer_vm_health.go b/outscale/data_source_outscale_load_balancer_vm_health.go index 2abc983c1..2be2f13a1 100644 --- a/outscale/data_source_outscale_load_balancer_vm_health.go +++ b/outscale/data_source_outscale_load_balancer_vm_health.go @@ -15,9 +15,9 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) -func dataSourceOutscaleLoadBalancerVmsHeals() *schema.Resource { +func DataSourceOutscaleLoadBalancerVmsHeals() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleLoadBalancerVmsHealRead, + Read: DataSourceOutscaleLoadBalancerVmsHealRead, Schema: getDataSourceSchemas(map[string]*schema.Schema{ "load_balancer_name": { Type: schema.TypeString, @@ -63,7 +63,7 @@ func dataSourceOutscaleLoadBalancerVmsHeals() *schema.Resource { } } -func dataSourceOutscaleLoadBalancerVmsHealRead(d *schema.ResourceData, +func DataSourceOutscaleLoadBalancerVmsHealRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI diff --git a/outscale/data_source_outscale_load_balancer_vms.go b/outscale/data_source_outscale_load_balancer_vms.go index d7b6602d9..ba03d1333 100644 --- a/outscale/data_source_outscale_load_balancer_vms.go +++ b/outscale/data_source_outscale_load_balancer_vms.go @@ -5,9 +5,9 @@ import ( "github.com/outscale/terraform-provider-outscale/utils" ) -func dataSourceOutscaleLoadBalancerVms() *schema.Resource { +func DataSourceOutscaleLoadBalancerVms() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleLoadBalancerVmsRead, + Read: DataSourceOutscaleLoadBalancerVmsRead, Schema: getDataSourceSchemas(map[string]*schema.Schema{ "load_balancer_name": { Type: schema.TypeString, @@ -29,7 +29,7 @@ func dataSourceOutscaleLoadBalancerVms() *schema.Resource { } } -func dataSourceOutscaleLoadBalancerVmsRead(d *schema.ResourceData, +func DataSourceOutscaleLoadBalancerVmsRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI diff --git a/outscale/data_source_outscale_net_access_point.go b/outscale/data_source_outscale_net_access_point.go index a11199012..778cfc9b8 100644 --- a/outscale/data_source_outscale_net_access_point.go +++ b/outscale/data_source_outscale_net_access_point.go @@ -44,15 +44,15 @@ func napdSchema() map[string]*schema.Schema { } } -func dataSourceOutscaleNetAccessPoint() *schema.Resource { +func DataSourceOutscaleNetAccessPoint() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleNetAccessPointRead, + Read: DataSourceOutscaleNetAccessPointRead, Schema: getDataSourceSchemas(napdSchema()), } } -func dataSourceOutscaleNetAccessPointRead(d *schema.ResourceData, meta interface{}) error { +func DataSourceOutscaleNetAccessPointRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI filters, filtersOk := d.GetOk("filter") diff --git a/outscale/data_source_outscale_net_access_points.go b/outscale/data_source_outscale_net_access_points.go index befe276f4..e5530ecbe 100644 --- a/outscale/data_source_outscale_net_access_points.go +++ b/outscale/data_source_outscale_net_access_points.go @@ -53,9 +53,9 @@ func napSchema() map[string]*schema.Schema { } } -func dataSourceOutscaleNetAccessPoints() *schema.Resource { +func DataSourceOutscaleNetAccessPoints() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleNetAccessPointsRead, + Read: DataSourceOutscaleNetAccessPointsRead, Schema: getDataSourceSchemas(napSchema()), } @@ -94,7 +94,7 @@ func buildOutscaleDataSourcesNAPFilters(set *schema.Set) oscgo.FiltersNetAccessP return filters } -func dataSourceOutscaleNetAccessPointsRead(d *schema.ResourceData, meta interface{}) error { +func DataSourceOutscaleNetAccessPointsRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI filters, filtersOk := d.GetOk("filter") diff --git a/outscale/data_source_outscale_public_ips.go b/outscale/data_source_outscale_public_ips.go index 5478f1256..e32bdf031 100644 --- a/outscale/data_source_outscale_public_ips.go +++ b/outscale/data_source_outscale_public_ips.go @@ -15,7 +15,7 @@ import ( func DataSourceOutscalePublicIPS() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscalePublicIPSRead, + Read: DataSourceOutscalePublicIPSRead, Schema: oapiGetPublicIPSDataSourceSchema(), } } @@ -68,7 +68,7 @@ func oapiGetPublicIPSDataSourceSchema() map[string]*schema.Schema { } } -func dataSourceOutscalePublicIPSRead(d *schema.ResourceData, meta interface{}) error { +func DataSourceOutscalePublicIPSRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI req := oscgo.ReadPublicIpsRequest{} diff --git a/outscale/data_source_outscale_vms.go b/outscale/data_source_outscale_vms.go index 8a1e41918..d3963e5cc 100644 --- a/outscale/data_source_outscale_vms.go +++ b/outscale/data_source_outscale_vms.go @@ -15,7 +15,7 @@ import ( func DataSourceOutscaleVMS() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleVMSRead, + Read: DataSourceOutscaleVMSRead, Schema: DataSourceOutscaleVMSSchema(), } @@ -62,7 +62,7 @@ func DataSourceOutscaleVMSSchema() map[string]*schema.Schema { return wholeSchema } -func dataSourceOutscaleVMSRead(d *schema.ResourceData, meta interface{}) error { +func DataSourceOutscaleVMSRead(d *schema.ResourceData, meta interface{}) error { client := meta.(*OutscaleClient).OSCAPI filters, filtersOk := d.GetOk("filter") diff --git a/outscale/data_source_outscale_vpn_connection.go b/outscale/data_source_outscale_vpn_connection.go index e6a80c075..8d2b64232 100644 --- a/outscale/data_source_outscale_vpn_connection.go +++ b/outscale/data_source_outscale_vpn_connection.go @@ -14,9 +14,9 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) -func dataSourceOutscaleVPNConnection() *schema.Resource { +func DataSourceOutscaleVPNConnection() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleVPNConnectionRead, + Read: DataSourceOutscaleVPNConnectionRead, Schema: map[string]*schema.Schema{ "filter": dataSourceFiltersSchema(), "vpn_connection_id": { @@ -104,7 +104,7 @@ func dataSourceOutscaleVPNConnection() *schema.Resource { } } -func dataSourceOutscaleVPNConnectionRead(d *schema.ResourceData, meta interface{}) error { +func DataSourceOutscaleVPNConnectionRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI filters, filtersOk := d.GetOk("filter") diff --git a/outscale/data_source_outscale_vpn_connections.go b/outscale/data_source_outscale_vpn_connections.go index 792d87ab1..611b3af0a 100644 --- a/outscale/data_source_outscale_vpn_connections.go +++ b/outscale/data_source_outscale_vpn_connections.go @@ -12,9 +12,9 @@ import ( "github.com/outscale/terraform-provider-outscale/utils" ) -func dataSourceOutscaleVPNConnections() *schema.Resource { +func DataSourceOutscaleVPNConnections() *schema.Resource { return &schema.Resource{ - Read: dataSourceOutscaleVPNConnectionsRead, + Read: DataSourceOutscaleVPNConnectionsRead, Schema: map[string]*schema.Schema{ "filter": dataSourceFiltersSchema(), @@ -116,7 +116,7 @@ func dataSourceOutscaleVPNConnections() *schema.Resource { } } -func dataSourceOutscaleVPNConnectionsRead(d *schema.ResourceData, meta interface{}) error { +func DataSourceOutscaleVPNConnectionsRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI filters, filtersOk := d.GetOk("filter") diff --git a/outscale/provider.go b/outscale/provider.go index 038961028..a1a1ce2c7 100644 --- a/outscale/provider.go +++ b/outscale/provider.go @@ -80,7 +80,7 @@ func Provider() *schema.Provider { "outscale_net_access_point": ResourceOutscaleNetAccessPoint(), "outscale_nic_link": ResourceOutscaleNetworkInterfaceAttachment(), "outscale_nic_private_ip": ResourceOutscaleNetworkInterfacePrivateIP(), - "outscale_snapshot_attributes": resourcedOutscaleSnapshotAttributes(), + "outscale_snapshot_attributes": ResourcedOutscaleSnapshotAttributes(), "outscale_dhcp_option": ResourceOutscaleDHCPOption(), "outscale_client_gateway": ResourceOutscaleClientGateway(), "outscale_virtual_gateway": ResourceOutscaleVirtualGateway(), @@ -91,7 +91,7 @@ func Provider() *schema.Provider { "outscale_access_key": ResourceOutscaleAccessKey(), "outscale_load_balancer": ResourceOutscaleLoadBalancer(), "outscale_load_balancer_policy": ResourceOutscaleAppCookieStickinessPolicy(), - "outscale_load_balancer_vms": resourceLBUAttachment(), + "outscale_load_balancer_vms": ResourceLBUAttachment(), "outscale_load_balancer_attributes": ResourceOutscaleLoadBalancerAttributes(), "outscale_load_balancer_listener_rule": ResourceOutscaleLoadBalancerListenerRule(), "outscale_flexible_gpu": ResourceOutscaleFlexibleGpu(), @@ -138,25 +138,25 @@ func Provider() *schema.Provider { "outscale_net_peerings": DataSourceOutscaleLinPeeringsConnection(), "outscale_nics": DataSourceOutscaleNics(), "outscale_nic": DataSourceOutscaleNic(), - "outscale_client_gateway": dataSourceOutscaleClientGateway(), - "outscale_client_gateways": dataSourceOutscaleClientGateways(), + "outscale_client_gateway": DataSourceOutscaleClientGateway(), + "outscale_client_gateways": DataSourceOutscaleClientGateways(), "outscale_virtual_gateway": DataSourceOutscaleVirtualGateway(), "outscale_virtual_gateways": DataSourceOutscaleVirtualGateways(), - "outscale_vpn_connection": dataSourceOutscaleVPNConnection(), - "outscale_vpn_connections": dataSourceOutscaleVPNConnections(), - "outscale_access_key": dataSourceOutscaleAccessKey(), - "outscale_access_keys": dataSourceOutscaleAccessKeys(), - "outscale_dhcp_option": dataSourceOutscaleDHCPOption(), - "outscale_dhcp_options": dataSourceOutscaleDHCPOptions(), + "outscale_vpn_connection": DataSourceOutscaleVPNConnection(), + "outscale_vpn_connections": DataSourceOutscaleVPNConnections(), + "outscale_access_key": DataSourceOutscaleAccessKey(), + "outscale_access_keys": DataSourceOutscaleAccessKeys(), + "outscale_dhcp_option": DataSourceOutscaleDHCPOption(), + "outscale_dhcp_options": DataSourceOutscaleDHCPOptions(), "outscale_load_balancer": DataSourceOutscaleLoadBalancer(), "outscale_load_balancer_listener_rule": DataSourceOutscaleLoadBalancerLDRule(), "outscale_load_balancer_listener_rules": DataSourceOutscaleLoadBalancerLDRules(), "outscale_load_balancer_tags": DataSourceOutscaleLBUTags(), - "outscale_load_balancer_vm_health": dataSourceOutscaleLoadBalancerVmsHeals(), + "outscale_load_balancer_vm_health": DataSourceOutscaleLoadBalancerVmsHeals(), "outscale_load_balancers": DataSourceOutscaleLoadBalancers(), "outscale_vm_types": DataSourceOutscaleVMTypes(), - "outscale_net_access_point": dataSourceOutscaleNetAccessPoint(), - "outscale_net_access_points": dataSourceOutscaleNetAccessPoints(), + "outscale_net_access_point": DataSourceOutscaleNetAccessPoint(), + "outscale_net_access_points": DataSourceOutscaleNetAccessPoints(), "outscale_flexible_gpu": DataSourceOutscaleFlexibleGpu(), "outscale_flexible_gpus": DataSourceOutscaleFlexibleGpus(), "outscale_subregions": DataSourceOutscaleSubregions(), diff --git a/outscale/resource_outscale_load_balancer_vms.go b/outscale/resource_outscale_load_balancer_vms.go index 81bfa2816..495a44877 100644 --- a/outscale/resource_outscale_load_balancer_vms.go +++ b/outscale/resource_outscale_load_balancer_vms.go @@ -13,12 +13,12 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) -func resourceLBUAttachment() *schema.Resource { +func ResourceLBUAttachment() *schema.Resource { return &schema.Resource{ - Create: resourceLBUAttachmentCreate, - Read: resourceLBUAttachmentRead, - Update: resourceLBUAttachmentUpdate, - Delete: resourceLBUAttachmentDelete, + Create: ResourceLBUAttachmentCreate, + Read: ResourceLBUAttachmentRead, + Update: ResourceLBUAttachmentUpdate, + Delete: ResourceLBUAttachmentDelete, Schema: map[string]*schema.Schema{ "load_balancer_name": { @@ -39,7 +39,7 @@ func resourceLBUAttachment() *schema.Resource { }, } } -func resourceLBUAttachmentCreate(d *schema.ResourceData, meta interface{}) error { +func ResourceLBUAttachmentCreate(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI lbuName := d.Get("load_balancer_name").(string) vmIds := d.Get("backend_vm_ids").(*schema.Set) @@ -63,10 +63,10 @@ func resourceLBUAttachmentCreate(d *schema.ResourceData, meta interface{}) error return fmt.Errorf("Failure registering backend_vm_ids with LBU: %s", err) } d.SetId(resource.PrefixedUniqueId(fmt.Sprintf("%s-", lbuName))) - return resourceLBUAttachmentRead(d, meta) + return ResourceLBUAttachmentRead(d, meta) } -func resourceLBUAttachmentRead(d *schema.ResourceData, meta interface{}) error { +func ResourceLBUAttachmentRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI lbuName := d.Get("load_balancer_name").(string) lb, _, err := readResourceLb(conn, lbuName) @@ -99,7 +99,7 @@ func resourceLBUAttachmentRead(d *schema.ResourceData, meta interface{}) error { return nil } -func resourceLBUAttachmentUpdate(d *schema.ResourceData, meta interface{}) error { +func ResourceLBUAttachmentUpdate(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI lbuName := d.Get("load_balancer_name").(string) var err error @@ -151,10 +151,10 @@ func resourceLBUAttachmentUpdate(d *schema.ResourceData, meta interface{}) error return fmt.Errorf("Failure deregistering old backend_vm_ids from LBU: %s", err) } } - return resourceLBUAttachmentRead(d, meta) + return ResourceLBUAttachmentRead(d, meta) } -func resourceLBUAttachmentDelete(d *schema.ResourceData, meta interface{}) error { +func ResourceLBUAttachmentDelete(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI lbuName := d.Get("load_balancer_name").(string) vmIds := d.Get("backend_vm_ids").(*schema.Set) diff --git a/outscale/resource_outscale_snapshot_attributes.go b/outscale/resource_outscale_snapshot_attributes.go index f8ade8604..c6e90b43f 100644 --- a/outscale/resource_outscale_snapshot_attributes.go +++ b/outscale/resource_outscale_snapshot_attributes.go @@ -12,11 +12,11 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) -func resourcedOutscaleSnapshotAttributes() *schema.Resource { +func ResourcedOutscaleSnapshotAttributes() *schema.Resource { return &schema.Resource{ - Create: resourcedOutscaleSnapshotAttributesCreate, - Read: resourcedOutscaleSnapshotAttributesRead, - Delete: resourcedOutscaleSnapshotAttributesDelete, + Create: ResourcedOutscaleSnapshotAttributesCreate, + Read: ResourcedOutscaleSnapshotAttributesRead, + Delete: ResourcedOutscaleSnapshotAttributesDelete, Schema: map[string]*schema.Schema{ "permissions_to_create_volume_additions": { @@ -73,7 +73,7 @@ func resourcedOutscaleSnapshotAttributes() *schema.Resource { } } -func resourcedOutscaleSnapshotAttributesCreate(d *schema.ResourceData, meta interface{}) error { +func ResourcedOutscaleSnapshotAttributesCreate(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI snapshotID := d.Get("snapshot_id").(string) @@ -148,10 +148,10 @@ func resourcedOutscaleSnapshotAttributesCreate(d *schema.ResourceData, meta inte } d.SetId(snapshotID) - return resourcedOutscaleSnapshotAttributesRead(d, meta) + return ResourcedOutscaleSnapshotAttributesRead(d, meta) } -func resourcedOutscaleSnapshotAttributesRead(d *schema.ResourceData, meta interface{}) error { +func ResourcedOutscaleSnapshotAttributesRead(d *schema.ResourceData, meta interface{}) error { conn := meta.(*OutscaleClient).OSCAPI var resp oscgo.ReadSnapshotsResponse @@ -190,7 +190,7 @@ func resourcedOutscaleSnapshotAttributesRead(d *schema.ResourceData, meta interf return nil } -func resourcedOutscaleSnapshotAttributesDelete(d *schema.ResourceData, meta interface{}) error { +func ResourcedOutscaleSnapshotAttributesDelete(d *schema.ResourceData, meta interface{}) error { d.SetId("") return nil