backend

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	LatestVersion(checkForSuccessFile bool) (string, error)
	Download(version string, destPath string) error
	DisplayPath(version string) string
}

type HdfsBackend

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

func NewHdfsBackend

func NewHdfsBackend(client *hdfs.Client, namenode string, hdfsPath string) *HdfsBackend

func (*HdfsBackend) DisplayPath

func (h *HdfsBackend) DisplayPath(version string) string

func (*HdfsBackend) Download

func (h *HdfsBackend) Download(version string, destPath string) error

func (*HdfsBackend) LatestVersion

func (h *HdfsBackend) LatestVersion(checkForSuccess bool) (string, error)

type LocalBackend

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

A basic backend for the local filesystem

func NewLocalBackend

func NewLocalBackend(path string) *LocalBackend

func (*LocalBackend) DisplayPath

func (lb *LocalBackend) DisplayPath(version string) string

func (*LocalBackend) Download

func (lb *LocalBackend) Download(version string, destPath string) error

func (*LocalBackend) LatestVersion

func (lb *LocalBackend) LatestVersion(checkForSuccess bool) (string, error)

type S3Backend

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

func NewS3Backend

func NewS3Backend(bucket *s3.Bucket, s3path string) *S3Backend

func (*S3Backend) DisplayPath

func (s *S3Backend) DisplayPath(version string) string

func (*S3Backend) Download

func (s *S3Backend) Download(version string, destPath string) error

func (*S3Backend) LatestVersion

func (s *S3Backend) LatestVersion(checkForSuccess bool) (string, error)

Jump to

Keyboard shortcuts

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