Documentation ¶
Index ¶
- func FetchAuthPrv(authStr string) string
- func FetchAuthPub(authStr string) string
- func FetchAuthPubs(auths_json string) string
- func FetchCurve(curveStr string) string
- func FetchOrg(orgStr string) string
- func FetchUserAttrs(user string) string
- func FetchUserkey(user string, attr string) string
- func FetchUserkeys(userattrsJson string) string
- func GetCurve(curveStr string) string
- func InitAbeService(config Config, abeServiceStorage AbeServiceStorage)
- func NewRandomSecret(orgStr string, seed string) string
- func SetupAuth(authStr string, orgStr string) string
- func SetupOrg(orgStr string, lib string, curveStr string) string
- func SetupUserkey(user string, attr string) string
- func StoreAuthPrv(authStr string, authprvJson string)
- func StoreAuthPub(authStr string, authpub_json string)
- func StoreCurve(curveStr string, curveJson string)
- func StoreOrg(orgStr string, orgJson string)
- func StoreUserkey(user string, attr string, userkey_json string)
- type AbeServiceStorage
- type AbeServiceStorageLeveldb
- type AbeServiceStorageRedis
- type Active
- type Arithmetic
- type Config
- type Ext
- type Leveldb
- type Redis
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAuthPrv ¶
fetch AuthPrv json object from key prv:auth:<authStr>
func FetchAuthPub ¶
fetch AuthPub json object from key pub:auth:<authStr>
func FetchCurve ¶
fetch Curve json object from key pub:curve:<curveStr>
func FetchUserAttrs ¶
fetch UserAttrs json object scanning for keys of the form prv:userkey:<user>:*
func FetchUserkey ¶
fetch Userkey json object from key prv:userkey:<user>:<attr>
func FetchUserkeys ¶
fetch Userkeys json object from keys of the form prv:userkey:<user>:<attr>
func InitAbeService ¶
func InitAbeService(config Config, abeServiceStorage AbeServiceStorage)
func NewRandomSecret ¶
generate new random secret for an organization
func SetupUserkey ¶
generate new user key and stores it
func StoreAuthPrv ¶
store AuthPrv json object in key prv:auth:<authStr>
func StoreAuthPub ¶
store AuthPub json object in key pub:auth:<authStr>
func StoreCurve ¶
store Curve json object in key pub:curve:<curveStr>
func StoreUserkey ¶
store Userkey json object in key prv:userkey:<user>:<attr>
Types ¶
type AbeServiceStorage ¶
type AbeServiceStorageLeveldb ¶
type AbeServiceStorageLeveldb struct{}
func (AbeServiceStorageLeveldb) Get ¶
func (abeStorage AbeServiceStorageLeveldb) Get(key string) string
get
func (AbeServiceStorageLeveldb) Init ¶
func (abeStorage AbeServiceStorageLeveldb) Init(config Config)
init
func (AbeServiceStorageLeveldb) Scan ¶
func (abeStorage AbeServiceStorageLeveldb) Scan(key string) []string
scan
func (AbeServiceStorageLeveldb) Set ¶
func (abeStorage AbeServiceStorageLeveldb) Set(key string, value string)
set
type AbeServiceStorageRedis ¶
type AbeServiceStorageRedis struct{}
func (AbeServiceStorageRedis) Get ¶
func (abeStorage AbeServiceStorageRedis) Get(key string) string
get
func (AbeServiceStorageRedis) Init ¶
func (abeStorage AbeServiceStorageRedis) Init(config Config)
init
func (AbeServiceStorageRedis) Scan ¶
func (abeStorage AbeServiceStorageRedis) Scan(key string) []string
scan
func (AbeServiceStorageRedis) Set ¶
func (abeStorage AbeServiceStorageRedis) Set(key string, value string)
set
type Arithmetic ¶
type Config ¶
type Config struct { Arithmetic Arithmetic `yaml:"arithmetic"` Storage Storage `yaml:"storage"` Active Active `yaml:"active"` }