keyring

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 2 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection added in v0.0.38

type Collection struct {
	// contains filtered or unexported fields
}

func NewCollection added in v0.0.38

func NewCollection() *Collection

func (*Collection) AddCollections added in v0.0.38

func (p *Collection) AddCollections(collections []string)

func (*Collection) Check added in v0.0.38

func (p *Collection) Check(rule string) bool

func (*Collection) GetCollections added in v0.0.38

func (p *Collection) GetCollections() []string

func (*Collection) Reset added in v0.0.38

func (p *Collection) Reset()

type KeyInfo

type KeyInfo struct {
	// contains filtered or unexported fields
}

func NewKey added in v0.0.28

func NewKey(appID string, key string) *KeyInfo

func (*KeyInfo) Collection added in v0.0.38

func (info *KeyInfo) Collection() *Collection

func (*KeyInfo) Encryption

func (info *KeyInfo) Encryption() *encryption.Encryption

func (*KeyInfo) GetAppID added in v0.0.28

func (info *KeyInfo) GetAppID() string

func (*KeyInfo) Permission

func (info *KeyInfo) Permission() *Permission

type Keyring

type Keyring struct {
	// contains filtered or unexported fields
}

func NewKeyring

func NewKeyring() *Keyring

func (*Keyring) AddKey added in v0.0.28

func (keyring *Keyring) AddKey(key *KeyInfo)

func (*Keyring) Delete

func (keyring *Keyring) Delete(appID string)

func (*Keyring) Get

func (keyring *Keyring) Get(appID string) *KeyInfo

func (*Keyring) GetKeys added in v0.0.38

func (keyring *Keyring) GetKeys() *sync.Map

func (*Keyring) Put

func (keyring *Keyring) Put(appID string, key string) *KeyInfo

func (*Keyring) Unref

func (keyring *Keyring) Unref(appID string)

type Permission

type Permission struct {
	// contains filtered or unexported fields
}

func NewPermission

func NewPermission() *Permission

func (*Permission) AddPermissions

func (p *Permission) AddPermissions(permissions []string)

func (*Permission) Check

func (p *Permission) Check(rule string) bool

func (*Permission) GetPermissions added in v0.0.38

func (p *Permission) GetPermissions() []string

func (*Permission) Reset

func (p *Permission) Reset()

Jump to

Keyboard shortcuts

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