api

package
v0.0.0-...-61472b1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(host string, port int, filePath string) error

func Get

func Get(host string, port int, filePath string) ([]byte, error)

func GetEntries

func GetEntries(host string, port int, filePathPrefix string) (entries []*master.Entry, err error)

func GetEntry

func GetEntry(host string, port int, filePath string) (entry *master.Entry, err error)

func Heartbeat

func Heartbeat(host string, port int, ss *master.StorageStatus) error

func InsertEntry

func InsertEntry(host string, port int, entry *master.Entry) error

func Upload

func Upload(host string, port int, dstFilePath, srcFilePath string) error

func WriteData

func WriteData(host string, port int, filePath string, data *[]byte) error

Entry of filePath must be created first

Types

This section is empty.

Jump to

Keyboard shortcuts

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