factories

package
v0.0.0-...-ab1fc98 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlobHashFactory

func NewBlobHashFactory(pattern string, container string, accountName string, accountKey string, setBlobMD5 bool) <-chan MD5HashResult

NewBlobHashFactory todo

func NewFileHashFactory

func NewFileHashFactory(pattern string) <-chan MD5HashResult

NewFileHashFactory TODO

Types

type AsyncMD5

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

AsyncMD5 struct

func (*AsyncMD5) Hash

func (a *AsyncMD5) Hash() ([]byte, error)

Hash TODO

func (*AsyncMD5) Size

func (a *AsyncMD5) Size() int64

Size TODO

func (*AsyncMD5) Source

func (a *AsyncMD5) Source() string

Source TODO

type BlobReader

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

BlobReader TODO

func (*BlobReader) Read

func (b *BlobReader) Read() <-chan ReadResponse

func (*BlobReader) Size

func (b *BlobReader) Size() int64

Size TODO

func (*BlobReader) Source

func (b *BlobReader) Source() string

Source TODO

type DataReader

type DataReader interface {
	Source() string
	Read() <-chan ReadResponse
	Size() int64
}

DataReader reads sequentially and asynchronously from a source.

type FileReader

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

FileReader TODO

func (*FileReader) Read

func (b *FileReader) Read() <-chan ReadResponse

Read TODO

func (*FileReader) Size

func (b *FileReader) Size() int64

Size TODO

func (*FileReader) Source

func (b *FileReader) Source() string

Source TODO

type MD5HashResult

type MD5HashResult struct {
	Source string
	MD5    []byte
	Err    error
	Size   int64
}

MD5HashResult TODO

type ReadResponse

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

ReadResponse response from a read operation

Jump to

Keyboard shortcuts

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