-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rebase & squash Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * trackstore progress Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * more progress Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * extensive trackstore tests Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * fixes Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * revert ci change Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * lints Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * fix docs Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * start migrations Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * progress Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * migration progress Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * storageinfo migr Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * progress Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * work Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * migration tests and changes Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * pinstore migration tests Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * lints Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * punctuation Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * change Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * rename Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * rename again Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * forward only Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * lint Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * fix admin ctx Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * allow for non-transactional migrations & real migration test & fixes Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * resume deal fixes & migration Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * improve comment Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com> * cover the stage folder usecase Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
- Loading branch information
Showing
86 changed files
with
5,633 additions
and
1,677 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
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,22 @@ | ||
package admin | ||
|
||
import ( | ||
"context" | ||
|
||
proto "github.com/textileio/powergate/api/gen/powergate/admin/v1" | ||
) | ||
|
||
// Data provides access to Powergate data admin APIs. | ||
type Data struct { | ||
client proto.AdminServiceClient | ||
} | ||
|
||
// GCStaged unpins staged data not related to queued or executing jobs. | ||
func (w *Data) GCStaged(ctx context.Context) (*proto.GCStagedResponse, error) { | ||
return w.client.GCStaged(ctx, &proto.GCStagedRequest{}) | ||
} | ||
|
||
// PinnedCids returns pinned cids information of hot-storage. | ||
func (w *Data) PinnedCids(ctx context.Context) (*proto.PinnedCidsResponse, error) { | ||
return w.client.PinnedCids(ctx, &proto.PinnedCidsRequest{}) | ||
} |
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
Oops, something went wrong.