package keepclient
import (
+ "crypto/md5"
"git.curoverse.com/arvados.git/sdk/go/streamer"
"errors"
"fmt"
SvcType string `json:"service_type"`
}
+func Md5String(s string) (string) {
+ return fmt.Sprintf("%x", md5.Sum([]byte(s)))
+}
+
func (this *KeepClient) DiscoverKeepServers() error {
if prx := os.Getenv("ARVADOS_KEEP_PROXY"); prx != "" {
sr := map[string]string{"proxy":prx}
return nil
}
-func (this KeepClient) shuffledServiceRoots(hash string) (pseq []string) {
- return NewRootSorter(this.ServiceRoots(), hash).GetSortedRoots()
-}
-
type uploadStatus struct {
err error
url string