onepassword
No long description provided.
Installation
dagger install github.com/replicatedhq/daggerverse/onepassword@2d8d2feea42791d0f31e26900e358c3d7b2d60db
Entrypoint
Return Type
Onepassword
Example
dagger -m github.com/replicatedhq/daggerverse/onepassword@2d8d2feea42791d0f31e26900e358c3d7b2d60db 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
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 |
Example
dagger -m github.com/replicatedhq/daggerverse/onepassword@2d8d2feea42791d0f31e26900e358c3d7b2d60db 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
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
dagger -m github.com/replicatedhq/daggerverse/onepassword@2d8d2feea42791d0f31e26900e358c3d7b2d60db 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)
}