-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, the `raw_exec` is the only usable driver.
- Loading branch information
Showing
6 changed files
with
79 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) HashiCorp, Inc. | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
|
||
package allocdir | ||
|
||
import ( | ||
"os" | ||
"syscall" | ||
) | ||
|
||
// linkDir hardlinks src to dst. The src and dst must be on the same filesystem. | ||
func linkDir(src, dst string) error { | ||
return syscall.Link(src, dst) | ||
} | ||
|
||
// unlinkDir removes a directory link. | ||
func unlinkDir(dir string) error { | ||
return syscall.Unlink(dir) | ||
} | ||
|
||
// createSecretDir creates the secrets dir folder at the given path | ||
func createSecretDir(dir string) error { | ||
return os.MkdirAll(dir, 0777) | ||
} | ||
|
||
// removeSecretDir removes the secrets dir folder | ||
func removeSecretDir(dir string) error { | ||
return os.RemoveAll(dir) | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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