Documentation
¶
Index ¶
- Constants
- Variables
- func AppBoundaryView(styles *Styles, width int, text string, wsc string) string
- func AppErrorBoundaryView(styles *Styles, width int, text string) string
- func ErrorMessage(error error) func() tea.Msg
- func SwitchModeCmd(target Mode, in SwitchModeInput) tea.Cmd
- type AuthenticatorType
- type CopyAuthenticatorInput
- type CopyCredentialInput
- type CredentialEncoding
- type CredentialFormat
- type CredentialType
- type ErrMsg
- type ListAuthenticatorInput
- type ListCredentialInput
- type ListFlagInput
- type ListNoteInput
- type ListProjectInput
- type MakeAdministrateUserInput
- type MakeAuthenticatorInput
- type MakeCredentialInput
- type MakeFlagInput
- type MakeNoteInput
- type MakeProjectInput
- type MakeUserInput
- type Mode
- type PickProjectInput
- type ProjectTabChangeMsg
- type Styles
- type SwitchModeInput
- type SwitchModeMsg
- type ViewNoteInput
- type ViewProjectInput
Constants ¶
View Source
const ( SCredentialTypeCleartext = "Cleartext" SCredentialTypeHash = "Hash" SCredentialTypeCipher = "Cipher" SCredentialTypeOther = "Other" SCredentialTypeNull = "Null" )
View Source
const ( SCredentialFormatRaw = "Raw" SCredentialFormatNTLM = "NTLM" SCredentialFormatSSH_RSA = "SSH-RSA" SCredentialFormatSSH_DSA = "SSH-DSA" SCredentialFormatSSH_ED = "SSH-ED" SCredentialFormatAES128 = "AES-128" SCredentialFormatAES256 = "AES-256" SCredentialFormatOther = "Other" )
View Source
const ( SCredentialEncodingRaw = "Raw" SCredentialEncodingBase64 = "Base64" SCredentialEncodingHex = "Hex" SCredentialEncodingPEM = "PEM" )
View Source
const ( ModeListProject = Mode(iota) ModeListProjectFlag ModeListAuthenticator ModeMakeProject ModeMakeAuthenticator ModeMakeFlag ModeMakeNote ModeMakeCredential ModeMakeUser ModeAdministrateUser ModeViewProject ModeCopyCredential ModeViewNote ModePickProject NewModelCopyAuthenticator )
Variables ¶
View Source
var AuthenticatorTypeList = [...]string{"Host", "Domain", "Application", "Other"}
View Source
var CredentialEncodingList = [...]string{"Raw", "Base64", "Hex", "PEM"}
View Source
var CredentialEncodingMap = initCredentialEncodingMap()
View Source
var CredentialFormatList = [...]string{"Raw", "NTLM", "SSH-RSA", "SSH-DSA", "SSH-ED", "AES-128", "AES-256", "Other"}
View Source
var CredentialFormatMap = initCredentialFormatMap()
View Source
var CredentialTypeList = [...]string{"Cleartext", "Hash", "Cipher", "Other", "Null"}
List of credential types as strings
View Source
var SCredentialTypeMap = initSCredentialTypeMap()
Functions ¶
func AppBoundaryView ¶
func AppErrorBoundaryView ¶
func ErrorMessage ¶
func SwitchModeCmd ¶
func SwitchModeCmd(target Mode, in SwitchModeInput) tea.Cmd
Types ¶
type AuthenticatorType ¶
type AuthenticatorType int
const ( AuthenticatorTypeHost AuthenticatorType = iota AuthenticatorTypeDomain AuthenticatorTypeApplication AuthenticatorTypeOther )
func (AuthenticatorType) String ¶
func (c AuthenticatorType) String() string
type CopyAuthenticatorInput ¶
type CopyAuthenticatorInput struct { Width int Height int ProjectId string LastTabIndex int AuthenticatorId string }
type CopyCredentialInput ¶
type CopyCredentialInput struct { Width int Height int ProjectId string LastTabIndex int AuthenticatorId string CredentialId string }
func NewCopyCredentialInput ¶
type CredentialEncoding ¶
type CredentialEncoding int
const ( CredentialEncodingRaw CredentialEncoding = iota CredentialEncodingBase64 CredentialEncodingHex CredentialEncodingPEM )
func (CredentialEncoding) String ¶
func (c CredentialEncoding) String() string
type CredentialFormat ¶
type CredentialFormat int
const ( CredentialFormatRaw CredentialFormat = iota CredentialFormatNTLM CredentialFormatSSH_RSA CredentialFormatSSH_DSA CredentialFormatSSH_ED CredentialFormatAES128 CredentialFormatAES256 CredentialFormatRC4 CredentialFormatDES3 CredentialFormatOther )
func (CredentialFormat) String ¶
func (c CredentialFormat) String() string
type CredentialType ¶
type CredentialType int
Define the CredentialType type
const ( CredentialTypeCleartext CredentialType = iota CredentialTypeHash CredentialTypeCipher CredentialTypeOther CredentialTypeNull )
Define the CredentialType constants
func (CredentialType) String ¶
func (c CredentialType) String() string
type ListAuthenticatorInput ¶
func NewListAuthenticatorInput ¶
func NewListAuthenticatorInput(width int, height int, projectId string, lastTabIndex int) *ListAuthenticatorInput
type ListCredentialInput ¶
type ListCredentialInput struct { Width int Height int ProjectId string LastTabIndex int AuthenticatorId string }
func NewListCredentialInput ¶
type ListFlagInput ¶
func NewListFlagInput ¶
func NewListFlagInput(width int, height int, projectId string, lastTabIndex int) *ListFlagInput
type ListNoteInput ¶
func NewListNoteInput ¶
func NewListNoteInput(width int, height int, projectId string, lastTabIndex int) *ListNoteInput
type ListProjectInput ¶
func NewListProjectInput ¶
func NewListProjectInput(width int, height int) *ListProjectInput
type MakeAdministrateUserInput ¶ added in v0.3.0
func NewAdministrateUserInput ¶ added in v0.3.0
func NewAdministrateUserInput(width int, height int) *MakeAdministrateUserInput
type MakeAuthenticatorInput ¶
type MakeAuthenticatorInput struct { Width int Height int ProjectId string AuthenticatorId string LastTabIndex int }
type MakeCredentialInput ¶
type MakeCredentialInput struct { Width int Height int ProjectId string CredentialId string LastTabIndex int AuthenticatorId string }
func NewMakeCredentialInput ¶
type MakeFlagInput ¶
func NewMakeFlagInput ¶
type MakeNoteInput ¶
func NewMakeNoteInput ¶
type MakeProjectInput ¶
func NewMakeProjectInput ¶
func NewMakeProjectInput(width int, height int, projectId string) *MakeProjectInput
type MakeUserInput ¶
func NewMakeUserInput ¶
func NewMakeUserInput(width int, height int) *MakeUserInput
type PickProjectInput ¶
func NewPickProjectInput ¶
func NewPickProjectInput(width int, height int, projectId string, tabIndex int) *PickProjectInput
type ProjectTabChangeMsg ¶
type ProjectTabChangeMsg struct {
ActiveTabIndex int
}
type Styles ¶
type SwitchModeInput ¶
type SwitchModeInput interface {
// contains filtered or unexported methods
}
type SwitchModeMsg ¶
type SwitchModeMsg struct { Target Mode Input SwitchModeInput }
type ViewNoteInput ¶ added in v0.2.1
func NewViewNoteInput ¶ added in v0.2.1
type ViewProjectInput ¶
func NewViewProjectInput ¶
func NewViewProjectInput(mode Mode, id int, title string) *ViewProjectInput
Click to show internal directories.
Click to hide internal directories.