infisical
No long description provided.
Installation
dagger install github.com/jpadams/daggerverse/infisical@v0.0.1
Entrypoint
Return Type
Infisical
Example
dagger -m github.com/jpadams/daggerverse/infisical@2588936e041960999462b469ce7b8ef5504fc2eb call \
func (m *myModule) example() *Infisical {
return dag.
Infisical()
}
@function
def example() -> dag.Infisical:
return (
dag.infisical()
)
@func()
example(): Infisical {
return dag
.infisical()
}
Types
Infisical 🔗
getSecret() 🔗
Get a secret from an Infisical project using secret name, project token, env, and path
Return Type
Secret !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
token | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
env | String ! | - | No description provided |
path | String ! | - | No description provided |
Example
dagger -m github.com/jpadams/daggerverse/infisical@2588936e041960999462b469ce7b8ef5504fc2eb call \
get-secret --name string --token env:MYSECRET --env string --path string
func (m *myModule) example(name string, token *Secret, env string, path string) *Secret {
return dag.
Infisical().
GetSecret(name, token, env, path)
}
@function
def example(name: str, token: dagger.Secret, env: str, path: str) -> dagger.Secret:
return (
dag.infisical()
.get_secret(name, token, env, path)
)
@func()
example(name: string, token: Secret, env: string, path: string): Secret {
return dag
.infisical()
.getSecret(name, token, env, path)
}
test() 🔗
Insecure test using default Infisical project and plaintext token
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
token | String ! | - | No description provided |
Example
dagger -m github.com/jpadams/daggerverse/infisical@2588936e041960999462b469ce7b8ef5504fc2eb call \
test --token string
func (m *myModule) example(ctx context.Context, token string) string {
return dag.
Infisical().
Test(ctx, token)
}
@function
async def example(token: str) -> str:
return await (
dag.infisical()
.test(token)
)
@func()
async example(token: string): Promise<string> {
return dag
.infisical()
.test(token)
}