jq
Get jq command-line JSON processor.Installation
dagger install github.com/camptocamp/daggerverse/jq@v0.1.0
Entrypoint
Return Type
Jq !
Arguments
Name | Type | Description |
---|---|---|
version | String ! | jq version to get |
Example
dagger -m github.com/camptocamp/daggerverse/jq@b8db11532e3745f05cb0346325f0bf0f0bd51eb4 call \
--version string
func (m *myModule) example(version string) *Jq {
return dag.
Jq(version)
}
@function
def example(version: str) -> dag.Jq:
return (
dag.jq(version)
)
@func()
example(version: string): Jq {
return dag
.jq(version)
}
Types
Jq 🔗
jq
binary() 🔗
Get jq executable binary
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get jq for |
Example
dagger -m github.com/camptocamp/daggerverse/jq@b8db11532e3745f05cb0346325f0bf0f0bd51eb4 call \
--version string binary
func (m *myModule) example(version string) *File {
return dag.
Jq(version).
Binary()
}
@function
def example(version: str) -> dagger.File:
return (
dag.jq(version)
.binary()
)
@func()
example(version: string): File {
return dag
.jq(version)
.binary()
}
overlay() 🔗
Get a root filesystem overlay with jq
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get jq for |
prefix | String | - | Filesystem prefix under which to install jq |
Example
dagger -m github.com/camptocamp/daggerverse/jq@b8db11532e3745f05cb0346325f0bf0f0bd51eb4 call \
--version string overlay
func (m *myModule) example(version string) *Directory {
return dag.
Jq(version).
Overlay()
}
@function
def example(version: str) -> dagger.Directory:
return (
dag.jq(version)
.overlay()
)
@func()
example(version: string): Directory {
return dag
.jq(version)
.overlay()
}
installation() 🔗
Install jq in a container
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container in which to install jq |
Example
dagger -m github.com/camptocamp/daggerverse/jq@b8db11532e3745f05cb0346325f0bf0f0bd51eb4 call \
--version string installation --container IMAGE:TAG
func (m *myModule) example(version string, container *Container) *Container {
return dag.
Jq(version).
Installation(container)
}
@function
def example(version: str, container: dagger.Container) -> dagger.Container:
return (
dag.jq(version)
.installation(container)
)
@func()
example(version: string, container: Container): Container {
return dag
.jq(version)
.installation(container)
}
container() 🔗
Get a jq container from a base container
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Base container |
Example
dagger -m github.com/camptocamp/daggerverse/jq@b8db11532e3745f05cb0346325f0bf0f0bd51eb4 call \
--version string container --container IMAGE:TAG
func (m *myModule) example(version string, container *Container) *Container {
return dag.
Jq(version).
Container(container)
}
@function
def example(version: str, container: dagger.Container) -> dagger.Container:
return (
dag.jq(version)
.container(container)
)
@func()
example(version: string, container: Container): Container {
return dag
.jq(version)
.container(container)
}
redhatContainer() 🔗
Get a Red Hat Universal Base Image container with jq
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/jq@b8db11532e3745f05cb0346325f0bf0f0bd51eb4 call \
--version string redhat-container
func (m *myModule) example(version string) *Container {
return dag.
Jq(version).
RedhatContainer()
}
@function
def example(version: str) -> dagger.Container:
return (
dag.jq(version)
.redhat_container()
)
@func()
example(version: string): Container {
return dag
.jq(version)
.redhatContainer()
}
redhatMinimalContainer() 🔗
Get a Red Hat Minimal Universal Base Image container with jq
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/jq@b8db11532e3745f05cb0346325f0bf0f0bd51eb4 call \
--version string redhat-minimal-container
func (m *myModule) example(version string) *Container {
return dag.
Jq(version).
RedhatMinimalContainer()
}
@function
def example(version: str) -> dagger.Container:
return (
dag.jq(version)
.redhat_minimal_container()
)
@func()
example(version: string): Container {
return dag
.jq(version)
.redhatMinimalContainer()
}
redhatMicroContainer() 🔗
Get a Red Hat Micro Universal Base Image container with jq
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/jq@b8db11532e3745f05cb0346325f0bf0f0bd51eb4 call \
--version string redhat-micro-container
func (m *myModule) example(version string) *Container {
return dag.
Jq(version).
RedhatMicroContainer()
}
@function
def example(version: str) -> dagger.Container:
return (
dag.jq(version)
.redhat_micro_container()
)
@func()
example(version: string): Container {
return dag
.jq(version)
.redhatMicroContainer()
}