-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95604cc
commit fb64fb6
Showing
6 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,7 +125,10 @@ Inputs: | |
}, | ||
10, | ||
1032, | ||
"string value" | ||
{ | ||
"Type": "fs", | ||
"Params": "eyJQYXRoIjoiL3BhdGgifQ==" | ||
} | ||
] | ||
``` | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package market | ||
|
||
const ( | ||
PiecesTransferS3 = "s3" | ||
PiecesTransferFs = "fs" | ||
) | ||
|
||
type FsTransfer struct { | ||
Path string | ||
} | ||
|
||
type S3Transfer struct { | ||
EndPoint string | ||
Bucket string | ||
SubDir string | ||
|
||
AccessKey string | ||
SecretKey string | ||
Token string | ||
|
||
Key string | ||
} | ||
|
||
// Transfer has the parameters for a data transfer | ||
type Transfer struct { | ||
// The type of transfer eg "http" | ||
Type string | ||
// A byte array containing marshalled data specific to the transfer type | ||
// eg a JSON encoded struct { URL: "<url>", Headers: {...} } | ||
Params []byte | ||
} |