Dagger
Search

ssh

No long description provided.

Installation

dagger install codeberg.org/clouds666/daggerverse/ssh@55517e5c747fabbbf86bee6d762982cccb2fb481

Entrypoint

Return Type
Ssh !
Arguments
NameTypeDefault ValueDescription
alpineVersionString -No description provided
keySecret !-No description provided
hostString !-No description provided
userString !-No description provided
Example
dagger -m codeberg.org/clouds666/daggerverse/ssh@55517e5c747fabbbf86bee6d762982cccb2fb481 call \
 --key env:MYSECRET --host string --user string
func (m *MyModule) Example(key *dagger.Secret, host string, user string) *dagger.Ssh  {
	return dag.
			Ssh(key, host, user)
}
@function
def example(key: dagger.Secret, host: str, user: str) -> dagger.Ssh:
	return (
		dag.ssh(key, host, user)
	)
@func()
example(key: Secret, host: string, user: string): Ssh {
	return dag
		.ssh(key, host, user)
}

Types

Ssh 🔗

alpineVersion() 🔗

Return Type
String !
Example
dagger -m codeberg.org/clouds666/daggerverse/ssh@55517e5c747fabbbf86bee6d762982cccb2fb481 call \
 --key env:MYSECRET --host string --user string alpine-version
func (m *MyModule) Example(ctx context.Context, key *dagger.Secret, host string, user string) string  {
	return dag.
			Ssh(key, host, user).
			Alpineversion(ctx)
}
@function
async def example(key: dagger.Secret, host: str, user: str) -> str:
	return await (
		dag.ssh(key, host, user)
		.alpineversion()
	)
@func()
async example(key: Secret, host: string, user: string): Promise<string> {
	return dag
		.ssh(key, host, user)
		.alpineVersion()
}

key() 🔗

Return Type
Secret !
Example
dagger -m codeberg.org/clouds666/daggerverse/ssh@55517e5c747fabbbf86bee6d762982cccb2fb481 call \
 --key env:MYSECRET --host string --user string key
func (m *MyModule) Example(key *dagger.Secret, host string, user string) *dagger.Secret  {
	return dag.
			Ssh(key, host, user).
			Key()
}
@function
def example(key: dagger.Secret, host: str, user: str) -> dagger.Secret:
	return (
		dag.ssh(key, host, user)
		.key()
	)
@func()
example(key: Secret, host: string, user: string): Secret {
	return dag
		.ssh(key, host, user)
		.key()
}

host() 🔗

Return Type
String !
Example
dagger -m codeberg.org/clouds666/daggerverse/ssh@55517e5c747fabbbf86bee6d762982cccb2fb481 call \
 --key env:MYSECRET --host string --user string host
func (m *MyModule) Example(ctx context.Context, key *dagger.Secret, host string, user string) string  {
	return dag.
			Ssh(key, host, user).
			Host(ctx)
}
@function
async def example(key: dagger.Secret, host: str, user: str) -> str:
	return await (
		dag.ssh(key, host, user)
		.host()
	)
@func()
async example(key: Secret, host: string, user: string): Promise<string> {
	return dag
		.ssh(key, host, user)
		.host()
}

user() 🔗

Return Type
String !
Example
dagger -m codeberg.org/clouds666/daggerverse/ssh@55517e5c747fabbbf86bee6d762982cccb2fb481 call \
 --key env:MYSECRET --host string --user string user
func (m *MyModule) Example(ctx context.Context, key *dagger.Secret, host string, user string) string  {
	return dag.
			Ssh(key, host, user).
			User(ctx)
}
@function
async def example(key: dagger.Secret, host: str, user: str) -> str:
	return await (
		dag.ssh(key, host, user)
		.user()
	)
@func()
async example(key: Secret, host: string, user: string): Promise<string> {
	return dag
		.ssh(key, host, user)
		.user()
}

run() 🔗

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
commandString !-No description provided
Example
dagger -m codeberg.org/clouds666/daggerverse/ssh@55517e5c747fabbbf86bee6d762982cccb2fb481 call \
 --key env:MYSECRET --host string --user string run --command string
func (m *MyModule) Example(ctx context.Context, key *dagger.Secret, host string, user string, command string)   {
	return dag.
			Ssh(key, host, user).
			Run(ctx, command)
}
@function
async def example(key: dagger.Secret, host: str, user: str, command: str) -> None:
	return await (
		dag.ssh(key, host, user)
		.run(command)
	)
@func()
async example(key: Secret, host: string, user: string, command: string): Promise<void> {
	return dag
		.ssh(key, host, user)
		.run(command)
}