Dagger
Search

svix

This module allows running Svix for development and testing purposes.
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
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

Installation

dagger install github.com/sagikazarmark/daggerverse/svix@7fc77a4f8dd54d4d4c56e40517f7109e8585bcdd

Entrypoint

Return Type
Svix !
Arguments
NameTypeDefault ValueDescription
versionString -Version (image tag) to use from the official image repository as a base container.
containerContainer -Custom container to use as a base container. Takes precedence over version.
postgresInterface -Postgres service.
databaseString -Override the database name provided by the Postgres service.
jwtSecretSecret -The JWT secret for authentication. (defaults to a generated secret)
configFile -Svix configuration file.
Example
dagger -m github.com/sagikazarmark/daggerverse/svix@7fc77a4f8dd54d4d4c56e40517f7109e8585bcdd 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@7fc77a4f8dd54d4d4c56e40517f7109e8585bcdd 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()
}