@@ -37,6 +37,7 @@ type Client interface {
37
37
NewGarbageCollection (ctx context.Context , gcSchedule * model.Schedule ) error
38
38
UpdateGarbageCollection (ctx context.Context ,
39
39
newGCSchedule * model.Schedule ) error
40
+ GetGarbageCollectionExecutions (ctx context.Context ) ([]* model.GCHistory , error )
40
41
GetGarbageCollectionExecution (ctx context.Context , id int64 ) (* model.GCHistory , error )
41
42
GetGarbageCollectionSchedule (ctx context.Context ) (* model.GCHistory , error )
42
43
ResetGarbageCollection (ctx context.Context ) error
@@ -88,6 +89,18 @@ func (c *RESTClient) UpdateGarbageCollection(ctx context.Context,
88
89
return handleSwaggerSystemErrors (err )
89
90
}
90
91
92
+ // GetGarbageCollectionExecutions Returns the garbage collection executions.
93
+ func (c * RESTClient ) GetGarbageCollectionExecutions (ctx context.Context ) ([]* model.GCHistory , error ) {
94
+ resp , err := c .V2Client .GC .GetGCHistory (& gc.GetGCHistoryParams {
95
+ Context : ctx ,
96
+ }, c .AuthInfo )
97
+ if err != nil {
98
+ return nil , handleSwaggerSystemErrors (err )
99
+ }
100
+
101
+ return resp .Payload , nil
102
+ }
103
+
91
104
// GetGarbageCollectionExecution Returns a garbage collection execution identified by its id.
92
105
func (c * RESTClient ) GetGarbageCollectionExecution (ctx context.Context , id int64 ) (* model.GCHistory , error ) {
93
106
resp , err := c .V2Client .GC .GetGC (& gc.GetGCParams {
0 commit comments