Dagger
Search

core

A utility module to query the Dagger core API directly from the CLI

Installation

dagger install github.com/shykes/daggerverse/core@v0.1.0

Entrypoint

Return Type
Core
Example
dagger -m github.com/shykes/daggerverse/core@9438d69d583c0d06c5db34c1a1ce5ca474c71ad2 call \
func (m *myModule) example() *Core  {
	return dag.
			Core()
}
@function
def example() -> dag.Core:
	return (
		dag.core()
	)
@func()
example(): Core {
	return dag
		.core()
}

Types

Core 🔗

loadContainer() 🔗

Load the state of a container by ID

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
loadString !-No description provided
Example
dagger -m github.com/shykes/daggerverse/core@9438d69d583c0d06c5db34c1a1ce5ca474c71ad2 call \
 load-container --load string
func (m *myModule) example(load string) *Container  {
	return dag.
			Core().
			LoadContainer(load)
}
@function
def example(load: str) -> dagger.Container:
	return (
		dag.core()
		.load_container(load)
	)
@func()
example(load: string): Container {
	return dag
		.core()
		.loadContainer(load)
}

container() 🔗

Initialize a container

Return Type
Container !
Example
dagger -m github.com/shykes/daggerverse/core@9438d69d583c0d06c5db34c1a1ce5ca474c71ad2 call \
 container
func (m *myModule) example() *Container  {
	return dag.
			Core().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.core()
		.container()
	)
@func()
example(): Container {
	return dag
		.core()
		.container()
}

git() 🔗

Query a remote git repository

Return Type
GitRepository !
Arguments
NameTypeDefault ValueDescription
urlString !-No description provided
Example
dagger -m github.com/shykes/daggerverse/core@9438d69d583c0d06c5db34c1a1ce5ca474c71ad2 call \
 git --url string
func (m *myModule) example(url string) *GitRepository  {
	return dag.
			Core().
			Git(url)
}
@function
def example(url: str) -> dag.GitRepository:
	return (
		dag.core()
		.git(url)
	)
@func()
example(url: string): GitRepository {
	return dag
		.core()
		.git(url)
}