storagereader

package
v8.0.0-beta2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobDetails

type BlobDetails struct {
	Name         string
	PartitionKey string
	RowKey       string
	ETag         string
	Length       int64
	LastModified int64
}

BlobDetails - represents blob list item

func NewBlobDetails

func NewBlobDetails(name, etag string, length, lastModified int64) BlobDetails

NewBlobDetails - Creates a new instance of BlobDetails

type Config

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

Config holds storage reader configuration

type StorageReader

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

StorageReader interacts with Azure Blob storage

func NewStorageReader

func NewStorageReader(accountName, accountKey, containerName string) (*StorageReader, error)

NewStorageReader creates a new instance of StorageReader

func (*StorageReader) ListBlobsModifiedBetween

func (sr *StorageReader) ListBlobsModifiedBetween(startTime, endTime int64) *[]BlobDetails

ListBlobsModifiedBetween - Get list of blobs modified between two specified timestamps

func (*StorageReader) ReadBlobData

func (sr *StorageReader) ReadBlobData(path string, startIndex, length int64) []byte

ReadBlobData - Reads blob from specified starting location

Jump to

Keyboard shortcuts

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