diff options
author | Reinhard Tartler <siretart@tauware.de> | 2022-11-26 11:30:56 -0500 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2022-11-26 11:30:56 -0500 |
commit | d6caca7a938130982d713b6be0ca0823f46b0b4c (patch) | |
tree | dc35be0da27e89eb9208a44aabbd24b00df629db /internal/app/siftool/unmount.go | |
parent | dc1634f506b369be461ff65c77b2a804e06df87f (diff) | |
parent | dab73e7c0f7576075e7f073f71cc3f32a656b161 (diff) |
Update upstream source from tag 'upstream/2.8.3'
Update to upstream version '2.8.3'
with Debian dir 7536ac56d7f18b29fd849f99100170df028e78fe
Diffstat (limited to 'internal/app/siftool/unmount.go')
-rw-r--r-- | internal/app/siftool/unmount.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/internal/app/siftool/unmount.go b/internal/app/siftool/unmount.go new file mode 100644 index 0000000..52d8492 --- /dev/null +++ b/internal/app/siftool/unmount.go @@ -0,0 +1,20 @@ +// Copyright (c) 2022, Sylabs Inc. All rights reserved. +// This software is licensed under a 3-clause BSD license. Please consult the +// LICENSE file distributed with the sources of this project regarding your +// rights to use or distribute this software. + +package siftool + +import ( + "context" + + "github.com/sylabs/sif/v2/pkg/user" +) + +// Unmounts the filesystem at mountPath. +func (a *App) Unmount(ctx context.Context, mountPath string) error { + return user.Unmount(ctx, mountPath, + user.OptUnmountStdout(a.opts.out), + user.OptUnmountStderr(a.opts.err), + ) +} |