constant

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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 AppBoundaryView(styles *Styles, width int, text string, wsc string) string

func AppErrorBoundaryView

func AppErrorBoundaryView(styles *Styles, width int, text string) string

func ErrorMessage

func ErrorMessage(error error) func() tea.Msg

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
}

func NewCopyAuthenticatorInput

func NewCopyAuthenticatorInput(width int, height int, projectId string, lastTabIndex int, authenticatorId string) *CopyAuthenticatorInput

type CopyCredentialInput

type CopyCredentialInput struct {
	Width           int
	Height          int
	ProjectId       string
	LastTabIndex    int
	AuthenticatorId string
	CredentialId    string
}

func NewCopyCredentialInput

func NewCopyCredentialInput(width int, height int, projectId string, lastTabIndex int, authenticatorId string, credentialId string) *CopyCredentialInput

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 ErrMsg

type ErrMsg struct {
	E error
}

type ListAuthenticatorInput

type ListAuthenticatorInput struct {
	Width        int
	Height       int
	ProjectId    string
	LastTabIndex int
}

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

func NewListCredentialInput(width int, height int, projectId string, lastTabIndex int, authenticatorId string) *ListCredentialInput

type ListFlagInput

type ListFlagInput struct {
	Width        int
	Height       int
	ProjectId    string
	LastTabIndex int
}

func NewListFlagInput

func NewListFlagInput(width int, height int, projectId string, lastTabIndex int) *ListFlagInput

type ListNoteInput

type ListNoteInput struct {
	Width        int
	Height       int
	ProjectId    string
	LastTabIndex int
}

func NewListNoteInput

func NewListNoteInput(width int, height int, projectId string, lastTabIndex int) *ListNoteInput

type ListProjectInput

type ListProjectInput struct {
	Width  int
	Height int
}

func NewListProjectInput

func NewListProjectInput(width int, height int) *ListProjectInput

type MakeAdministrateUserInput added in v0.3.0

type MakeAdministrateUserInput struct {
	Width  int
	Height int
}

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
}

func NewMakeAuthenticatorInput

func NewMakeAuthenticatorInput(width int, height int, projectId string, authenticatorId string, lastTabIndex int) *MakeAuthenticatorInput

type MakeCredentialInput

type MakeCredentialInput struct {
	Width           int
	Height          int
	ProjectId       string
	CredentialId    string
	LastTabIndex    int
	AuthenticatorId string
}

func NewMakeCredentialInput

func NewMakeCredentialInput(width int, height int, projectId string, credentialId string, lastTabIndex int, authenticatorId string) *MakeCredentialInput

type MakeFlagInput

type MakeFlagInput struct {
	Width        int
	Height       int
	ProjectId    string
	FlagId       string
	LastTabIndex int
}

func NewMakeFlagInput

func NewMakeFlagInput(width int, height int, projectId string, flagId string, lastTabIndex int) *MakeFlagInput

type MakeNoteInput

type MakeNoteInput struct {
	Width        int
	Height       int
	ProjectId    string
	NoteId       string
	LastTabIndex int
}

func NewMakeNoteInput

func NewMakeNoteInput(width int, height int, projectId string, noteId string, lastTabIndex int) *MakeNoteInput

type MakeProjectInput

type MakeProjectInput struct {
	Width     int
	Height    int
	ProjectId string
}

func NewMakeProjectInput

func NewMakeProjectInput(width int, height int, projectId string) *MakeProjectInput

type MakeUserInput

type MakeUserInput struct {
	Width  int
	Height int
}

func NewMakeUserInput

func NewMakeUserInput(width int, height int) *MakeUserInput

type Mode

type Mode int

type PickProjectInput

type PickProjectInput struct {
	Width     int
	Height    int
	ProjectId string
	TabIndex  int
}

func NewPickProjectInput

func NewPickProjectInput(width int, height int, projectId string, tabIndex int) *PickProjectInput

type ProjectTabChangeMsg

type ProjectTabChangeMsg struct {
	ActiveTabIndex int
}

type Styles

type Styles struct {
	Background string
	Base,
	HeaderText,
	Status,
	StatusHeader,
	ErrorHeaderText,
	TitleStyle lipgloss.Style
	ListDefaultItemStyle list.DefaultItemStyles
	InactiveTabStyle     lipgloss.Style
	ActiveTabStyle       lipgloss.Style
}

func NewStyles

func NewStyles(lg *lipgloss.Renderer) *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

type ViewNoteInput struct {
	Width        int
	Height       int
	ProjectId    string
	NoteId       string
	LastTabIndex int
}

func NewViewNoteInput added in v0.2.1

func NewViewNoteInput(width int, height int, projectId string, noteId string, lastTabIndex int) *ViewNoteInput

type ViewProjectInput

type ViewProjectInput struct {
	Mode  Mode
	ID    int
	Title string
}

func NewViewProjectInput

func NewViewProjectInput(mode Mode, id int, title string) *ViewProjectInput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