brestore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountIECString

func ByteCountIECString(b int64) string

ByteCountIECString takes the size in bytes of some piece of data and returns a human-friendly string representing that size using the IEC (binary) numformat.

func ByteCountString

func ByteCountString(b int64) string

ByteCountString takes the size in bytes of some piece of data and returns a human-friendly string representing that size using the SI (decimal) numformat.

func ParseTimestamp

func ParseTimestamp(timestamp string) (time.Time, error)

ParseTimestamp parsed a string with date, time and timezone into a time.Time by trying to parse the string against different time layout strings.

Types

type BucketURLInfo

type BucketURLInfo struct {
	Type       string
	BucketName string
	Prefix     string
}

BucketURLInfo represents the information about a bucket that can be extracted from a URL

func ParseBucketURL

func ParseBucketURL(url string) (BucketURLInfo, error)

ParseBucketURL parses a bucket URL into its components

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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