Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteRequest(client HTTPClient, paths []string) ([]lib.DeleteResult, []*lib.SearchResult)
- func FlattenChildren(children []*lib.SearchResult) (cs []*lib.SearchResult)
- func GetPath(client HTTPClient, path string) (res *lib.SearchResult, err error)
- func ListFiles(client HTTPClient, dir string) ([]*lib.SearchResult, error)
- func PercentEncode(input string) string
- func SearchRequest(client HTTPClient, command string) []lib.SearchResult
- type Auth
- type HTTPClient
Constants ¶
View Source
const ( HmacSha1 = "HMAC-SHA1" HmacSha256 = "HMAC-SHA256" )
Variables ¶
View Source
var ( Cache []*lib.SearchResult Pathlookup = make(map[string]*lib.SearchResult) )
Functions ¶
func DeleteRequest ¶
func DeleteRequest(client HTTPClient, paths []string) ([]lib.DeleteResult, []*lib.SearchResult)
DeleteRequest make delete request for filedirectory paths
func FlattenChildren ¶
func FlattenChildren(children []*lib.SearchResult) (cs []*lib.SearchResult)
FlattenChildren recursively flatten the children of a directory in the filecabinet
func GetPath ¶
func GetPath(client HTTPClient, path string) (res *lib.SearchResult, err error)
GetPath get the item from the lookup map
func ListFiles ¶
func ListFiles(client HTTPClient, dir string) ([]*lib.SearchResult, error)
ListFiles list the files of a specific directory in the filecabinet
func PercentEncode ¶
PercentEncode percent encodes a string according to RFC 3986 2.1.
func SearchRequest ¶
func SearchRequest(client HTTPClient, command string) []lib.SearchResult
SearchRequest make search request
Types ¶
Click to show internal directories.
Click to hide internal directories.