Dagger
Search

openmeter

No long description provided.

Installation

dagger install github.com/openmeterio/openmeter@43d579b532b30e0e960f659f679ca8df880d859f

Entrypoint

Return Type
Openmeter !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -Project source directory.
refString -Checkout the repository (at the designated ref) and use it as the source directory instead of the local one.
Example
func (m *myModule) example() *Openmeter  {
	return dag.
			Openmeter()
}

Types

Openmeter 🔗

lint() 🔗

Return Type
Lint !
Example
func (m *myModule) example() *OpenmeterLint  {
	return dag.
			Openmeter().
			Lint()
}

dev() 🔗

Return Type
Dev !
Example
func (m *myModule) example() *OpenmeterDev  {
	return dag.
			Openmeter().
			Dev()
}

etoe() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
testString -No description provided
Example
func (m *myModule) example() *Container  {
	return dag.
			Openmeter().
			Etoe()
}

build() 🔗

Build individual artifacts. (Useful for testing and development)

Return Type
Build !
Example
func (m *myModule) example() *OpenmeterBuild  {
	return dag.
			Openmeter().
			Build()
}

release() 🔗

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
versionString !-No description provided
githubActorString !-No description provided
githubTokenSecret !-No description provided
pypiTokenSecret !-No description provided
npmTokenSecret !-No description provided
Example
func (m *myModule) example(ctx context.Context, version string, githubActor string, githubToken *Secret, pypiToken *Secret, npmToken *Secret)   {
	return dag.
			Openmeter().
			Release(ctx, version, githubActor, githubToken, pypiToken, npmToken)
}

ci() 🔗

Return Type
Directory !
Example
func (m *myModule) example() *Directory  {
	return dag.
			Openmeter().
			Ci()
}

test() 🔗

Return Type
Container !
Example
func (m *myModule) example() *Container  {
	return dag.
			Openmeter().
			Test()
}

quickstartTest() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
serviceService !-No description provided
portInteger !8888No description provided
Example
func (m *myModule) example(service *Service, port int) *Container  {
	return dag.
			Openmeter().
			QuickstartTest(service, port)
}

migrate() 🔗

Return Type
Migrate !
Example
func (m *myModule) example() *OpenmeterMigrate  {
	return dag.
			Openmeter().
			Migrate()
}

generate() 🔗

Generate various artifacts.

Return Type
Generate !
Example
func (m *myModule) example() *OpenmeterGenerate  {
	return dag.
			Openmeter().
			Generate()
}

snapshot() 🔗

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
stainlessTokenSecret !-No description provided
Example
func (m *myModule) example(ctx context.Context, stainlessToken *Secret)   {
	return dag.
			Openmeter().
			Snapshot(ctx, stainlessToken)
}

Lint 🔗

source() 🔗

Return Type
Directory !
Example
func (m *myModule) example() *Directory  {
	return dag.
			Openmeter().
			Lint().
			Source()
}

all() 🔗

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Openmeter().
			Lint().
			All(ctx)
}

go() 🔗

Return Type
Container !
Example
func (m *myModule) example() *Container  {
	return dag.
			Openmeter().
			Lint().
			Go()
}

openapi() 🔗

Return Type
Container !
Example
func (m *myModule) example() *Container  {
	return dag.
			Openmeter().
			Lint().
			Openapi()
}

helm() 🔗

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Openmeter().
			Lint().
			Helm(ctx)
}

Dev 🔗

source() 🔗

Return Type
Directory !
Example
func (m *myModule) example() *Directory  {
	return dag.
			Openmeter().
			Dev().
			Source()
}

ci() 🔗

Return Type
Openmeter !
Example
func (m *myModule) example() *Openmeter  {
	return dag.
			Openmeter().
			Dev().
			Ci()
}

updateVersions() 🔗

Update dependency versions used in CI.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
githubTokenSecret -No description provided
Example
func (m *myModule) example() *File  {
	return dag.
			Openmeter().
			Dev().
			UpdateVersions()
}

