Dagger
Search

cloud-utils

Collection of Useful Utilities for working with Dagger Cloud

Installation

dagger install github.com/levlaz/daggerverse/cloud-utils@v0.1.4

Entrypoint

Return Type
CloudUtils !
Example
func (m *myModule) example() *CloudUtils  {
	return dag.
			CloudUtils()
}
@function
def example() -> dag.CloudUtils:
	return (
		dag.cloud_utils()
	)
@func()
example(): CloudUtils {
	return dag
		.cloudUtils()
}

Types

CloudUtils 🔗

traceUrl() 🔗

Parse Environment Variables and Return Dagger Cloud Trace URL

Return Type
String !
Example
dagger -m github.com/levlaz/daggerverse/cloud-utils@de2bdab985475e876af2f4fcf4ec2020851cca57 call \
 trace-url
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			CloudUtils().
			TraceUrl(ctx)
}
@function
async def example() -> str:
	return await (
		dag.cloud_utils()
		.trace_url()
	)
@func()
async example(): Promise<string> {
	return dag
		.cloudUtils()
		.traceUrl()
}