Dagger
Search

onepassword

No long description provided.

Installation

dagger install github.com/replicatedhq/daggerverse/onepassword@472aab2feb7c9be45d30935a9476353c0ccbf91e

Entrypoint

Return Type
Onepassword
Example
dagger -m github.com/replicatedhq/daggerverse/onepassword@472aab2feb7c9be45d30935a9476353c0ccbf91e call \
func (m *myModule) example() *Onepassword  {
	return dag.
			Onepassword()
}
@function
def example() -> dag.Onepassword:
	return (
		dag.onepassword()
	)
@func()
example(): Onepassword {
	return dag
		.onepassword()
}

Types

Onepassword 🔗

findSecret() 🔗

Returns the value of a secret from the specificed vault, with the specified name and field.

Return Type
Secret !
Arguments
NameTypeDefault ValueDescription
serviceAccountSecret !-1password service account
vaultNameString !-Name of the vault to search
itemNameString !-Name of the item to find
fieldNameString !-Name of the field to find
sectionString -Limit to a specific section of the item
Example
dagger -m github.com/replicatedhq/daggerverse/onepassword@472aab2feb7c9be45d30935a9476353c0ccbf91e call \
 find-secret --service-account env:MYSECRET --vault-name string --item-name string --field-name string
func (m *myModule) example(serviceAccount *Secret, vaultName string, itemName string, fieldName string) *Secret  {
	return dag.
			Onepassword().
			FindSecret(serviceAccount, vaultName, itemName, fieldName)
}
@function
def example(service_account: dagger.Secret, vault_name: str, item_name: str, field_name: str) -> dagger.Secret:
	return (
		dag.onepassword()
		.find_secret(service_account, vault_name, item_name, field_name)
	)
@func()
example(serviceAccount: Secret, vaultName: string, itemName: string, fieldName: string): Secret {
	return dag
		.onepassword()
		.findSecret(serviceAccount, vaultName, itemName, fieldName)
}

putSecret() 🔗

Set the value of a secret in the specified vault, with the specified name and field.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
serviceAccountSecret !-1password service account
vaultNameString !-Name of the vault to search
itemNameString !-Name of the item to find
fieldNameString !-Name of the field to find
valueString !-Value to set
Example
dagger -m github.com/replicatedhq/daggerverse/onepassword@472aab2feb7c9be45d30935a9476353c0ccbf91e call \
 put-secret --service-account env:MYSECRET --vault-name string --item-name string --field-name string --value string
func (m *myModule) example(ctx context.Context, serviceAccount *Secret, vaultName string, itemName string, fieldName string, value string)   {
	return dag.
			Onepassword().
			PutSecret(ctx, serviceAccount, vaultName, itemName, fieldName, value)
}
@function
async def example(service_account: dagger.Secret, vault_name: str, item_name: str, field_name: str, value: str) -> None:
	return await (
		dag.onepassword()
		.put_secret(service_account, vault_name, item_name, field_name, value)
	)
@func()
async example(serviceAccount: Secret, vaultName: string, itemName: string, fieldName: string, value: string): Promise<void> {
	return dag
		.onepassword()
		.putSecret(serviceAccount, vaultName, itemName, fieldName, value)
}