Documentation
¶
Overview ¶
* Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved. * SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- func GenerateTUSChecksumHeader(hashAlgo, hash string) (header string, err error)
- func GenerateTUSConcatFinalHeader(partials []*url.URL) (header string, err error)
- func GenerateTUSMetadataHeader(filename *string, elements map[string]any) (header string, err error)
- func ParseTUSConcatHeader(concat string) (isPartial bool, partials []*url.URL, err error)
- func ParseTUSHash(checksum string) (hashAlgo, hash string, err error)
- func ParseTUSMetadataHeader(header string) (filename *string, elements map[string]any, err error)
Constants ¶
const KeyTUSMetadata = "filename"
Variables ¶
This section is empty.
Functions ¶
func GenerateTUSChecksumHeader ¶
GenerateTUSChecksumHeader generate the checksum header value See https://tus.io/protocols/resumable-upload#upload-checksum
func GenerateTUSConcatFinalHeader ¶
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 ¶
ParseTUSConcatHeader parses the `Concat` header value https://tus.io/protocols/resumable-upload#upload-concat
func ParseTUSHash ¶
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 ¶
ParseTUSMetadataHeader parses the `metadata` header value https://tus.io/protocols/resumable-upload#upload-metadata
Types ¶
This section is empty.