This repository has been archived by the owner on Dec 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Pedro Cunha
committed
Sep 25, 2017
1 parent
8bf1d6b
commit 48fd3a6
Showing
2 changed files
with
25 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package data | ||
|
||
import ( | ||
"fmt" | ||
) | ||
|
||
type S3Source struct { | ||
bucket string | ||
prefix string | ||
path string | ||
} | ||
|
||
func (s *S3Source) copy() *S3Source { | ||
clone := *s | ||
return &clone | ||
} | ||
|
||
func (t *S3Source) fullPath() string { | ||
return fmt.Sprintf("%s/%s/%s", t.bucket, t.prefix, t.path); | ||
} |