util

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertValid

func AssertValid(verify types.Verification, data []byte) error

func BoolToPtr added in v0.17.0

func BoolToPtr(b bool) *bool

func GetHasher added in v0.7.1

func GetHasher(verify types.Verification) (hash.Hash, error)

func IntToPtr added in v0.16.0

func IntToPtr(i int) *int

func StringToPtr added in v0.17.0

func StringToPtr(s string) *string

Types

type ErrHashMismatch

type ErrHashMismatch struct {
	Calculated string
	Expected   string
}

ErrHashMismatch is returned when the calculated hash for a fetched object doesn't match the expected sum of the object.

func (ErrHashMismatch) Error

func (e ErrHashMismatch) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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