suitetalk

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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

func PercentEncode(input string) string

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

type Auth

type Auth struct {
	Nonce       string
	Timestamp   string
	Signature   string
	Account     string
	ConsumerKey string
	Token       string
	Algorithm   string
}

func GetAuthSuiteTalk

func GetAuthSuiteTalk(algorithm string) (Auth, error)

GetAuthSuiteTalk create oauth credentials

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient resource interface

Jump to

Keyboard shortcuts

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