snippetbox
No long description provided.
Installation
dagger install github.com/levlaz/snippetbox@03b3eca94effc92300c3e202d9a61c3e0f9f219fEntrypoint
Return Type
Snippetbox !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory | - | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@03b3eca94effc92300c3e202d9a61c3e0f9f219f call \
func (m *MyModule) Example() *dagger.Snippetbox {
return dag.
Snippetbox()
}@function
def example() -> dagger.Snippetbox:
return (
dag.snippetbox()
)@func()
example(): Snippetbox {
return dag
.snippetbox()
}Types
Snippetbox 🔗
src() 🔗
Return Type
Directory ! Example
dagger -m github.com/levlaz/snippetbox@03b3eca94effc92300c3e202d9a61c3e0f9f219f call \
srcfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Snippetbox().
Src()
}@function
def example() -> dagger.Directory:
return (
dag.snippetbox()
.src()
)@func()
example(): Directory {
return dag
.snippetbox()
.src()
}lint() 🔗
Lint
Return Type
Container ! Example
dagger -m github.com/levlaz/snippetbox@03b3eca94effc92300c3e202d9a61c3e0f9f219f call \
lintfunc (m *MyModule) Example() *dagger.Container {
return dag.
Snippetbox().
Lint()
}@function
def example() -> dagger.Container:
return (
dag.snippetbox()
.lint()
)@func()
example(): Container {
return dag
.snippetbox()
.lint()
}build() 🔗
Build snippetbox binary for all supported platforms
Return Type
Directory ! Example
dagger -m github.com/levlaz/snippetbox@03b3eca94effc92300c3e202d9a61c3e0f9f219f call \
buildfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Snippetbox().
Build()
}@function
def example() -> dagger.Directory:
return (
dag.snippetbox()
.build()
)@func()
example(): Directory {
return dag
.snippetbox()
.build()
}test() 🔗
Run test suite
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| quiet | Boolean | false | quiet output for tests |
Example
dagger -m github.com/levlaz/snippetbox@03b3eca94effc92300c3e202d9a61c3e0f9f219f call \
testfunc (m *MyModule) Example() *dagger.Container {
return dag.
Snippetbox().
Test()
}@function
def example() -> dagger.Container:
return (
dag.snippetbox()
.test()
)@func()
example(): Container {
return dag
.snippetbox()
.test()
}publish() 🔗
publish to dockerhub or ttl.sh if no token is provided
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | Secret | - | No description provided |
| commit | String | "latest" | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@03b3eca94effc92300c3e202d9a61c3e0f9f219f call \
publishfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Snippetbox().
Publish(ctx)
}@function
async def example() -> str:
return await (
dag.snippetbox()
.publish()
)@func()
async example(): Promise<string> {
return dag
.snippetbox()
.publish()
}server() 🔗
Return snippetbox server with database service attached example usage: “dagger call server up”
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| database | Service | - | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@03b3eca94effc92300c3e202d9a61c3e0f9f219f call \
serverfunc (m *MyModule) Example() *dagger.Container {
return dag.
Snippetbox().
Server()
}@function
def example() -> dagger.Container:
return (
dag.snippetbox()
.server()
)@func()
example(): Container {
return dag
.snippetbox()
.server()
}ci() 🔗
Run entire CI pipeline example usage: “dagger call ci”
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| token | Secret | - | No description provided |
| commit | String | "latest" | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@03b3eca94effc92300c3e202d9a61c3e0f9f219f call \
cifunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Snippetbox().
Ci(ctx)
}@function
async def example() -> str:
return await (
dag.snippetbox()
.ci()
)@func()
async example(): Promise<string> {
return dag
.snippetbox()
.ci()
}debug() 🔗
return container with service attached that is not running
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| database | Service | - | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@03b3eca94effc92300c3e202d9a61c3e0f9f219f call \
debugfunc (m *MyModule) Example() *dagger.Container {
return dag.
Snippetbox().
Debug()
}@function
def example() -> dagger.Container:
return (
dag.snippetbox()
.debug()
)@func()
example(): Container {
return dag
.snippetbox()
.debug()
}