svix
This module allows running Svix for development and testing purposes.Example (Defaults)
no available example in current language
func (m *Examples) Svix_Defaults(ctx context.Context) error {
svix := dag.Svix()
_, err := svix.Service().Start(ctx)
return err
}
no available example in current language
no available example in current language
Example (Postgres)
no available example in current language
func (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 language
no available example in current language
Installation
dagger install github.com/sagikazarmark/daggerverse/svix@42d4369e7d41c540ec3e21d626bdc12e94f0ba1a
Entrypoint
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/sagikazarmark/daggerverse/svix@42d4369e7d41c540ec3e21d626bdc12e94f0ba1a call \
func (m *myModule) example() *Svix {
return dag.
Svix()
}
@function
def example() -> dag.Svix:
return (
dag.svix()
)
@func()
example(): Svix {
return dag
.svix()
}
Types
Svix 🔗
service() 🔗
Return Type
Service !
Example
dagger -m github.com/sagikazarmark/daggerverse/svix@42d4369e7d41c540ec3e21d626bdc12e94f0ba1a call \
service
func (m *myModule) example() *Service {
return dag.
Svix().
Service()
}
@function
def example() -> dagger.Service:
return (
dag.svix()
.service()
)
@func()
example(): Service {
return dag
.svix()
.service()
}