openapiChanges() 🔗

Check OpenAPI changes between the “old” hand-written version and the “new” TypeSpec generated one.

Return Type
Service !
Example
func (m *myModule) example() *Service  {
	return dag.
			Openmeter().
			Dev().
			OpenapiChanges()
}

Build 🔗

all() 🔗

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
platformScalar -Target platform in "[os]/[platform]/[version]" format (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64").
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Openmeter().
			Build().
			All(ctx)
}

containerImage() 🔗

Build a container image.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
platformScalar -Target platform in "[os]/[platform]/[version]" format (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64").
Example
func (m *myModule) example() *Container  {
	return dag.
			Openmeter().
			Build().
			ContainerImage()
}

binary() 🔗

Build binaries.

Return Type
Binary !
Example
func (m *myModule) example() *OpenmeterBinary  {
	return dag.
			Openmeter().
			Build().
			Binary()
}

helmChart() 🔗

Return Type
File !
Arguments
NameTypeDefault ValueDescription
nameString !-Name of the chart to build.
versionString -Release version.
Example
func (m *myModule) example(name string) *File  {
	return dag.
			Openmeter().
			Build().
			HelmChart(name)
}

Migrate 🔗

source() 🔗

Return Type
Directory !
Example
func (m *myModule) example() *Directory  {
	return dag.
			Openmeter().
			Migrate().
			Source()
}

check() 🔗

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Openmeter().
			Migrate().
			Check(ctx)
}

Generate 🔗

openapi() 🔗

Generate OpenAPI from TypeSpec.

Return Type
File !
Example
func (m *myModule) example() *File  {
	return dag.
			Openmeter().
			Generate().
			Openapi()
}

pythonSdk() 🔗

Generate the Python SDK.

Return Type
Directory !
Example
func (m *myModule) example() *Directory  {
	return dag.
			Openmeter().
			Generate().
			PythonSdk()
}

nodeSdk() 🔗

Generate the Node SDK.

Return Type
Directory !
Example
func (m *myModule) example() *Directory  {
	return dag.
			Openmeter().
			Generate().
			NodeSdk()
}

webSdk() 🔗

Generate the Web SDK.

Return Type
Directory !
Example
func (m *myModule) example() *Directory  {
	return dag.
			Openmeter().
			Generate().
			WebSdk()
}

check() 🔗

Return Type
Void !
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Openmeter().
			Generate().
			Check(ctx)
}

Binary 🔗

all() 🔗

Build all binaries.

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
platformScalar -Target platform in "[os]/[platform]/[version]" format (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64").
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Openmeter().
			Build().
			Binary().
			All(ctx)
}

api() 🔗

Build the API server binary.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
platformScalar -Target platform in "[os]/[platform]/[version]" format (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64").
Example
func (m *myModule) example() *File  {
	return dag.
			Openmeter().
			Build().
			Binary().
			Api()
}

sinkWorker() 🔗

Build the sink worker binary.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
platformScalar -Target platform in "[os]/[platform]/[version]" format (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64").
Example
func (m *myModule) example() *File  {
	return dag.
			Openmeter().
			Build().
			Binary().
			SinkWorker()
}

balanceWorker() 🔗

Build the balance worker binary.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
platformScalar -Target platform in "[os]/[platform]/[version]" format (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64").
Example
func (m *myModule) example() *File  {
	return dag.
			Openmeter().
			Build().
			Binary().
			BalanceWorker()
}

notificationService() 🔗

Build the notification service binary.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
platformScalar -Target platform in "[os]/[platform]/[version]" format (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64").
Example
func (m *myModule) example() *File  {
	return dag.
			Openmeter().
			Build().
			Binary().
			NotificationService()
}

benthosCollector() 🔗

Build the sink worker binary.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
platformScalar -Target platform in "[os]/[platform]/[version]" format (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64").
Example
func (m *myModule) example() *File  {
	return dag.
			Openmeter().
			Build().
			Binary().
			BenthosCollector()
}