archive
No long description provided.
Installation
dagger install github.com/sagikazarmark/daggerverse/archive@bc2ccb71307797d3066a56e1e57d75205523cfad
Entrypoint
Return Type
Archive
Example
dagger -m github.com/sagikazarmark/daggerverse/archive@bc2ccb71307797d3066a56e1e57d75205523cfad call \
func (m *myModule) example() *Archive {
return dag.
Archive()
}
@function
def example() -> dag.Archive:
return (
dag.archive()
)
@func()
example(): Archive {
return dag
.archive()
}
Types
Archive 🔗
create() 🔗
Create an archive from a directory of files.
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
source | Directory ! | - | No description provided |
format | String | - | No description provided |
platform | String | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/archive@bc2ccb71307797d3066a56e1e57d75205523cfad call \
create --name string --source DIR_PATH
func (m *myModule) example(name string, source *Directory) *File {
return dag.
Archive().
Create(name, source)
}
@function
def example(name: str, source: dagger.Directory) -> dagger.File:
return (
dag.archive()
.create(name, source)
)
@func()
example(name: string, source: Directory): File {
return dag
.archive()
.create(name, source)
}