svix
This module allows running Svix for development and testing purposes.Example (Defaults)
no available example in current languagefunc (m *Examples) Svix_Defaults(ctx context.Context) error {
svix := dag.Svix()
_, err := svix.Service().Start(ctx)
return err
}no available example in current languageno available example in current languageExample (Postgres)
no available example in current languagefunc (m *Examples) Svix_Postgres(ctx context.Context) error {
postgres := dag.Postgres(dagger.PostgresOpts{
User: dag.SetSecret("postgres-user", "postgres"),
Password: dag.SetSecret("postgres-password", "postgres"),
Database: "svix",
})
svix := dag.Svix(dagger.SvixOpts{
Postgres: postgres.AsSvixPostgres(),
})
_, err := svix.Service().Start(ctx)
return err
}no available example in current languageno available example in current languageInstallation
dagger install github.com/luanmtruong/daggerverse/svix@96c13b929c636316317f745ff36cda4e4c66f680Entrypoint
Return Type
Svix !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String | - | Version (image tag) to use from the official image repository as a base container. |
| container | Container | - | Custom container to use as a base container. Takes precedence over version. |
| postgres | Interface | - | Postgres service. |
| database | String | - | Override the database name provided by the Postgres service. |
| jwtSecret | Secret | - | The JWT secret for authentication. (defaults to a generated secret) |
| config | File | - | Svix configuration file. |
Example
dagger -m github.com/luanmtruong/daggerverse/svix@96c13b929c636316317f745ff36cda4e4c66f680 call \
func (m *MyModule) Example() *dagger.Svix {
return dag.
Svix()
}@function
def example() -> dagger.Svix:
return (
dag.svix()
)@func()
example(): Svix {
return dag
.svix()
}Types
Svix 🔗
service() 🔗
Return Type
Service ! Example
dagger -m github.com/luanmtruong/daggerverse/svix@96c13b929c636316317f745ff36cda4e4c66f680 call \
servicefunc (m *MyModule) Example() *dagger.Service {
return dag.
Svix().
Service()
}@function
def example() -> dagger.Service:
return (
dag.svix()
.service()
)@func()
example(): Service {
return dag
.svix()
.service()
}