Dagger
Search

snippetbox

No long description provided.

Installation

dagger install github.com/levlaz/snippetbox@fd3f358ab135553c0067cf3a2f579eb1e5549264

Entrypoint

Return Type
Snippetbox !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
Example
dagger -m github.com/levlaz/snippetbox@fd3f358ab135553c0067cf3a2f579eb1e5549264 call \
func (m *myModule) example() *Snippetbox  {
	return dag.
			Snippetbox()
}
@function
def example() -> dag.Snippetbox:
	return (
		dag.snippetbox()
	)
@func()
example(): Snippetbox {
	return dag
		.snippetbox()
}

Types

Snippetbox 🔗

src() 🔗

Return Type
Directory !
Example
dagger -m github.com/levlaz/snippetbox@fd3f358ab135553c0067cf3a2f579eb1e5549264 call \
 src
func (m *myModule) example() *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@fd3f358ab135553c0067cf3a2f579eb1e5549264 call \
 lint
func (m *myModule) example() *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@fd3f358ab135553c0067cf3a2f579eb1e5549264 call \
 build
func (m *myModule) example() *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
NameTypeDefault ValueDescription
quietBoolean falsequiet output for tests
Example
dagger -m github.com/levlaz/snippetbox@fd3f358ab135553c0067cf3a2f579eb1e5549264 call \
 test
func (m *myModule) example() *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
NameTypeDefault ValueDescription
tokenSecret -No description provided
commitString "latest"No description provided
Example
dagger -m github.com/levlaz/snippetbox@fd3f358ab135553c0067cf3a2f579eb1e5549264 call \
 publish
func (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
NameTypeDefault ValueDescription
databaseService -No description provided
Example
dagger -m github.com/levlaz/snippetbox@fd3f358ab135553c0067cf3a2f579eb1e5549264 call \
 server
func (m *myModule) example() *Container  {
	return dag.
			Snippetbox().
			Server()
}
@function
def example() -> dagger.Container:
	return (
		dag.snippetbox()
		.server()
	)
@func()
example(): Container {
	return dag
		.snippetbox()
		.server()
}

oldCi() 🔗

Run entire Old CI pipeline example usage: “dagger call ci”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
tokenSecret -No description provided
commitString "latest"No description provided
Example
dagger -m github.com/levlaz/snippetbox@fd3f358ab135553c0067cf3a2f579eb1e5549264 call \
 old-ci
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Snippetbox().
			OldCi(ctx)
}
@function
async def example() -> str:
	return await (
		dag.snippetbox()
		.old_ci()
	)
@func()
async example(): Promise<string> {
	return dag
		.snippetbox()
		.oldCi()
}

ci() 🔗

Run entire CI pipeline example usage: “dagger call ci”

Return Type
String !
Arguments
NameTypeDefault ValueDescription
tokenSecret -No description provided
commitString "latest"No description provided
Example
dagger -m github.com/levlaz/snippetbox@fd3f358ab135553c0067cf3a2f579eb1e5549264 call \
 ci
func (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
NameTypeDefault ValueDescription
databaseService -No description provided
Example
dagger -m github.com/levlaz/snippetbox@fd3f358ab135553c0067cf3a2f579eb1e5549264 call \
 debug
func (m *myModule) example() *Container  {
	return dag.
			Snippetbox().
			Debug()
}
@function
def example() -> dagger.Container:
	return (
		dag.snippetbox()
		.debug()
	)
@func()
example(): Container {
	return dag
		.snippetbox()
		.debug()
}