Dagger
Search

interlink

Visit the interLink documentation for more info: https://intertwin-eu.github.io/interLink/docs/intro/

Installation

dagger install github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc

Entrypoint

Return Type
Interlink !
Arguments
NameTypeDescription
nameString !No description provided
virtualKubeletRefString No description provided
interlinkRefString No description provided
pluginRefString No description provided
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string
func (m *myModule) example(name string) *Interlink  {
	return dag.
			Interlink(name)
}
@function
def example(name: str, ) -> dag.Interlink:
	return (
		dag.interlink(name)
	)
@func()
example(name: string, ): Interlink {
	return dag
		.interlink(name)
}

Types

Interlink struct for initialization and internal variables

name() 🔗

Return Type
String !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string name
func (m *myModule) example(ctx context.Context, name string) string  {
	return dag.
			Interlink(name).
			Name(ctx)
}
@function
async def example(name: str, ) -> str:
	return await (
		dag.interlink(name)
		.name()
	)
@func()
async example(name: string, ): Promise<string> {
	return dag
		.interlink(name)
		.name()
}

registry() 🔗

Return Type
Service !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string registry
func (m *myModule) example(name string) *Service  {
	return dag.
			Interlink(name).
			Registry()
}
@function
def example(name: str, ) -> dagger.Service:
	return (
		dag.interlink(name)
		.registry()
	)
@func()
example(name: string, ): Service {
	return dag
		.interlink(name)
		.registry()
}

manifests() 🔗

Return Type
Directory !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string manifests
func (m *myModule) example(name string) *Directory  {
	return dag.
			Interlink(name).
			Manifests()
}
@function
def example(name: str, ) -> dagger.Directory:
	return (
		dag.interlink(name)
		.manifests()
	)
@func()
example(name: string, ): Directory {
	return dag
		.interlink(name)
		.manifests()
}

virtualKubeletRef() 🔗

Return Type
String !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string virtual-kubelet-ref
func (m *myModule) example(ctx context.Context, name string) string  {
	return dag.
			Interlink(name).
			VirtualKubeletRef(ctx)
}
@function
async def example(name: str, ) -> str:
	return await (
		dag.interlink(name)
		.virtual_kubelet_ref()
	)
@func()
async example(name: string, ): Promise<string> {
	return dag
		.interlink(name)
		.virtualKubeletRef()
}

interlinkRef() 🔗

Return Type
String !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string interlink-ref
func (m *myModule) example(ctx context.Context, name string) string  {
	return dag.
			Interlink(name).
			InterlinkRef(ctx)
}
@function
async def example(name: str, ) -> str:
	return await (
		dag.interlink(name)
		.interlink_ref()
	)
@func()
async example(name: string, ): Promise<string> {
	return dag
		.interlink(name)
		.interlinkRef()
}

pluginRef() 🔗

Return Type
String !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string plugin-ref
func (m *myModule) example(ctx context.Context, name string) string  {
	return dag.
			Interlink(name).
			PluginRef(ctx)
}
@function
async def example(name: str, ) -> str:
	return await (
		dag.interlink(name)
		.plugin_ref()
	)
@func()
async example(name: string, ): Promise<string> {
	return dag
		.interlink(name)
		.pluginRef()
}

kubectl() 🔗

Return Type
Container !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string kubectl
func (m *myModule) example(name string) *Container  {
	return dag.
			Interlink(name).
			Kubectl()
}
@function
def example(name: str, ) -> dagger.Container:
	return (
		dag.interlink(name)
		.kubectl()
	)
@func()
example(name: string, ): Container {
	return dag
		.interlink(name)
		.kubectl()
}

kubeApis() 🔗

Return Type
Service !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string kube-apis
func (m *myModule) example(name string) *Service  {
	return dag.
			Interlink(name).
			KubeApis()
}
@function
def example(name: str, ) -> dagger.Service:
	return (
		dag.interlink(name)
		.kube_apis()
	)
@func()
example(name: string, ): Service {
	return dag
		.interlink(name)
		.kubeApis()
}

kubeConfig() 🔗

Return Type
File !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string kube-config
func (m *myModule) example(name string) *File  {
	return dag.
			Interlink(name).
			KubeConfig()
}
@function
def example(name: str, ) -> dagger.File:
	return (
		dag.interlink(name)
		.kube_config()
	)
@func()
example(name: string, ): File {
	return dag
		.interlink(name)
		.kubeConfig()
}
Return Type
Container !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string interlink-container
func (m *myModule) example(name string) *Container  {
	return dag.
			Interlink(name).
			InterlinkContainer()
}
@function
def example(name: str, ) -> dagger.Container:
	return (
		dag.interlink(name)
		.interlink_container()
	)
