archivist
Dagger-native API for creating and extracting archives.
Installation
dagger install github.com/luanmtruong/daggerverse/archivist@96c13b929c636316317f745ff36cda4e4c66f680
Entrypoint
Return Type
Archivist
Example
func (m *myModule) example() *Archivist {
return dag.
Archivist()
}
Types
Archivist π
Archivist provides methods to create and extract archives.
tar() π
Create and extract β.tarβ archives.
Return Type
Tar !
Example
func (m *myModule) example() *ArchivistTar {
return dag.
Archivist().
Tar()
}
tarBr() π
Create and extract β.tar.brβ (and β.tbrβ) archives.
Return Type
TarBr !
Example
func (m *myModule) example() *ArchivistTarBr {
return dag.
Archivist().
TarBr()
}
tarBz2() π
Create and extract β.tar.bz2β (and β.tbz2β) archives.
Return Type
TarBz2 !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
compressionLevel | Integer | - | No description provided |
Example
func (m *myModule) example() *ArchivistTarBz2 {
return dag.
Archivist().
TarBz2()
}
tarGz() π
Create and extract β.tar.gzβ (and β.tgzβ) archives.
Return Type
TarGz !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
compressionLevel | Integer | - | No description provided |
Example
func (m *myModule) example() *ArchivistTarGz {
return dag.
Archivist().
TarGz()
}
tarLz4() π
Create and extract β.tar.lz4β (and β.tlz4β) archives.
Return Type
TarLz4 !
Example
func (m *myModule) example() *ArchivistTarLz4 {
return dag.
Archivist().
TarLz4()
}
tarSz() π
Create and extract β.tar.szβ (and β.tszβ) archives.
Return Type
TarSz !
Example
func (m *myModule) example() *ArchivistTarSz {
return dag.
Archivist().
TarSz()
}
tarXz() π
Create and extract β.tar.xzβ (and β.txzβ) archives.
Return Type
TarXz !
Example
func (m *myModule) example() *ArchivistTarXz {
return dag.
Archivist().
TarXz()
}
tarZst() π
Create and extract β.tar.zstβ archives.
Return Type
TarZst !
Example
func (m *myModule) example() *ArchivistTarZst {
return dag.
Archivist().
TarZst()
}
zip() π
Create and extract β.zipβ archives.
Return Type
Zip !
Example
func (m *myModule) example() *ArchivistZip {
return dag.
Archivist().
Zip()
}
Tar π
Create and extract ".tar" archives.
archive() π
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
source | Directory ! | - | No description provided |
Example
func (m *myModule) example(name string, source *Directory) *File {
return dag.
Archivist().
Tar().
Archive(name, source)
}
TarBr π
Create and extract ".tar.br" (and ".tbr") archives.
archive() π
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
source | Directory ! | - | No description provided |
Example
func (m *myModule) example(name string, source *Directory) *File {
return dag.
Archivist().
TarBr().
Archive(name, source)
}
TarBz2 π
Create and extract ".tar.bz2" (and ".tbz2") archives.
compressionLevel() π
Return Type
Integer !
Example
func (m *myModule) example(ctx context.Context) int {
return dag.
Archivist().
TarBz2().
CompressionLevel(ctx)
}
archive() π
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
source | Directory ! | - | No description provided |
Example
func (m *myModule) example(name string, source *Directory) *File {
return dag.
Archivist().
TarBz2().
Archive(name, source)
}
TarGz π
Create and extract ".tar.gz" (and ".tgz") archives.
compressionLevel() π
Return Type
Integer !
Example
func (m *myModule) example(ctx context.Context) int {
return dag.
Archivist().
TarGz().
CompressionLevel(ctx)
}
archive() π
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
source | Directory ! | - | No description provided |
Example
func (m *myModule) example(name string, source *Directory) *File {
return dag.
Archivist().
TarGz().
Archive(name, source)
}
TarLz4 π
Create and extract ".tar.lz4" (and ".tlz4") archives.
archive() π
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
source | Directory ! | - | No description provided |
Example
func (m *myModule) example(name string, source *Directory) *File {
return dag.
Archivist().
TarLz4().
Archive(name, source)
}
TarSz π
Create and extract ".tar.sz" (and ".tsz") archives.
archive() π
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
source | Directory ! | - | No description provided |
Example
func (m *myModule) example(name string, source *Directory) *File {
return dag.
Archivist().
TarSz().
Archive(name, source)
}
TarXz π
Create and extract ".tar.xz" (and ".txz") archives.
archive() π
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
source | Directory ! | - | No description provided |
Example
func (m *myModule) example(name string, source *Directory) *File {
return dag.
Archivist().
TarXz().
Archive(name, source)
}
TarZst π
Create and extract ".tar.zst" archives.
archive() π
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
source | Directory ! | - | No description provided |
Example
func (m *myModule) example(name string, source *Directory) *File {
return dag.
Archivist().
TarZst().
Archive(name, source)
}
Zip π
Create and extract ".zip" archives.
archive() π
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
name | String ! | - | No description provided |
source | Directory ! | - | No description provided |
Example
func (m *myModule) example(name string, source *Directory) *File {
return dag.
Archivist().
Zip().
Archive(name, source)
}