passwordparser

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package passwordparser parses password data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PasswordEntry

type PasswordEntry struct {
	Label   string `jsonry:"label"`
	Secret  string `jsonry:"password.secret"`
	Primary bool   `jsonry:"primary"`
}

func Parse

func Parse(input any) ([]PasswordEntry, error)

func (*PasswordEntry) UnmarshalJSON added in v2.1.0

func (p *PasswordEntry) UnmarshalJSON(input []byte) error

UnmarshalJSON is implemented because JSONry doesn't currently support slices of structs so we unmarshal each struct individually

Jump to

Keyboard shortcuts

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