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
Name | Type | Default Value | Description |
---|---|---|---|
serviceAccount | Secret ! | - | 1password service account |
vaultName | String ! | - | Name of the vault to search |
itemName | String ! | - | Name of the item to find |
fieldName | String ! | - | Name of the field to find |
section | String | - | 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
Name | Type | Default Value | Description |
---|---|---|---|
serviceAccount | Secret ! | - | 1password service account |
vaultName | String ! | - | Name of the vault to search |
itemName | String ! | - | Name of the item to find |
sectionName | String ! | - | 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
Name | Type | Default Value | Description |
---|---|---|---|
serviceAccount | Secret ! | - | 1password service account |
vaultName | String ! | - | Name of the vault to search |
itemName | String ! | - | Name of the item to find |
fieldName | String ! | - | Name of the field to find |
value | String ! | - | 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)
}