tus

package
v1.171.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

* Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved. * SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const KeyTUSMetadata = "filename"

Variables

This section is empty.

Functions

func GenerateTUSChecksumHeader

func GenerateTUSChecksumHeader(hashAlgo, hash string) (header string, err error)

GenerateTUSChecksumHeader generate the checksum header value See https://tus.io/protocols/resumable-upload#upload-checksum

func GenerateTUSConcatFinalHeader

func GenerateTUSConcatFinalHeader(partials []*url.URL) (header string, err error)

GenerateTUSConcatFinalHeader generates the `Concat` header value https://tus.io/protocols/resumable-upload#upload-concat

func GenerateTUSMetadataHeader

func GenerateTUSMetadataHeader(filename *string, elements map[string]any) (header string, err error)

GenerateTUSMetadataHeader generates the `metadata` header value https://tus.io/protocols/resumable-upload#upload-metadata

func ParseTUSConcatHeader

func ParseTUSConcatHeader(concat string) (isPartial bool, partials []*url.URL, err error)

ParseTUSConcatHeader parses the `Concat` header value https://tus.io/protocols/resumable-upload#upload-concat

func ParseTUSHash

func ParseTUSHash(checksum string) (hashAlgo, hash string, err error)

ParseTUSHash parses the checksum header value and tries to determine the different elements it contains. See https://tus.io/protocols/resumable-upload#upload-checksum

func ParseTUSMetadataHeader

func ParseTUSMetadataHeader(header string) (filename *string, elements map[string]any, err error)

ParseTUSMetadataHeader parses the `metadata` header value https://tus.io/protocols/resumable-upload#upload-metadata

Types

This section is empty.

Jump to

Keyboard shortcuts

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