digest

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func OpenShared

func OpenShared() *Cache

func (*Cache) Get

func (c *Cache) Get(ctx context.Context, file paranoid.File) (ForUpload, error)

type ForRestore

type ForRestore struct {
	// contains filtered or unexported fields
}

func (*ForRestore) MarshalBinary

func (r *ForRestore) MarshalBinary() ([]byte, error)

func (*ForRestore) MarshalEasyJSON

func (r *ForRestore) MarshalEasyJSON(w *jwriter.Writer)

func (ForRestore) MarshalText

func (r ForRestore) MarshalText() ([]byte, error)

func (ForRestore) URLSafe

func (r ForRestore) URLSafe() string

func (*ForRestore) UnmarshalBinary added in v0.2.1

func (r *ForRestore) UnmarshalBinary(data []byte) error

func (*ForRestore) UnmarshalEasyJSON

func (r *ForRestore) UnmarshalEasyJSON(l *jlexer.Lexer)

func (*ForRestore) UnmarshalText

func (r *ForRestore) UnmarshalText(text []byte) error

func (ForRestore) Verify

func (r ForRestore) Verify(ctx context.Context, reader io.ReadSeeker) error

type ForUpload

type ForUpload struct {
	// contains filtered or unexported fields
}

func GetUncached

func GetUncached(ctx context.Context, file paranoid.File) (ForUpload, error)

func (ForUpload) ContentLength

func (u ForUpload) ContentLength() int64

func (*ForUpload) ForRestore

func (u *ForUpload) ForRestore() ForRestore

func (*ForUpload) MarshalBinary

func (u *ForUpload) MarshalBinary() ([]byte, error)

func (ForUpload) PartContentMD5

func (u ForUpload) PartContentMD5(partNumber int64) string

func (ForUpload) PartContentSHA256

func (u ForUpload) PartContentSHA256(partNumber int64) string

func (ForUpload) PartLength

func (u ForUpload) PartLength(partNumber int64) int64

func (ForUpload) PartOffset

func (u ForUpload) PartOffset(partNumber int64) int64

func (*ForUpload) Parts

func (u *ForUpload) Parts() int64

func (*ForUpload) URLSafe

func (u *ForUpload) URLSafe() string

func (*ForUpload) UnmarshalBinary

func (u *ForUpload) UnmarshalBinary(data []byte) error

type MismatchError

type MismatchError struct {
	// contains filtered or unexported fields
}

func (MismatchError) Error

func (e MismatchError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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