Dagger
Search

kind

No long description provided.

Installation

dagger install github.com/prefapp/daggerverse/kind@6f0e09c6f351fe9aa9fbca74ce4eeb81c67071a7

Entrypoint

Return Type
Kind !
Arguments
NameTypeDefault ValueDescription
dockerSocketSocket !-Docker socket path. E.g. /var/run/docker.sock How to use it: dagger call --docker-sock=/var/run/docker.sock kind --kind-svc=tcp://127.0.0.1:3000
kindSvcService !-It should be the tcp://127.0.0.1 followed by any port. E.g. tcp://127.0.0.1:3000 Before launch this function, make sure that you have configured in your /etc/hosts file an entry for localhost 127.0.0.1 . Otherwise, the alpine container will not be able to connect to the kind cluster.
clusterNameString "dagger-kubernetes-cluster"No description provided
Example
dagger -m github.com/prefapp/daggerverse/kind@6f0e09c6f351fe9aa9fbca74ce4eeb81c67071a7 call \
 --kind-svc PROTOCOL://HOST:PORT
func (m *myModule) example(dockerSocket *Socket, kindSvc *Service) *Kind  {
	return dag.
			Kind(dockerSocket, kindSvc)
}
@function
def example(docker_socket: dag.Socket, kind_svc: dagger.Service, ) -> dag.Kind:
	return (
		dag.kind(docker_socket, kind_svc)
	)
@func()
example(dockerSocket: Socket, kindSvc: Service, ): Kind {
	return dag
		.kind(dockerSocket, kindSvc)
}

Types

Kind 🔗

dockerSocket() 🔗

Return Type
Socket !
Example
dagger -m github.com/prefapp/daggerverse/kind@6f0e09c6f351fe9aa9fbca74ce4eeb81c67071a7 call \
 --kind-svc PROTOCOL://HOST:PORT docker-socket
func (m *myModule) example(dockerSocket *Socket, kindSvc *Service) *Socket  {
	return dag.
			Kind(dockerSocket, kindSvc).
			DockerSocket()
}
@function
def example(docker_socket: dag.Socket, kind_svc: dagger.Service, ) -> dag.Socket:
	return (
		dag.kind(docker_socket, kind_svc)
		.docker_socket()
	)
@func()
example(dockerSocket: Socket, kindSvc: Service, ): Socket {
	return dag
		.kind(dockerSocket, kindSvc)
		.dockerSocket()
}

kindSvc() 🔗

Return Type
Service !
Example
dagger -m github.com/prefapp/daggerverse/kind@6f0e09c6f351fe9aa9fbca74ce4eeb81c67071a7 call \
 --kind-svc PROTOCOL://HOST:PORT kind-svc
func (m *myModule) example(dockerSocket *Socket, kindSvc *Service) *Service  {
	return dag.
			Kind(dockerSocket, kindSvc).
			KindSvc()
}
@function
def example(docker_socket: dag.Socket, kind_svc: dagger.Service, ) -> dagger.Service:
	return (
		dag.kind(docker_socket, kind_svc)
		.kind_svc()
	)
@func()
example(dockerSocket: Socket, kindSvc: Service, ): Service {
	return dag
		.kind(dockerSocket, kindSvc)
		.kindSvc()
}

kindPort() 🔗

Return Type
Integer !
Example
dagger -m github.com/prefapp/daggerverse/kind@6f0e09c6f351fe9aa9fbca74ce4eeb81c67071a7 call \
 --kind-svc PROTOCOL://HOST:PORT kind-port
func (m *myModule) example(ctx context.Context, dockerSocket *Socket, kindSvc *Service) int  {
	return dag.
			Kind(dockerSocket, kindSvc).
			KindPort(ctx)
}
@function
async def example(docker_socket: dag.Socket, kind_svc: dagger.Service, ) -> int:
	return await (
		dag.kind(docker_socket, kind_svc)
		.kind_port()
	)
@func()
async example(dockerSocket: Socket, kindSvc: Service, ): Promise<number> {
	return dag
		.kind(dockerSocket, kindSvc)
		.kindPort()
}

container() 🔗

Return Type
Container !
Example
dagger -m github.com/prefapp/daggerverse/kind@6f0e09c6f351fe9aa9fbca74ce4eeb81c67071a7 call \
 --kind-svc PROTOCOL://HOST:PORT container
func (m *myModule) example(dockerSocket *Socket, kindSvc *Service) *Container  {
	return dag.
			Kind(dockerSocket, kindSvc).
			Container()
}
@function
def example(docker_socket: dag.Socket, kind_svc: dagger.Service, ) -> dagger.Container:
	return (
		dag.kind(docker_socket, kind_svc)
		.container()
	)
@func()
example(dockerSocket: Socket, kindSvc: Service, ): Container {
	return dag
		.kind(dockerSocket, kindSvc)
		.container()
}

