storage

package
v0.0.0-...-1b9db15 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HDFS

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

func (*HDFS) IsExist

func (this *HDFS) IsExist(path string) (bool, error)

func (*HDFS) MkdirP

func (this *HDFS) MkdirP(path string) error

func (*HDFS) Rm

func (this *HDFS) Rm(path string) error

func (*HDFS) Touch

func (this *HDFS) Touch(path string) error

type Storage

type Storage interface {
	MkdirP(path string) error
	Rm(path string) error
	Touch(path string) error
	IsExist(path string) (bool, error)
}

func NewHDFS

func NewHDFS(namenode string) (Storage, error)

Jump to

Keyboard shortcuts

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