Dagger
Search

backend

No long description provided.

Installation

dagger install github.com/kpenfound/greetings-api/ci/backend@3a24d45d5a30bffad93fce55ab73a8c39d904cd8

Entrypoint

Return Type
Backend
Example
dagger -m github.com/kpenfound/greetings-api/ci/backend@3a24d45d5a30bffad93fce55ab73a8c39d904cd8 call \
func (m *myModule) example() *Backend  {
	return dag.
			Backend()
}
@function
def example() -> dag.Backend:
	return (
		dag.backend()
	)
@func()
example(): Backend {
	return dag
		.backend()
}

Types

Backend 🔗

unitTest() 🔗

Run the unit tests for the backend

Return Type
String !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-No description provided
Example
dagger -m github.com/kpenfound/greetings-api/ci/backend@3a24d45d5a30bffad93fce55ab73a8c39d904cd8 call \
 unit-test --dir DIR_PATH
func (m *myModule) example(ctx context.Context, dir *Directory) string  {
	return dag.
			Backend().
			UnitTest(ctx, dir)
}
@function
async def example(dir: dagger.Directory) -> str:
	return await (
		dag.backend()
		.unit_test(dir)
	)
@func()
async example(dir: Directory): Promise<string> {
	return dag
		.backend()
		.unitTest(dir)
}

lint() 🔗

Lint the backend Go code

Return Type
String !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-No description provided
Example
dagger -m github.com/kpenfound/greetings-api/ci/backend@3a24d45d5a30bffad93fce55ab73a8c39d904cd8 call \
 lint --dir DIR_PATH
func (m *myModule) example(ctx context.Context, dir *Directory) string  {
	return dag.
			Backend().
			Lint(ctx, dir)
}
@function
async def example(dir: dagger.Directory) -> str:
	return await (
		dag.backend()
		.lint(dir)
	)
@func()
async example(dir: Directory): Promise<string> {
	return dag
		.backend()
		.lint(dir)
}

build() 🔗

Build the backend

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-No description provided
archString -No description provided
Example
dagger -m github.com/kpenfound/greetings-api/ci/backend@3a24d45d5a30bffad93fce55ab73a8c39d904cd8 call \
 build --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Directory  {
	return dag.
			Backend().
			Build(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.Directory:
	return (
		dag.backend()
		.build(dir)
	)
@func()
example(dir: Directory): Directory {
	return dag
		.backend()
		.build(dir)
}

binary() 🔗

Return the compiled backend binary for a particular architecture

Return Type
File !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-No description provided
archString -No description provided
Example
dagger -m github.com/kpenfound/greetings-api/ci/backend@3a24d45d5a30bffad93fce55ab73a8c39d904cd8 call \
 binary --dir DIR_PATH
func (m *myModule) example(dir *Directory) *File  {
	return dag.
			Backend().
			Binary(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.File:
	return (
		dag.backend()
		.binary(dir)
	)
@func()
example(dir: Directory): File {
	return dag
		.backend()
		.binary(dir)
}

container() 🔗

Get a container ready to run the backend

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-No description provided
archString -No description provided
Example
dagger -m github.com/kpenfound/greetings-api/ci/backend@3a24d45d5a30bffad93fce55ab73a8c39d904cd8 call \
 container --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Container  {
	return dag.
			Backend().
			Container(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.Container:
	return (
		dag.backend()
		.container(dir)
	)
@func()
example(dir: Directory): Container {
	return dag
		.backend()
		.container(dir)
}

serve() 🔗

Get a Service to run the backend

Return Type
Service !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-No description provided
Example
dagger -m github.com/kpenfound/greetings-api/ci/backend@3a24d45d5a30bffad93fce55ab73a8c39d904cd8 call \
 serve --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Service  {
	return dag.
			Backend().
			Serve(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.Service:
	return (
		dag.backend()
		.serve(dir)
	)
@func()
example(dir: Directory): Service {
	return dag
		.backend()
		.serve(dir)
}