az

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package az provides archive interface for Azure blob-store

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(dir string, files []string) (err error)

func List

func List(dir string) (files []string, err error)

Types

type AZArchive

type AZArchive struct {
	common.BasicArchive
	// contains filtered or unexported fields
}

func NewArchive

func NewArchive(outDir, prefix, extension string, options ...func(*common.BasicArchive) error) (rf *AZArchive, err error)

NewArchive creates a new recorder file (for writing). The caller must call `rf.Close()` on the resulting handle to close out the file. File is uploaded automatically to azure blobstore on `.Close()` call. `*AZArchive` returned is an io.Writer

func OpenArchive

func OpenArchive(fileName string, bufferSize int) (rf *AZArchive, err error)

OpenArchive opens an archive file for reading. `*AZArchive` returned is an io.Reader

Jump to

Keyboard shortcuts

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