Dagger
Search

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@77b2abc57caee80bafe003f94dcf11c3dbb7abc1

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@77b2abc57caee80bafe003f94dcf11c3dbb7abc1 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@77b2abc57caee80bafe003f94dcf11c3dbb7abc1 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()
}