-
Notifications
You must be signed in to change notification settings - Fork 246
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
Showing
3 changed files
with
50 additions
and
5 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,24 @@ | ||
package getter | ||
|
||
// ClientMode is the mode that the client operates in. | ||
type ClientMode uint | ||
|
||
const ( | ||
ClientModeInvalid ClientMode = iota | ||
|
||
// ClientModeAny downloads anything it can. In this mode, dst must | ||
// be a directory. If src is a file, it is saved into the directory | ||
// with the basename of the URL. If src is a directory or archive, | ||
// it is unpacked directly into dst. | ||
ClientModeAny | ||
|
||
// ClientModeFile downloads a single file. In this mode, dst must | ||
// be a file path (doesn't have to exist). src must point to a single | ||
// file. It is saved as dst. | ||
ClientModeFile | ||
|
||
// ClientModeDir downloads a directory. In this mode, dst must be | ||
// a directory path (doesn't have to exist). src must point to an | ||
// archive or directory (such as in s3). | ||
ClientModeDir | ||
) |
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