@func()
example(name: string, ): Container {
	return dag
		.interlink(name)
		.interlinkContainer()
}

vkcontainer() 🔗

Return Type
Container !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string vkcontainer
func (m *myModule) example(name string) *Container  {
	return dag.
			Interlink(name).
			Vkcontainer()
}
@function
def example(name: str, ) -> dagger.Container:
	return (
		dag.interlink(name)
		.vkcontainer()
	)
@func()
example(name: string, ): Container {
	return dag
		.interlink(name)
		.vkcontainer()
}

Setup k8s e interlink components: virtual kubelet and interlink API server

Return Type
Interlink !
Arguments
NameTypeDefault ValueDescription
manifestsDirectory -No description provided
kubeconfigFile -No description provided
localRegistryService -No description provided
localClusterService -No description provided
interlinkEndpointService -No description provided
interlinkConfigFile -No description provided
pluginEndpointService -No description provided
pluginConfigFile -No description provided
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string new-interlink
func (m *myModule) example(name string) *Interlink  {
	return dag.
			Interlink(name).
			NewInterlink()
}
@function
def example(name: str, ) -> dag.Interlink:
	return (
		dag.interlink(name)
		.new_interlink()
	)
@func()
example(name: string, ): Interlink {
	return dag
		.interlink(name)
		.newInterlink()
}

config() 🔗

Returns the kubeconfig file of the k3s cluster

Return Type
File !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string config
func (m *myModule) example(name string) *File  {
	return dag.
			Interlink(name).
			Config()
}
@function
def example(name: str, ) -> dagger.File:
	return (
		dag.interlink(name)
		.config()
	)
@func()
example(name: string, ): File {
	return dag
		.interlink(name)
		.config()
}

buildImages() 🔗

Build interLink and virtual kubelet docker images from source and publish them in registry service

Return Type
Interlink !
Arguments
NameTypeDefault ValueDescription
virtualKubeletRefString "registry:5000/virtual-kubelet-inttw"No description provided
interlinkRefString "registry:5000/interlink"No description provided
pluginRefString "registry:5000/plugin-test"No description provided
sourceFolderDirectory -No description provided
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string build-images
func (m *myModule) example(name string) *Interlink  {
	return dag.
			Interlink(name).
			BuildImages()
}
@function
def example(name: str, ) -> dag.Interlink:
	return (
		dag.interlink(name)
		.build_images()
	)
@func()
example(name: string, ): Interlink {
	return dag
		.interlink(name)
		.buildImages()
}

kube() 🔗

Wait for virtual node to be ready and expose the k8s endpoint as a service

Return Type
Service !
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string kube
func (m *myModule) example(name string) *Service  {
	return dag.
			Interlink(name).
			Kube()
}
@function
def example(name: str, ) -> dagger.Service:
	return (
		dag.interlink(name)
		.kube()
	)
@func()
example(name: string, ): Service {
	return dag
		.interlink(name)
		.kube()
}

run() 🔗

Wait for cluster to be ready, then setup the test container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
manifestsDirectory -No description provided
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string run
func (m *myModule) example(name string) *Container  {
	return dag.
			Interlink(name).
			Run()
}
@function
def example(name: str, ) -> dagger.Container:
	return (
		dag.interlink(name)
		.run()
	)
@func()
example(name: string, ): Container {
	return dag
		.interlink(name)
		.run()
}

lint() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceFolderDirectory -No description provided
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string lint
func (m *myModule) example(name string) *Container  {
	return dag.
			Interlink(name).
			Lint()
}
@function
def example(name: str, ) -> dagger.Container:
	return (
		dag.interlink(name)
		.lint()
	)
@func()
example(name: string, ): Container {
	return dag
		.interlink(name)
		.lint()
}

test() 🔗

Wait for cluster to be ready, setup the test container, run all tests

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
manifestsDirectory -No description provided
localClusterService -No description provided
sourceFolderDirectory -No description provided
Example
dagger -m github.com/interTwin-eu/interLink/ci@dc9f75bd3562db597c2ae3030a3520179b2d5ecc call \
 --name string test
func (m *myModule) example(name string) *Container  {
	return dag.
			Interlink(name).
			Test()
}
@function
def example(name: str, ) -> dagger.Container:
	return (
		dag.interlink(name)
		.test()
	)
@func()
example(name: string, ): Container {
	return dag
		.interlink(name)
		.test()
}