Dagger
Search

onepassword

No long description provided.

Installation

dagger install github.com/replicatedhq/daggerverse/onepassword@926be33e57b5ee690bf78ec0deedae4bcd9d537a

Entrypoint

Return Type
Onepassword
Example
func (m *myModule) 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
func (m *myModule) example(serviceAccount *Secret, vaultName string, itemName string, fieldName string) *Secret  {
	return dag.
			Onepassword().
			FindSecret(serviceAccount, vaultName, itemName, fieldName)
}

findSecretRotationSpecs() 🔗

Returns the specifications to rotate the secrets in the specified vault.

Return Type
Secret !
Arguments
NameTypeDefault ValueDescription
serviceAccountSecret !-1password service account
vaultNameString !-Name of the vault to search
itemNameString !-Name of the item to find
sectionNameString !-Section name where rotation specs are stored
Example
func (m *myModule) example(serviceAccount *Secret, vaultName string, itemName string, sectionName string) *Secret  {
	return dag.
			Onepassword().
			FindSecretRotationSpecs(serviceAccount, vaultName, itemName, sectionName)
}

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
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)
}