Skip to content

archive-zipfile resource

Description

ZipFile writes a zip archive to the local filesystem.

Source: internal/archive/zipfile_rsrc.go:30

Example usage:

imports: {
  std: 'github.com/cloudboss/unobin-library-std'
}

resources: {
  example: std.archive-zipfile {
    # Set input fields here.
  }
}

Inputs

path

string

required

mode

integer

default 420

create-directory

optional(boolean)

source-dir

optional(string)

source-file

optional(string)

entry-name

optional(string)

entries

optional(list(object))
optional(
  list(
    object({
      name: string
      content: optional(string)
      source-file: optional(string)
      mode: optional(integer)
    })
  )
)

excludes

optional(list(string))

entry-mode

optional(integer)

Input Constraints

Field combinations

Exactly one of source-dir, source-file, or entries.

Forbidden with entry-name: source-dir and entries.

Forbidden with excludes: source-file and entries.

Entries rules

Exactly one of entries[*].content or entries[*].source-file.

Outputs

sha256

string

base64-sha256

string

size

integer