Dagger
Search

cloud-utils

Collection of Useful Utilities for working with Dagger Cloud

Installation

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

Entrypoint

Return Type
CloudUtils !
Example
dagger -m github.com/levlaz/daggerverse/cloud-utils@f6152f0a9828cefdb3ec6e9b6dc9722fb70291e7 call \
func (m *MyModule) Example() *dagger.CloudUtils  {
	return dag.
			CloudUtils()
}
@function
def example() -> dagger.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 !
Arguments
NameTypeDefault ValueDescription
orgString !-Dagger Cloud Org Name
Example
dagger -m github.com/levlaz/daggerverse/cloud-utils@f6152f0a9828cefdb3ec6e9b6dc9722fb70291e7 call \
 trace-url --org string
func (m *MyModule) Example(ctx context.Context, org string) string  {
	return dag.
			CloudUtils().
			TraceUrl(ctx, org)
}
@function
async def example(org: str) -> str:
	return await (
		dag.cloud_utils()
		.trace_url(org)
	)
@func()
async example(org: string): Promise<string> {
	return dag
		.cloudUtils()
		.traceUrl(org)
}