Skip to content

Commit

Permalink
Formatted all the go file using gofmt
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Myali <[email protected]>
  • Loading branch information
rohit-myali committed Jul 27, 2023
1 parent 8ebc0ea commit 313e3f2
Show file tree
Hide file tree
Showing 1,493 changed files with 10,100 additions and 10,196 deletions.
44 changes: 22 additions & 22 deletions citrixadc/data_source_citrixadc_hanode.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,92 +12,92 @@ func dataSourceCitrixAdcHanode() *schema.Resource {
return &schema.Resource{
Read: dataSourceCitrixAdcHanodeRead,
Schema: map[string]*schema.Schema{
"hanode_id": &schema.Schema{
"hanode_id": {
Type: schema.TypeInt,
Required: true,
ForceNew: true,
},
"ipaddress": &schema.Schema{
"ipaddress": {
Type: schema.TypeString,
Computed: true,
},
"curflips": &schema.Schema{
"curflips": {
Type: schema.TypeInt,
Computed: true,
},
"completedfliptime": &schema.Schema{
"completedfliptime": {
Type: schema.TypeInt,
Computed: true,
},
"deadinterval": &schema.Schema{
"deadinterval": {
Type: schema.TypeInt,
Computed: true,
},
"enaifaces": &schema.Schema{
"enaifaces": {
Type: schema.TypeInt,
Computed: true,
},
"failsafe": &schema.Schema{
"failsafe": {
Type: schema.TypeString,
Computed: true,
},
"haprop": &schema.Schema{
"haprop": {
Type: schema.TypeString,
Computed: true,
},
"hastatus": &schema.Schema{
"hastatus": {
Type: schema.TypeString,
Computed: true,
},
"hasync": &schema.Schema{
"hasync": {
Type: schema.TypeString,
Computed: true,
},
"hellointerval": &schema.Schema{
"hellointerval": {
Type: schema.TypeInt,
Computed: true,
},
"inc": &schema.Schema{
"inc": {
Type: schema.TypeString,
Computed: true,
},
"masterstatetime": &schema.Schema{
"masterstatetime": {
Type: schema.TypeInt,
Computed: true,
},
"maxflips": &schema.Schema{
"maxflips": {
Type: schema.TypeInt,
Computed: true,
},
"maxfliptime": &schema.Schema{
"maxfliptime": {
Type: schema.TypeInt,
Computed: true,
},
"netmask": &schema.Schema{
"netmask": {
Type: schema.TypeString,
Computed: true,
},
"routemonitor": &schema.Schema{
"routemonitor": {
Type: schema.TypeString,
Computed: true,
},
"routemonitorstate": &schema.Schema{
"routemonitorstate": {
Type: schema.TypeString,
Computed: true,
},
"ssl2": &schema.Schema{
"ssl2": {
Type: schema.TypeString,
Computed: true,
},
"state": &schema.Schema{
"state": {
Type: schema.TypeString,
Computed: true,
},
"syncstatusstrictmode": &schema.Schema{
"syncstatusstrictmode": {
Type: schema.TypeString,
Computed: true,
},
"syncvlan": &schema.Schema{
"syncvlan": {
Type: schema.TypeInt,
Computed: true,
},
Expand Down
4 changes: 2 additions & 2 deletions citrixadc/data_source_citrixadc_hanode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -32,7 +32,7 @@ func TestAccDataSourceHanode_basic(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
resource.TestStep{
{
Config: testAccDataSourceHanode,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("data.citrixadc_hanode.hanode", "ipaddress", "10.10.10.10"),
Expand Down
10 changes: 5 additions & 5 deletions citrixadc/data_source_citrixadc_nitro_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ func dataSourceCitrixAdcNitroInfo() *schema.Resource {
return &schema.Resource{
Read: dataSourceCitrixAdcNitroInfoRead,
Schema: map[string]*schema.Schema{
"workflow": &schema.Schema{
"workflow": {
Type: schema.TypeMap,
Elem: &schema.Schema{Type: schema.TypeString},
Optional: true,
Computed: true,
},
"primary_id": &schema.Schema{
"primary_id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"secondary_id": &schema.Schema{
"secondary_id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"nitro_list": &schema.Schema{
"nitro_list": {
Type: schema.TypeList,
Computed: true,
Optional: true,
Expand All @@ -47,7 +47,7 @@ func dataSourceCitrixAdcNitroInfo() *schema.Resource {
},
},
},
"nitro_object": &schema.Schema{
"nitro_object": {
Type: schema.TypeMap,
Elem: &schema.Schema{Type: schema.TypeString},
Optional: true,
Expand Down
6 changes: 3 additions & 3 deletions citrixadc/data_source_citrixadc_nitro_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -58,13 +58,13 @@ func TestAccNitroInfo_binding_list(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
resource.TestStep{
{
Config: testAccNitroInfoBindingList_step1,
Check: resource.ComposeTestCheckFunc(
//resource.TestCheckResourceAttr("data.citrixadc_nitro_info.sample", "nitro_list", "tolist"),
),
},
resource.TestStep{
{
Config: testAccNitroInfoBindingList_step1,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("data.citrixadc_nitro_info.sample", "nitro_list", "tolist"),
Expand Down
6 changes: 3 additions & 3 deletions citrixadc/data_source_citrixadc_nsversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ func dataSourceCitrixAdcNsversion() *schema.Resource {
return &schema.Resource{
Read: dataSourceCitrixAdcNsversionRead,
Schema: map[string]*schema.Schema{
"installedversion": &schema.Schema{
"installedversion": {
Type: schema.TypeBool,
Optional: true,
Computed: true,
},
"version": &schema.Schema{
"version": {
Type: schema.TypeString,
Computed: true,
},
"mode": &schema.Schema{
"mode": {
Type: schema.TypeInt,
Computed: true,
},
Expand Down
6 changes: 3 additions & 3 deletions citrixadc/data_source_citrixadc_nsversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -16,8 +16,8 @@ limitations under the License.
package citrixadc

import (
"testing"
"regexp"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
)
Expand All @@ -33,7 +33,7 @@ func TestAccNsversion_basic(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
resource.TestStep{
{
Config: testAccNsversion,
Check: resource.ComposeTestCheckFunc(
resource.TestMatchResourceAttr("data.citrixadc_nsversion.nsversion", "version", regexp.MustCompile("^Netscaler")),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func dataSourceCitrixAdcSslcipherSslvserverBindings() *schema.Resource {
return &schema.Resource{
Read: dataSourceCitrixAdcSslcipherSslvserverBindingsRead,
Schema: map[string]*schema.Schema{
"ciphername": &schema.Schema{
"ciphername": {
Type: schema.TypeString,
Required: true,
},
Expand All @@ -25,7 +25,7 @@ func dataSourceCitrixAdcSslcipherSslvserverBindings() *schema.Resource {
Computed: true,
},
*/
"bound_sslvservers": &schema.Schema{
"bound_sslvservers": {
Type: schema.TypeString,
Computed: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down Expand Up @@ -63,7 +63,7 @@ func TestAccSslcipherSslvserverBindings_basic(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
resource.TestStep{
{
Config: testAccSslvserverBindings_basic_step1,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("data.citrixadc_sslcipher_sslvserver_bindings.sslbindings", "bound_sslvservers", "tf_sslvserver"),
Expand Down
Loading

0 comments on commit 313e3f2

Please sign in to comment.