From 1c6ae73a898222a14b98526339d9985c51f88d35 Mon Sep 17 00:00:00 2001 From: Sujil02 Date: Tue, 5 May 2020 22:29:54 -0400 Subject: Adds tunnel routes for system reset. Adds tunnel routes for system reset. Makes forces flag local as options are not propogated down the stack. Adds relevant test cases and swagger docs. Signed-off-by: Sujil02 --- pkg/domain/infra/tunnel/system.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/domain/infra/tunnel/system.go') diff --git a/pkg/domain/infra/tunnel/system.go b/pkg/domain/infra/tunnel/system.go index dafada805..b1be28e04 100644 --- a/pkg/domain/infra/tunnel/system.go +++ b/pkg/domain/infra/tunnel/system.go @@ -27,6 +27,11 @@ func (ic *ContainerEngine) SystemPrune(ctx context.Context, options entities.Sys return system.Prune(ic.ClientCxt, &options.All, &options.Volume) } +// Reset removes all storage +func (ic *SystemEngine) Reset(ctx context.Context) error { + return system.Reset(ic.ClientCxt) +} + func (ic *ContainerEngine) SystemDf(ctx context.Context, options entities.SystemDfOptions) (*entities.SystemDfReport, error) { panic(errors.New("system df is not supported on remote clients")) } -- cgit v1.2.3-54-g00ecf