archive

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package archive contains shared helpers for working with tar.gz archives produced by the CLI: byte-size formatting and multipart upload framing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSize

func FormatSize(sizeBytes int64) string

FormatSize renders a byte count as a compact "B/KB/MB/GB/TB" string.

func WriteArchivePart

func WriteArchivePart(writer *multipart.Writer, fieldName, baseName string, data []byte) error

WriteArchivePart attaches data as fieldName in writer, using baseName+".tar.gz" as the filename. baseName should be the resource name (e.g. function or frontend name); the helper appends the canonical archive suffix.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL