archive
No long description provided.
Installation
dagger install github.com/sagikazarmark/daggerverse/archive@c22c0ab3dc7261ca1b64a1e58990e59919f4ce63
Entrypoint
Return Type
Archive
Example
dagger -m github.com/sagikazarmark/daggerverse/archive@c22c0ab3dc7261ca1b64a1e58990e59919f4ce63 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@c22c0ab3dc7261ca1b64a1e58990e59919f4ce63 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)
}