Skip to content

Commit

Permalink
vault: deposit v2 stub
Browse files Browse the repository at this point in the history
  • Loading branch information
miku committed Dec 20, 2024
1 parent 5a96afb commit 97448ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions backend/vault/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,3 +592,12 @@ func (api *API) root() (*TreeNode, error) {
api.cache.SetGroup("root", "default", t)
return t, nil
}

// TODO(martin): do two, then pass on

// func (api *API) depositV2...

// resp, err := f.depositsV2Client.VaultDepositApiRegisterDepositWithResponse(ctx, body)
// resp, err = f.depositsV2Client.VaultDepositApiSendChunkWithBody(ctx, w.FormDataContentType(), &wbuf)
// resp, err := f.depositsV2Client.VaultDepositApiTerminateDeposit(ctx, body)
// resp, err := f.depositsV2Client.VaultDepositApiFinalizeDepositWithResponse(ctx, body)
2 changes: 1 addition & 1 deletion backend/vault/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e
root: root,
opt: opt,
api: api,
depositsV2Client: depositsV2Client,
depositsV2Client: depositsV2Client, // TODO: remove this doubling of API and then another client for the deposit
}
f.features = (&fs.Features{
CanHaveEmptyDirectories: true,
Expand Down

0 comments on commit 97448ff

Please sign in to comment.