Documentation ¶
Index ¶
- func CustomKeyMap() list.KeyMap
- func GenerateItemList(pitems []ListItem) []list.Item
- func GenerateListItemList(client *vault.Client, mount, current string) ([]list.Item, error)
- func InitList(items []list.Item, current string) (tea.Model, tea.Cmd)
- func StartUI(client *vault.Client, mount string) error
- type ListItem
- type SecretDisplay
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomKeyMap ¶
CustomKeyMap returns a default set of keybindings.
func GenerateItemList ¶
func GenerateListItemList ¶
GenerateListItemList filter paths and format them to ListItem
Types ¶
type ListItem ¶
type ListItem struct {
// contains filtered or unexported fields
}
func (ListItem) Description ¶
func (ListItem) FilterValue ¶
type SecretDisplay ¶
type SecretDisplay struct {
// contains filtered or unexported fields
}
func (SecretDisplay) Init ¶
func (s SecretDisplay) Init() tea.Cmd
func (SecretDisplay) View ¶
func (s SecretDisplay) View() string
type State ¶
type State struct { // list of item from list view List []list.Item // current index from the list for // viewport view DisplayCurrentIndex int // Mount path for kv2 // secret engine Mount string // curent secret dir Current string Client *vault.Client }
var ( UIState *State // WindowSize store the size of the terminal window WindowSize tea.WindowSizeMsg )
Click to show internal directories.
Click to hide internal directories.