1
0
mirror of https://github.com/fumiama/imago.git synced 2026-06-22 02:50:25 +08:00

switch to secure version

This commit is contained in:
fumiama
2022-01-07 21:19:19 +08:00
parent 491a36ae30
commit 81e94f0e4b
3 changed files with 4 additions and 4 deletions

2
go.mod
View File

@@ -5,7 +5,7 @@ go 1.16
require ( require (
github.com/corona10/goimagehash v1.0.3 github.com/corona10/goimagehash v1.0.3
github.com/fumiama/go-base16384 v1.2.1 github.com/fumiama/go-base16384 v1.2.1
github.com/fumiama/simple-storage v0.0.0-20220106102421-4c6a202bc641 github.com/fumiama/simple-storage v0.0.0-20220107131337-1183d78fffd5
github.com/kolesa-team/go-webp v1.0.1 github.com/kolesa-team/go-webp v1.0.1
github.com/sirupsen/logrus v1.8.1 github.com/sirupsen/logrus v1.8.1
) )

4
go.sum
View File

@@ -11,8 +11,8 @@ github.com/fumiama/go-base16384 v1.2.1/go.mod h1:1HTC0QFL7BjS0DuO5Qm+fBYKQkHqmAa
github.com/fumiama/go-hide-param v0.1.4/go.mod h1:vJkQlJIEI56nIyp7tCQu1/2QOyKtZpudsnJkGk9U1aY= github.com/fumiama/go-hide-param v0.1.4/go.mod h1:vJkQlJIEI56nIyp7tCQu1/2QOyKtZpudsnJkGk9U1aY=
github.com/fumiama/gofastTEA v0.0.6 h1:Yni3MXDbJVa/c4CecgdZDgCJK+fLdvGph+OBqY2mtiI= github.com/fumiama/gofastTEA v0.0.6 h1:Yni3MXDbJVa/c4CecgdZDgCJK+fLdvGph+OBqY2mtiI=
github.com/fumiama/gofastTEA v0.0.6/go.mod h1:+sBZ05nCA2skZkursHNvyr8kULlEetrYTM2y5kA4rQc= github.com/fumiama/gofastTEA v0.0.6/go.mod h1:+sBZ05nCA2skZkursHNvyr8kULlEetrYTM2y5kA4rQc=
github.com/fumiama/simple-storage v0.0.0-20220106102421-4c6a202bc641 h1:Anr9cfe/WdGDszKez9FS1I+uZh24WUP9oiWRd1yO2wA= github.com/fumiama/simple-storage v0.0.0-20220107131337-1183d78fffd5 h1:8QOMi3IJReNlEnuePpWA9Mfrey3xGNnW1VvqkXNLWZ4=
github.com/fumiama/simple-storage v0.0.0-20220106102421-4c6a202bc641/go.mod h1:ZL+V3VULLrhLhjio/qoG8w1C7E0dr2AnsmkI35IUoY0= github.com/fumiama/simple-storage v0.0.0-20220107131337-1183d78fffd5/go.mod h1:ZL+V3VULLrhLhjio/qoG8w1C7E0dr2AnsmkI35IUoY0=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=

View File

@@ -131,6 +131,6 @@ func (remo *RemoteStorage) SaveConf(data []byte) error {
// SaveConf Save config file into storage // SaveConf Save config file into storage
func (remo *RemoteStorage) GetConf() (data []byte, err error) { func (remo *RemoteStorage) GetConf() (data []byte, err error) {
data, _, err = remo.cli.GetFile("cfg", "conf.pb") data, _, err = remo.cli.GetSecureFile("cfg", "conf.pb")
return return
} }