Documentation
¶
Index ¶
- Constants
- func AssertVaultExists()
- func FormatAttributes(path string, attrs AttributeMap, print bool)
- func FormatDirectory(path string, level int)
- func FormatKeyList(keys []MasterKey)
- func GetVaultPath() string
- func GitClone(url string)
- func GitCommit(file string, op int, message string)
- func GitCommitRename(oldFile, newFile string)
- func GitInit()
- func GitPull()
- func GitPush()
- func GitRemote(url string)
- func IsValidPath(path string) bool
- func RemoveFromSlice(arr []string, item string) []string
- func RunGitCommand(suppress bool, args ...string) error
- func ShouldFileBeWalked(path string) (bool, error)
- func StringArrayContains(arr []string, item string) bool
- type Attribute
- type AttributeMap
- type MasterKey
- type Secret
- type VaultMeta
Constants ¶
View Source
const ( GIT_ADD = 0 GIT_EDIT = 1 GIT_DELETE = 2 )
View Source
const ( BpkdfIterations = 8192 BpkdfKeySize = 32 )
Variables ¶
This section is empty.
Functions ¶
func AssertVaultExists ¶
func AssertVaultExists()
func FormatAttributes ¶
func FormatAttributes(path string, attrs AttributeMap, print bool)
func FormatDirectory ¶
func FormatKeyList ¶
func FormatKeyList(keys []MasterKey)
func GetVaultPath ¶
func GetVaultPath() string
func GitCommitRename ¶ added in v0.2.0
func GitCommitRename(oldFile, newFile string)
func IsValidPath ¶ added in v0.2.0
func RemoveFromSlice ¶
func RunGitCommand ¶
func ShouldFileBeWalked ¶
func StringArrayContains ¶
Types ¶
type AttributeMap ¶
func (AttributeMap) EyesOnlyCount ¶
func (m AttributeMap) EyesOnlyCount() int
func (AttributeMap) FindFirstEyesOnly ¶
func (m AttributeMap) FindFirstEyesOnly() string
Click to show internal directories.
Click to hide internal directories.