keyring

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 2 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) 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) 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) Reset

func (p *Permission) Reset()

Jump to

Keyboard shortcuts

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