gem

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "Gem"

Variables

This section is empty.

Functions

This section is empty.

Types

type Gem

type Gem struct {
	PubKeys map[string]*member.PublicMember
	Pearl   *pearl.OpenPearl
}

func Create

func Create(gems ...*member.PublicMember) *Gem

func FromJSON

func FromJSON(jsStr []byte) (*Gem, error)

func OpenPearl

func OpenPearl(pks []*key.PrivateKey, prl *pearl.Pearl) (*Gem, error)

func (*Gem) Add

func (gem *Gem) Add(gems ...*member.PublicMember) *Gem

func (*Gem) AsJSON

func (kvp *Gem) AsJSON() *JsonGem

func (*Gem) ClosePearl

func (gem *Gem) ClosePearl(owners *pearl.PearlOwner) (*pearl.Pearl, error)

func (*Gem) Ls

func (gem *Gem) Ls(ids ...string) []*member.PublicMember

func (*Gem) LsByType

func (gem *Gem) LsByType(typ member.MemberType, ids ...string) []*member.PublicMember

func (*Gem) Rm

func (gem *Gem) Rm(ids ...string) *Gem

type JsonGem

type JsonGem struct {
	PubKeys []*member.JsonPublicMember
}

func ToJsonGems

func ToJsonGems(gs ...*Gem) []*JsonGem

Jump to

Keyboard shortcuts

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