clusterName() 🔗

Return Type
String !
Example
dagger -m github.com/prefapp/daggerverse/kind@6f0e09c6f351fe9aa9fbca74ce4eeb81c67071a7 call \
 --kind-svc PROTOCOL://HOST:PORT cluster-name
func (m *myModule) example(ctx context.Context, dockerSocket *Socket, kindSvc *Service) string  {
	return dag.
			Kind(dockerSocket, kindSvc).
			ClusterName(ctx)
}
@function
async def example(docker_socket: dag.Socket, kind_svc: dagger.Service, ) -> str:
	return await (
		dag.kind(docker_socket, kind_svc)
		.cluster_name()
	)
@func()
async example(dockerSocket: Socket, kindSvc: Service, ): Promise<string> {
	return dag
		.kind(dockerSocket, kindSvc)
		.clusterName()
}

loadContainerOnKind() 🔗

Loads a container to kind cluster, previously it was saved as a tarball with the annotations required by kind. You can use this function into your module

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-No description provided
tagString !-No description provided
Example
dagger -m github.com/prefapp/daggerverse/kind@6f0e09c6f351fe9aa9fbca74ce4eeb81c67071a7 call \
 --kind-svc PROTOCOL://HOST:PORT load-container-on-kind --container IMAGE:TAG --tag string
func (m *myModule) example(dockerSocket *Socket, kindSvc *Service, container *Container, tag string) *Container  {
	return dag.
			Kind(dockerSocket, kindSvc).
			LoadContainerOnKind(container, tag)
}
@function
def example(docker_socket: dag.Socket, kind_svc: dagger.Service, container: dagger.Container, tag: str) -> dagger.Container:
	return (
		dag.kind(docker_socket, kind_svc)
		.load_container_on_kind(container, tag)
	)
@func()
example(dockerSocket: Socket, kindSvc: Service, container: Container, tag: string): Container {
	return dag
		.kind(dockerSocket, kindSvc)
		.loadContainerOnKind(container, tag)
}

knines() 🔗

Launch k9s terminal Example usage: dagger call –docker-socket=/var/run/docker.sock –kind-svc=tcp://127.0.0.1:3000 knines

Return Type
Container !
Example
dagger -m github.com/prefapp/daggerverse/kind@6f0e09c6f351fe9aa9fbca74ce4eeb81c67071a7 call \
 --kind-svc PROTOCOL://HOST:PORT knines
func (m *myModule) example(dockerSocket *Socket, kindSvc *Service) *Container  {
	return dag.
			Kind(dockerSocket, kindSvc).
			Knines()
}
@function
def example(docker_socket: dag.Socket, kind_svc: dagger.Service, ) -> dagger.Container:
	return (
		dag.kind(docker_socket, kind_svc)
		.knines()
	)
@func()
example(dockerSocket: Socket, kindSvc: Service, ): Container {
	return dag
		.kind(dockerSocket, kindSvc)
		.knines()
}

inspect() 🔗

Inspect returns the container that will be launched Example usage: dagger call –docker-socket=/var/run/docker.sock –kind-svc=tcp://127.0.0.1:3000 inspect

Return Type
Container !
Example
dagger -m github.com/prefapp/daggerverse/kind@6f0e09c6f351fe9aa9fbca74ce4eeb81c67071a7 call \
 --kind-svc PROTOCOL://HOST:PORT inspect
func (m *myModule) example(dockerSocket *Socket, kindSvc *Service) *Container  {
	return dag.
			Kind(dockerSocket, kindSvc).
			Inspect()
}
@function
def example(docker_socket: dag.Socket, kind_svc: dagger.Service, ) -> dagger.Container:
	return (
		dag.kind(docker_socket, kind_svc)
		.inspect()
	)
@func()
example(dockerSocket: Socket, kindSvc: Service, ): Container {
	return dag
		.kind(dockerSocket, kindSvc)
		.inspect()
}

test() 🔗

Inspect returns the container that will be launched Example usage: dagger call –docker-socket=/var/run/docker.sock –kind-svc=tcp://127.0.0.1:3000 inspect

Return Type
Container !
Example
dagger -m github.com/prefapp/daggerverse/kind@6f0e09c6f351fe9aa9fbca74ce4eeb81c67071a7 call \
 --kind-svc PROTOCOL://HOST:PORT test
func (m *myModule) example(dockerSocket *Socket, kindSvc *Service) *Container  {
	return dag.
			Kind(dockerSocket, kindSvc).
			Test()
}
@function
def example(docker_socket: dag.Socket, kind_svc: dagger.Service, ) -> dagger.Container:
	return (
		dag.kind(docker_socket, kind_svc)
		.test()
	)
@func()
example(dockerSocket: Socket, kindSvc: Service, ): Container {
	return dag
		.kind(dockerSocket, kindSvc)
		.test()
}