Skip to content

Commit 03602fe

Browse files
Fix: fix typos (#997)
* Fix typos (#996) * fix formatting --------- Co-authored-by: Viktor Szépe <[email protected]>
1 parent 89fb0a0 commit 03602fe

31 files changed

+69
-69
lines changed

client/cloud_credentials.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "strings"
55
type AwsCredentialsType string
66
type GcpCredentialsType string
77
type AzureCredentialsType string
8-
type VaultCrednetialsType string
8+
type VaultCredentialsType string
99

1010
type Credentials struct {
1111
Id string `json:"id"`
@@ -92,7 +92,7 @@ type VaultCredentialsValuePayload struct {
9292
type VaultCredentialsCreatePayload struct {
9393
Name string `json:"name,omitempty"`
9494
OrganizationId string `json:"organizationId,omitempty"`
95-
Type VaultCrednetialsType `json:"type"`
95+
Type VaultCredentialsType `json:"type"`
9696
Value VaultCredentialsValuePayload `json:"value"`
9797
}
9898

@@ -127,7 +127,7 @@ const (
127127
AzureCostCredentialsType AzureCredentialsType = "AZURE_CREDENTIALS"
128128
AzureServicePrincipalCredentialsType AzureCredentialsType = "AZURE_SERVICE_PRINCIPAL_FOR_DEPLOYMENT"
129129
AzureOidcCredentialsType AzureCredentialsType = "AZURE_OIDC"
130-
VaultOidcCredentialsType VaultCrednetialsType = "VAULT_OIDC"
130+
VaultOidcCredentialsType VaultCredentialsType = "VAULT_OIDC"
131131
)
132132

133133
func (client *ApiClient) CloudCredentials(id string) (Credentials, error) {

client/cloud_credentials_project_assignment_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var _ = Describe("Credentials Project Assignment", func() {
1515

1616
Describe("AssignCloudCredentialsToProject", func() {
1717
expectedResponse := CloudCredentialsProjectAssignment{
18-
Id: "assigment id",
18+
Id: "assignment id",
1919
CredentialId: "credentialId",
2020
ProjectId: projectId,
2121
}

client/cost_credentials_project_assignment_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var _ = Describe(" Cost Credentials Project Assignment", func() {
1515

1616
Describe("AssignCostCredentialsToProject", func() {
1717
expectedResponse := CostCredentialProjectAssignment{
18-
ProjectId: "assigment id",
18+
ProjectId: "assignment id",
1919
CredentialsId: "credentialId",
2020
CredentialsType: "GCP_CREDENTIALS",
2121
}
@@ -79,13 +79,13 @@ var _ = Describe(" Cost Credentials Project Assignment", func() {
7979
var actualResult []CostCredentialProjectAssignment
8080

8181
firstResulteResponse := CostCredentialProjectAssignment{
82-
ProjectId: "assigment id",
82+
ProjectId: "assignment id",
8383
CredentialsId: "credentialId",
8484
CredentialsType: "GCP_CREDENTIALS",
8585
}
8686

8787
secondResulteResponse := CostCredentialProjectAssignment{
88-
ProjectId: "assigment id",
88+
ProjectId: "assignment id",
8989
CredentialsId: "credentialId-2",
9090
CredentialsType: "GCP_CREDENTIALS",
9191
}

client/custom_flow.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (client *ApiClient) CustomFlowCreate(payload CustomFlowCreatePayload) (*Cus
5454
return nil, err
5555
}
5656

57-
payloadWithOrganzationId := struct {
57+
payloadWithOrganizationId := struct {
5858
OrganizationId string `json:"organizationId"`
5959
CustomFlowCreatePayload
6060
}{
@@ -63,7 +63,7 @@ func (client *ApiClient) CustomFlowCreate(payload CustomFlowCreatePayload) (*Cus
6363
}
6464

6565
var result CustomFlow
66-
if err := client.http.Post("/custom-flow", &payloadWithOrganzationId, &result); err != nil {
66+
if err := client.http.Post("/custom-flow", &payloadWithOrganizationId, &result); err != nil {
6767
return nil, err
6868
}
6969

client/gpg_key.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func (client *ApiClient) GpgKeyCreate(payload *GpgKeyCreatePayload) (*GpgKey, er
2121
return nil, err
2222
}
2323

24-
payloadWithOrganzationId := struct {
24+
payloadWithOrganizationId := struct {
2525
OrganizationId string `json:"organizationId"`
2626
GpgKeyCreatePayload
2727
}{
@@ -30,7 +30,7 @@ func (client *ApiClient) GpgKeyCreate(payload *GpgKeyCreatePayload) (*GpgKey, er
3030
}
3131

3232
var result GpgKey
33-
if err := client.http.Post("/gpg-keys", payloadWithOrganzationId, &result); err != nil {
33+
if err := client.http.Post("/gpg-keys", payloadWithOrganizationId, &result); err != nil {
3434
return nil, err
3535
}
3636

client/kubernetes_credentials.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
package client
22

3-
type KubernetesCrednetialsType string
3+
type KubernetesCredentialsType string
44

55
const (
6-
KubeconfigCredentialsType KubernetesCrednetialsType = "K8S_KUBECONFIG_FILE"
7-
AwsEksCredentialsType KubernetesCrednetialsType = "K8S_EKS_AUTH"
8-
AzureAksCredentialsType KubernetesCrednetialsType = "K8S_AZURE_AKS_AUTH"
9-
GcpGkeCredentialsType KubernetesCrednetialsType = "K8S_GCP_GKE_AUTH"
6+
KubeconfigCredentialsType KubernetesCredentialsType = "K8S_KUBECONFIG_FILE"
7+
AwsEksCredentialsType KubernetesCredentialsType = "K8S_EKS_AUTH"
8+
AzureAksCredentialsType KubernetesCredentialsType = "K8S_AZURE_AKS_AUTH"
9+
GcpGkeCredentialsType KubernetesCredentialsType = "K8S_GCP_GKE_AUTH"
1010
)
1111

1212
type KubernetesCredentialsCreatePayload struct {
1313
Name string `json:"name"`
14-
Type KubernetesCrednetialsType `json:"type"`
14+
Type KubernetesCredentialsType `json:"type"`
1515
Value interface{} `json:"value"`
1616
}
1717

1818
type KubernetesCredentialsUpdatePayload struct {
19-
Type KubernetesCrednetialsType `json:"type"`
19+
Type KubernetesCredentialsType `json:"type"`
2020
Value interface{} `json:"value"`
2121
}
2222

client/sshkey_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ var _ = Describe("SshKey", func() {
8181
})
8282
})
8383

84-
Describe("SshKetUpdate", func() {
84+
Describe("SshKeyUpdate", func() {
8585
Describe("Success", func() {
8686
updateMockSshKey := mockSshKey
8787
updateMockSshKey.Value = "new-value"

docs/data-sources/project.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ data "env0_project" "default_project" {
1919
2020
data "env0_project" "with_parent_name_filter" {
2121
name = "Default Organization Project"
22-
parent_project_name = "parent projet name"
22+
parent_project_name = "parent project name"
2323
}
2424
2525
data "env0_project" "with_parent_id_filter" {
2626
name = "Default Organization Project"
27-
parent_project_id = "parent-projet-id"
27+
parent_project_id = "parent-project-id"
2828
}
2929
```
3030

docs/data-sources/user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ data "env0_user" "user_by_email_example" {
1818
}
1919
2020
output "user_id" {
21-
value = data.env0_user.user_by_email_exmple.id
21+
value = data.env0_user.user_by_email_example.id
2222
}
2323
```
2424

docs/resources/agent_project_assignment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ resource "env0_agent_project_assignment" "example" {
4343
Import is supported using the following syntax:
4444

4545
```shell
46-
terraform import env0_agent_project_assigment.example project_id
46+
terraform import env0_agent_project_assignment.example project_id
4747
```

0 commit comments

Comments
 (0)