Skip to content

Commit

Permalink
removed cyclic dep
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed May 1, 2020
1 parent 58b2d79 commit 714a27c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 10 additions & 0 deletions url/key.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package url


//AES256Key represents custom key
type AES256Key struct {
Key []byte
Base64Key string
Base64KeyMd5Hash string
Base64KeySha256Hash string
}
3 changes: 1 addition & 2 deletions url/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"encoding/base64"
"fmt"
"github.com/viant/afs/option"
"github.com/viant/toolbox"
"github.com/viant/toolbox/storage"
"gopkg.in/yaml.v2"
Expand All @@ -22,7 +21,7 @@ type Resource struct {
Credentials string `description:"credentials file"` //name of credential file or credential key depending on implementation
ParsedURL *url.URL `json:"-"` //parsed URL resource
Cache string `description:"local cache path"` //Cache path for the resource, if specified resource will be cached in the specified path
CustomKey *option.AES256Key `description:" content encryption key"`
CustomKey *AES256Key `description:" content encryption key"`
CacheExpiryMs int //CacheExpiryMs expiry time in ms
modificationTag int64
init string
Expand Down

0 comments on commit 714a27c

Please sign in to comment.