casket

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Casket

type Casket struct {
	CasketAttribute
	Members map[string](*member.PrivateMember)
}

func Create

func Create(ca CreateArg) (*Casket, *member.PrivateMember, error)

UseCase Write the PrivateKey in den casket ~/.neckless/casket neckless casket create --name <name> [--device <name>] [--person|--device] [--file=~/.crazybee/casket]

func Ls

func Ls(fnames ...string) (*Casket, error)

UseCase List casket neckless casket ls

func Rm

func Rm(rmarg RmArg) (*Casket, []*member.PrivateMember, error)

UseCase Delete Key from casket neckless casket rm <id>

func (*Casket) AsJSON

func (casket *Casket) AsJSON() *JsonCasket

func (*Casket) AsPrivateMembers

func (c *Casket) AsPrivateMembers() []*member.PrivateMember

type CasketAttribute

type CasketAttribute struct {
	CasketFname *string   `json:"-"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
}

type CreateArg

type CreateArg struct {
	member.MemberArg
	DryRun bool    // if dryrun don't write
	Fname  *string //
}

type JsonCasket

type JsonCasket struct {
	Members map[string]member.JsonPrivateMember `json:"members"`
	CasketAttribute
}

type RmArg

type RmArg struct {
	Ids    []string
	DryRun bool    // if dryrun don't write
	Fname  *string //
}

Jump to

Keyboard shortcuts

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