java-sdk
It helps generate generate artifacts for new Dagger engine version.Artifacts:
* Schemas for code generation
* Library Jar
Installation
dagger install github.com/chrira/dagger-module-java-sdk-update/java-sdk@5721074dbd8e7e3470792953775a8a08e78fa24c
Entrypoint
Return Type
JavaSdk
Example
dagger -m github.com/chrira/dagger-module-java-sdk-update/java-sdk@5721074dbd8e7e3470792953775a8a08e78fa24c call \
func (m *myModule) example() *JavaSdk {
return dag.
JavaSdk()
}
@function
def example() -> dag.JavaSdk:
return (
dag.java_sdk()
)
@func()
example(): JavaSdk {
return dag
.javaSdk()
}
Types
JavaSdk 🔗
ctr() 🔗
Return Type
Container !
Example
dagger -m github.com/chrira/dagger-module-java-sdk-update/java-sdk@5721074dbd8e7e3470792953775a8a08e78fa24c call \
ctr
func (m *myModule) example() *Container {
return dag.
JavaSdk().
Ctr()
}
@function
def example() -> dagger.Container:
return (
dag.java_sdk()
.ctr()
)
@func()
example(): Container {
return dag
.javaSdk()
.ctr()
}
getJdk() 🔗
Return Type
JavaSdk !
Example
dagger -m github.com/chrira/dagger-module-java-sdk-update/java-sdk@5721074dbd8e7e3470792953775a8a08e78fa24c call \
get-jdk
func (m *myModule) example() *JavaSdk {
return dag.
JavaSdk().
GetJdk()
}
@function
def example() -> dag.JavaSdk:
return (
dag.java_sdk()
.get_jdk()
)
@func()
example(): JavaSdk {
return dag
.javaSdk()
.getJdk()
}
installDagger() 🔗
install Dagger
Return Type
JavaSdk !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
daggerVersion | String | "0.10.2" | No description provided |
Example
dagger -m github.com/chrira/dagger-module-java-sdk-update/java-sdk@5721074dbd8e7e3470792953775a8a08e78fa24c call \
install-dagger
func (m *myModule) example() *JavaSdk {
return dag.
JavaSdk().
InstallDagger()
}
@function
def example() -> dag.JavaSdk:
return (
dag.java_sdk()
.install_dagger()
)
@func()
example(): JavaSdk {
return dag
.javaSdk()
.installDagger()
}
daggerVersion() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
Example
dagger -m github.com/chrira/dagger-module-java-sdk-update/java-sdk@5721074dbd8e7e3470792953775a8a08e78fa24c call \
dagger-version --container IMAGE:TAG
func (m *myModule) example(ctx context.Context, container *Container) string {
return dag.
JavaSdk().
DaggerVersion(ctx, container)
}
@function
async def example(container: dagger.Container) -> str:
return await (
dag.java_sdk()
.dagger_version(container)
)
@func()
async example(container: Container): Promise<string> {
return dag
.javaSdk()
.daggerVersion(container)
}
ci() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
daggerVersion | String | "0.10.2" | No description provided |
Example
dagger -m github.com/chrira/dagger-module-java-sdk-update/java-sdk@5721074dbd8e7e3470792953775a8a08e78fa24c call \
ci
func (m *myModule) example(ctx context.Context) string {
return dag.
JavaSdk().
Ci(ctx)
}
@function
async def example() -> str:
return await (
dag.java_sdk()
.ci()
)
@func()
async example(): Promise<string> {
return dag
.javaSdk()
.ci()
}
update() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
version | String ! | - | No description provided |
path | String | - | No description provided |
Example
dagger -m github.com/chrira/dagger-module-java-sdk-update/java-sdk@5721074dbd8e7e3470792953775a8a08e78fa24c call \
update --dir DIR_PATH --version string
func (m *myModule) example(dir *Directory, version string) *Directory {
return dag.
JavaSdk().
Update(dir, version)
}
@function
def example(dir: dagger.Directory, version: str) -> dagger.Directory:
return (
dag.java_sdk()
.update(dir, version)
)
@func()
example(dir: Directory, version: string): Directory {
return dag
.javaSdk()
.update(dir, version)
}
updates() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
version | String ! | - | No description provided |
Example
dagger -m github.com/chrira/dagger-module-java-sdk-update/java-sdk@5721074dbd8e7e3470792953775a8a08e78fa24c call \
updates --dir DIR_PATH --version string
func (m *myModule) example(ctx context.Context, dir *Directory, version string) string {
return dag.
JavaSdk().
Updates(ctx, dir, version)
}
@function
async def example(dir: dagger.Directory, version: str) -> str:
return await (
dag.java_sdk()
.updates(dir, version)
)
@func()
async example(dir: Directory, version: string): Promise<string> {
return dag
.javaSdk()
.updates(dir, version)
}
install() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
daggerVersion | String | "0.10.2" | No description provided |
Example
dagger -m github.com/chrira/dagger-module-java-sdk-update/java-sdk@5721074dbd8e7e3470792953775a8a08e78fa24c call \
install --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Container {
return dag.
JavaSdk().
Install(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.Container:
return (
dag.java_sdk()
.install(dir)
)
@func()
example(dir: Directory): Container {
return dag
.javaSdk()
.install(dir)
}
generate() 🔗
Generate the Schema for the given Dagger engine version.
Example usage: dagger call generate --dir https://github.com/dagger/dagger
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
version | String | "0.10.2" | No description provided |
Example
dagger -m github.com/chrira/dagger-module-java-sdk-update/java-sdk@5721074dbd8e7e3470792953775a8a08e78fa24c call \
generate --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Container {
return dag.
JavaSdk().
Generate(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.Container:
return (
dag.java_sdk()
.generate(dir)
)
@func()
example(dir: Directory): Container {
return dag
.javaSdk()
.generate(dir)
}