utils
No long description provided.
Installation
dagger install github.com/kpenfound/dagger-modules/utils@4c3063d4076efb4a566be779e92b837c507c2eac
Entrypoint
Return Type
Utils
Example
dagger -m github.com/kpenfound/dagger-modules/utils@4c3063d4076efb4a566be779e92b837c507c2eac call \
func (m *myModule) example() *Utils {
return dag.
Utils()
}
@function
def example() -> dag.Utils:
return (
dag.utils()
)
@func()
example(): Utils {
return dag
.utils()
}
Types
Utils 🔗
tar() 🔗
Get a tarball of a Directory
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
Example
dagger -m github.com/kpenfound/dagger-modules/utils@4c3063d4076efb4a566be779e92b837c507c2eac call \
tar --dir DIR_PATH
func (m *myModule) example(dir *Directory) *File {
return dag.
Utils().
Tar(dir)
}
@function
def example(dir: dagger.Directory) -> dagger.File:
return (
dag.utils()
.tar(dir)
)
@func()
example(dir: Directory): File {
return dag
.utils()
.tar(dir)
}
multisync() 🔗
Concurrently Sync multiple Containers
Return Type
[Container ! ] !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ctrs | [Container ! ] ! | - | No description provided |
Example
dagger -m github.com/kpenfound/dagger-modules/utils@4c3063d4076efb4a566be779e92b837c507c2eac call \
multisync
func (m *myModule) example(ctrs []*Container) []*Container {
return dag.
Utils().
Multisync(ctrs)
}
@function
def example(ctrs: List[dagger.Container]) -> List[dagger.Container]:
return (
dag.utils()
.multisync(ctrs)
)
@func()
example(ctrs: Container[]): Container[] {
return dag
.utils()
.multisync(ctrs)
}