dagger-registry
No long description provided.
Installation
dagger install github.com/dagger/registry-redirect@566168527f3185091a69f79ac8f92f8f30eaca7cEntrypoint
Return Type
DaggerRegistry !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
Example
dagger -m github.com/dagger/registry-redirect@566168527f3185091a69f79ac8f92f8f30eaca7c call \
func (m *MyModule) Example() *dagger.DaggerRegistry {
return dag.
Daggerregistry()
}@function
def example() -> dagger.DaggerRegistry:
return (
dag.dagger_registry()
)@func()
example(): DaggerRegistry {
return dag
.daggerRegistry()
}Types
DaggerRegistry 🔗
source() 🔗
Return Type
Directory ! Example
dagger -m github.com/dagger/registry-redirect@566168527f3185091a69f79ac8f92f8f30eaca7c call \
sourcefunc (m *MyModule) Example() *dagger.Directory {
return dag.
Daggerregistry().
Source()
}@function
def example() -> dagger.Directory:
return (
dag.dagger_registry()
.source()
)@func()
example(): Directory {
return dag
.daggerRegistry()
.source()
}build() 🔗
Return Type
Container ! Example
dagger -m github.com/dagger/registry-redirect@566168527f3185091a69f79ac8f92f8f30eaca7c call \
buildfunc (m *MyModule) Example() *dagger.Container {
return dag.
Daggerregistry().
Build()
}@function
def example() -> dagger.Container:
return (
dag.dagger_registry()
.build()
)@func()
example(): Container {
return dag
.daggerRegistry()
.build()
}burstTest() 🔗
BurstTest runs the real binary and asserts on the same Prometheus series the production :9090 scrape exposes: a burst of cache hits is never rate limited, cold pulls still are, blobs stay exempt, and concurrent anonymous pulls share one token fetch. Like Test, it reaches ghcr.io.
Return Type
String ! Example
dagger -m github.com/dagger/registry-redirect@566168527f3185091a69f79ac8f92f8f30eaca7c call \
burst-testfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Daggerregistry().
Bursttest(ctx)
}@function
async def example() -> str:
return await (
dag.dagger_registry()
.bursttest()
)@func()
async example(): Promise<string> {
return dag
.daggerRegistry()
.burstTest()
}lint() 🔗
Return Type
String ! Example
dagger -m github.com/dagger/registry-redirect@566168527f3185091a69f79ac8f92f8f30eaca7c call \
lintfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Daggerregistry().
Lint(ctx)
}@function
async def example() -> str:
return await (
dag.dagger_registry()
.lint()
)@func()
async example(): Promise<string> {
return dag
.daggerRegistry()
.lint()
}publish() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| flyToken | Secret ! | - | No description provided |
| gitSha | String | - | No description provided |
| gitAuthor | String | - | No description provided |
| buildUrl | String | - | No description provided |
| imageUrl | String | - | No description provided |
Example
dagger -m github.com/dagger/registry-redirect@566168527f3185091a69f79ac8f92f8f30eaca7c call \
publish --fly-token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, flyToken *dagger.Secret) string {
return dag.
Daggerregistry().
Publish(ctx, flyToken)
}@function
async def example(flytoken: dagger.Secret) -> str:
return await (
dag.dagger_registry()
.publish(flytoken)
)@func()
async example(flyToken: Secret): Promise<string> {
return dag
.daggerRegistry()
.publish(flyToken)
}test() 🔗
Return Type
String ! Example
dagger -m github.com/dagger/registry-redirect@566168527f3185091a69f79ac8f92f8f30eaca7c call \
testfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Daggerregistry().
Test(ctx)
}@function
async def example() -> str:
return await (
dag.dagger_registry()
.test()
)@func()
async example(): Promise<string> {
return dag
.daggerRegistry()
.test()
}updateGitHubActionsRateLimitConfig() 🔗
Return Type
Directory ! Example
dagger -m github.com/dagger/registry-redirect@566168527f3185091a69f79ac8f92f8f30eaca7c call \
update-git-hub-actions-rate-limit-configfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Daggerregistry().
Updategithubactionsratelimitconfig()
}@function
def example() -> dagger.Directory:
return (
dag.dagger_registry()
.updategithubactionsratelimitconfig()
)@func()
example(): Directory {
return dag
.daggerRegistry()
.updateGitHubActionsRateLimitConfig()
}