utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: MIT Imports: 6 Imported by: 2

Documentation

Overview

Package utils contains various Amazon Glacier utility functions and structures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeTreeHash

func ComputeTreeHash(r io.ReadSeeker) *string

ComputeTreeHash computes the hex encoded tree-hash of a seekable reader r. If there was an error computing the hash nil is returned.

Types

type Range

type Range struct {
	Offset int64
	Limit  int64
}

Range represents a range of bytes that is used for multipart archive upload and download.

func RangeFromString

func RangeFromString(s *string) *Range

RangeFromString constructs a Range from a string s. If the string doesn't represent a valid byte range nil is returned.

func (*Range) String

func (r *Range) String() string

String returns the string representation.

Jump to

Keyboard shortcuts

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