Dagger
Search

snippetbox

No long description provided.

Installation

dagger install github.com/levlaz/snippetbox@03b3eca94effc92300c3e202d9a61c3e0f9f219f

Entrypoint

Return Type
Snippetbox !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
Example
func (m *myModule) example() *Snippetbox  {
	return dag.
			Snippetbox()
}

Types

Snippetbox πŸ”—

src() πŸ”—

Return Type
Directory !
Example
func (m *myModule) example() *Directory  {
	return dag.
			Snippetbox().
			Src()
}

lint() πŸ”—

Lint

Return Type
Container !
Example
func (m *myModule) example() *Container  {
	return dag.
			Snippetbox().
			Lint()
}

build() πŸ”—

Build snippetbox binary for all supported platforms

Return Type
Directory !
Example
func (m *myModule) example() *Directory  {
	return dag.
			Snippetbox().
			Build()
}

test() πŸ”—

Run test suite

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
quietBoolean falsequiet output for tests
Example
func (m *myModule) 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
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Snippetbox().
			Publish(ctx)
}

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
func (m *myModule) example() *Container  {
	return dag.
			Snippetbox().
			Server()
}

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
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Snippetbox().
			Ci(ctx)
}

debug() πŸ”—

return container with service attached that is not running

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
databaseService -No description provided
Example
func (m *myModule) example() *Container  {
	return dag.
			Snippetbox().
			Debug()
}