cloud-utils
Collection of Useful Utilities for working with Dagger Cloud
Installation
dagger install github.com/levlaz/daggerverse/cloud-utils@v0.1.0
Entrypoint
Return Type
CloudUtils !
Example
dagger -m github.com/levlaz/daggerverse/cloud-utils@a46591542fa07c3f2b607a58fc99a69c64bbe2bd call \
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@a46591542fa07c3f2b607a58fc99a69c64bbe2bd 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()
}