Documentation ¶
Overview ¶
Package platform defines known platforms
Package platform handles stdin processing
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Systems = SystemTypes{
MacOSSystem: "macos",
LinuxWaylandSystem: "linux-wayland",
LinuxXSystem: "linux-x",
WindowsLinuxSystem: "wsl",
}
Systems are the known platforms for lockbox
Functions ¶
func ConfirmYesNoPrompt ¶
ConfirmYesNoPrompt will ask a yes/no question.
func GetUserInputPassword ¶
GetUserInputPassword will read the user's input from stdin via multiple means.
func IsInputFromPipe ¶
func IsInputFromPipe() bool
IsInputFromPipe will indicate if connected to stdin pipe.
func PathExists ¶
PathExists indicates whether a path exists (true) or not (false)
func ReadInteractivePassword ¶
ReadInteractivePassword will prompt for a single password for unlocking
Types ¶
type System ¶ added in v1.4.0
type System string
System represents the platform lockbox is running on.
type SystemTypes ¶ added in v1.4.0
type SystemTypes struct { MacOSSystem System LinuxWaylandSystem System LinuxXSystem System WindowsLinuxSystem System }
SystemTypes defines systems lockbox is known to run on or can run on
func (SystemTypes) List ¶ added in v1.4.0
func (p SystemTypes) List() []string
List will list the platform types on the struct
Click to show internal directories.
Click to hide internal directories.