Dagger
Search

azure-key-vault

This module has been generated via dagger init and serves as a reference to basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them, as needed. They demonstrate usage of arguments and return types using simple echo and grep commands. The functions can be called from the dagger CLI or from one of the SDKs.

The first line in this comment block is a short description line and the rest is a long description with more detail on the module's purpose or usage, if appropriate. All modules should have a short description.

Installation

dagger install github.com/mustafayildirim/daggerverse/azure-key-vault@799a3bc4d2653dba9563f5cc5187de0b651922a4

Entrypoint

Return Type
AzureKeyVault
Example
dagger -m github.com/mustafayildirim/daggerverse/azure-key-vault@799a3bc4d2653dba9563f5cc5187de0b651922a4 call \
func (m *myModule) example() *AzureKeyVault  {
	return dag.
			AzureKeyVault()
}
@function
def example() -> dag.AzureKeyVault:
	return (
		dag.azure_key_vault()
	)
@func()
example(): AzureKeyVault {
	return dag
		.azureKeyVault()
}

Types

AzureKeyVault 🔗

getSecret() 🔗

Example: dagger call get-secret –tenant-id=env:AZURE_TENANT_ID –client-id=env:AZURE_CLIENT_ID –client-secret=env:AZURE_CLIENT_SECRET –key-vault-name quickstart-kv –secret-name test-secret1

Return Type
String !
Arguments
NameTypeDefault ValueDescription
keyVaultNameString !-No description provided
secretNameString !-No description provided
tenantIdSecret !-No description provided
clientIdSecret !-No description provided
clientSecretSecret !-No description provided
Example
dagger -m github.com/mustafayildirim/daggerverse/azure-key-vault@799a3bc4d2653dba9563f5cc5187de0b651922a4 call \
 get-secret --key-vault-name string --secret-name string --tenant-id env:MYSECRET --client-id env:MYSECRET --client-secret env:MYSECRET
func (m *myModule) example(ctx context.Context, keyVaultName string, secretName string, tenantId *Secret, clientId *Secret, clientSecret *Secret) string  {
	return dag.
			AzureKeyVault().
			GetSecret(ctx, keyVaultName, secretName, tenantId, clientId, clientSecret)
}
@function
async def example(key_vault_name: str, secret_name: str, tenant_id: dagger.Secret, client_id: dagger.Secret, client_secret: dagger.Secret) -> str:
	return await (
		dag.azure_key_vault()
		.get_secret(key_vault_name, secret_name, tenant_id, client_id, client_secret)
	)
@func()
async example(keyVaultName: string, secretName: string, tenantId: Secret, clientId: Secret, clientSecret: Secret): Promise<string> {
	return dag
		.azureKeyVault()
		.getSecret(keyVaultName, secretName, tenantId, clientId, clientSecret)
}