Dagger
Search

infisical

No long description provided.

Installation

dagger install github.com/jpadams/daggerverse/infisical@f89b7240f7e711a323dae5a66df9b78dfe6a4ec2

Entrypoint

Return Type
Infisical
Example
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
NameTypeDefault ValueDescription
nameString !-No description provided
tokenSecret !-A reference to a secret value, which can be handled more safely than the value itself.
projectIdString !-No description provided
envString !-No description provided
pathString !""No description provided
Example
dagger -m github.com/jpadams/daggerverse/infisical@f89b7240f7e711a323dae5a66df9b78dfe6a4ec2 call \
 get-secret --name string --token env:MYSECRET --project-id string --env string --path string
func (m *myModule) example(name string, token *Secret, projectId string, env string, path string) *Secret  {
	return dag.
			Infisical().
			GetSecret(name, token, projectId, env, path)
}
@function
def example(name: str, token: dagger.Secret, project_id: str, env: str, path: str) -> dagger.Secret:
	return (
		dag.infisical()
		.get_secret(name, token, project_id, env, path)
	)
@func()
example(name: string, token: Secret, projectId: string, env: string, path: string): Secret {
	return dag
		.infisical()
		.getSecret(name, token, projectId, env, path)
}

test()

Insecure test using default Infisical project and plaintext token

Return Type
String !
Arguments
NameTypeDefault ValueDescription
tokenString !-No description provided
projectIdString !-No description provided
Example
dagger -m github.com/jpadams/daggerverse/infisical@f89b7240f7e711a323dae5a66df9b78dfe6a4ec2 call \
 test --token string --project-id string
func (m *myModule) example(ctx context.Context, token string, projectId string) string  {
	return dag.
			Infisical().
			Test(ctx, token, projectId)
}
@function
async def example(token: str, project_id: str) -> str:
	return await (
		dag.infisical()
		.test(token, project_id)
	)
@func()
async example(token: string, projectId: string): Promise<string> {
	return dag
		.infisical()
		.test(token, projectId)
}