web_hdfs

package
v0.0.0-...-810d887 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestUrl

func GetRequestUrl(cluster string) (string, error)

func WrapperListDirUrl

func WrapperListDirUrl(serverUrl string, filePath string) (requestUrl string, err error)

Types

type ListDirFileStatus

type ListDirFileStatus struct {
	FileStatus []ListDirFileStatusDetail `json:"FileStatus"`
}

type ListDirFileStatusDetail

type ListDirFileStatusDetail struct {
	Group            string `json:"group"`
	Length           int    `json:"length"`
	ModificationTime int64  `json:"modificationTime"`
	Owner            string `json:"owner"`
	PathSuffix       string `json:"pathSuffix"`
	Permission       string `json:"permission"`
	Type             string `json:"type"`
}

type ListDirResponse

type ListDirResponse struct {
	FileStatuses ListDirFileStatus `json:"FileStatuses"`
}

type WebHdfsApi

type WebHdfsApi struct {
	RequestUrl string
	FilePath   string
	Offset     int
	Length     int
	BufferSize int
	Operation  string `json:"op"`
}

func (*WebHdfsApi) ListDir

func (this *WebHdfsApi) ListDir() ([]ListDirFileStatusDetail, error)

func (*WebHdfsApi) Open

func (this *WebHdfsApi) Open() ([]byte, error)

Jump to

Keyboard shortcuts

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