-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from waifuvault/update-api-to-add-modify-api
add modify
- Loading branch information
Showing
4 changed files
with
187 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package mod | ||
|
||
// ModifyEntryPayload A modify entry request to change aspects of the entry | ||
type ModifyEntryPayload struct { | ||
|
||
// The new password. | ||
// If the file is not currently encrypted, then this will encrypt it with the new password if it is encrypted, Then this will change the password (`previousPassword` will need to be set in this case) | ||
// set this to an empty string `""` to remove protection and decrypt the file | ||
Password *string `json:"password"` | ||
|
||
// If changing a password, then this will need to be set | ||
PreviousPassword *string `json:"previousPassword"` | ||
|
||
// same as WaifuvaultPutOpts.Expires | ||
CustomExpiry *string `json:"customExpiry"` | ||
|
||
// hide the filename. use the new URL in the response to get the new URL to use | ||
HideFilename *bool `json:"hideFilename"` | ||
} |
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