messages

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePayload

func ParsePayload(message IPCMessage) interface{}

Types

type ActionResponse

type ActionResponse struct {
	Success bool
	Message string
}

type AddLoginRequest

type AddLoginRequest struct {
	Name string
	UUID string
}

type AddLoginResponse

type AddLoginResponse struct {
	Name string
	UUID string
}

type CreateSSHKeyRequest

type CreateSSHKeyRequest struct {
	Name string
}

type CreateSSHKeyResponse

type CreateSSHKeyResponse struct {
	Digest string
}

type DecryptedLoginCipher

type DecryptedLoginCipher struct {
	Name          string
	Username      string
	Password      string
	UUID          string
	OrgaizationID string
	Notes         string
	TwoFactorCode string
}

type DecryptedNoteCipher

type DecryptedNoteCipher struct {
	Name     string
	Contents string
}

type DoLoginRequest

type DoLoginRequest struct {
	Email        string `json:"email"`
	Password     string `json:"password"`
	Passwordless bool   `json:"passwordless"`
}

type GetBiometricsKeyRequest

type GetBiometricsKeyRequest struct {
}

type GetBiometricsKeyResponse

type GetBiometricsKeyResponse struct {
	Key string
}

type GetCLICredentialsRequest

type GetCLICredentialsRequest struct {
	ApplicationName string
}

type GetCLICredentialsResponse

type GetCLICredentialsResponse struct {
	Env map[string]string
}

type GetLoginRequest

type GetLoginRequest struct {
	Name     string
	Username string
	UUID     string
	OrgId    string

	GetList bool
}

type GetLoginResponse

type GetLoginResponse struct {
	Found  bool
	Result DecryptedLoginCipher
}

type GetLoginsResponse

type GetLoginsResponse struct {
	Found  bool
	Result []DecryptedLoginCipher
}

type GetNoteResponse

type GetNoteResponse struct {
	Found  bool
	Result DecryptedNoteCipher
}

type GetNotesRequest

type GetNotesRequest struct {
	Name string
}

type GetNotesResponse

type GetNotesResponse struct {
	Found  bool
	Result []DecryptedNoteCipher
}

type GetSSHKeysRequest

type GetSSHKeysRequest struct {
}

type GetSSHKeysResponse

type GetSSHKeysResponse struct {
	Keys []string
}

type GetVaultPINRequest

type GetVaultPINRequest struct {
}

type IPCMessage

type IPCMessage struct {
	Type    IPCMessageType `json:"type"`
	Payload []byte         `json:"payload"`
}

func IPCMessageFromPayload

func IPCMessageFromPayload(payload interface{}) (IPCMessage, error)

type IPCMessageType

type IPCMessageType int64

func MessageTypeForEmptyPayload

func MessageTypeForEmptyPayload(emptyPayload interface{}) IPCMessageType

type ListLoginsRequest

type ListLoginsRequest struct {
}

type LockVaultRequest

type LockVaultRequest struct {
}

type SetApiURLRequest

type SetApiURLRequest struct {
	Value string
}

type SetIdentityURLRequest

type SetIdentityURLRequest struct {
	Value string
}

type SetNotificationsURLRequest

type SetNotificationsURLRequest struct {
	Value string
}

type UnlockVaultRequest

type UnlockVaultRequest struct {
}

type UpdateVaultPINRequest

type UpdateVaultPINRequest struct {
}

type VaultStatusRequest added in v0.2.0

type VaultStatusRequest struct {
}

type VaultStatusResponse added in v0.2.0

type VaultStatusResponse struct {
	Locked         bool
	NumberOfLogins int
	NumberOfNotes  int
}

type WipeVaultRequest

type WipeVaultRequest struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL