diff --git a/docs/sdks/languages/go.mdx b/docs/sdks/languages/go.mdx index bbe8febca..a0bf48687 100644 --- a/docs/sdks/languages/go.mdx +++ b/docs/sdks/languages/go.mdx @@ -297,7 +297,7 @@ secrets, err := client.Secrets().List(infisical.ListSecretsOptions{ }) ``` -### Parameters +#### Parameters @@ -348,7 +348,7 @@ secret, err := client.Secrets().Retrieve(infisical.RetrieveSecretOptions{ }) ``` -### Parameters +#### Parameters @@ -391,7 +391,7 @@ secret, err := client.Secrets().Create(infisical.CreateSecretOptions{ }) ``` -### Parameters +#### Parameters @@ -439,7 +439,7 @@ secret, err := client.Secrets().Update(infisical.UpdateSecretOptions{ }) ``` -### Parameters +#### Parameters @@ -490,7 +490,7 @@ secret, err := client.Secrets().Delete(infisical.DeleteSecretOptions{ }) ``` -### Parameters +#### Parameters @@ -514,7 +514,77 @@ secret, err := client.Secrets().Delete(infisical.DeleteSecretOptions{ -## Working With folders + +### Batch Create Secrets + +`client.Secrets().Batch().Create(options)` + +Create multiple secrets in Infisical. + +```go + createdSecrets, err := client.Secrets().Batch().Create(infisical.BatchCreateSecretsOptions{ + Environment: "", + SecretPath: "", + ProjectID: "", + Secrets: []infisical.BatchCreateSecret{ + { + SecretKey: "SECRET-1", + SecretValue: "test-value-1", + }, + { + SecretKey: "SECRET-2", + SecretValue: "test-value-2", + }, + }, + }) +``` + +#### Parameters + + + + The slug name (dev, prod, etc) of the environment from where secrets should be fetched from. + + + The project ID where the secret lives in. + + + The path from where secret should be created. + + + + + The key of the secret to create. + + + The value of the secret. + + + The comment to add to the secret. + + + Whether or not to skip multiline encoding for the secret value. + + + The tag IDs to associate with the secret. + + + + + + The key of the metadata. + + + The value of the metadata. + + + + + + + + +## Working With Folders ### @@ -532,7 +602,7 @@ folders, err := client.Folders().List(infisical.ListFoldersOptions{ }) ``` -### Parameters +#### Parameters @@ -568,7 +638,7 @@ folder, err := client.Folders().Create(infisical.CreateFolderOptions{ }) ``` -### Parameters +#### Parameters @@ -606,7 +676,7 @@ folder, err := client.Folders().Update(infisical.UpdateFolderOptions{ }) ``` -### Parameters +#### Parameters @@ -648,7 +718,7 @@ deletedFolder, err := client.Folders().Delete(infisical.DeleteFolderOptions{ }) ``` -### Parameters +#### Parameters