Documentation
¶
Index ¶
- type ManagerImpl
- func (inst *ManagerImpl) Find(algorithm string) ([]keys.Algorithm, error)
- func (inst *ManagerImpl) Get(algorithm string, selector func(reg *keys.Registration) bool) (keys.Algorithm, error)
- func (inst *ManagerImpl) Len() int
- func (inst *ManagerImpl) Less(a, b int) bool
- func (inst *ManagerImpl) Swap(a, b int)
- type ServiceImpl
- func (inst *ServiceImpl) GetKeyPairAlgorithm(algorithm string, selector func(reg *keys.Registration) bool) (keys.KeyPairAlgorithm, error)
- func (inst *ServiceImpl) GetManager() keys.Manager
- func (inst *ServiceImpl) GetSecretKeyAlgorithm(algorithm string, selector func(reg *keys.Registration) bool) (keys.SecretKeyAlgorithm, error)
- func (inst *ServiceImpl) GetSignatureAlgorithm(algorithm string, selector func(reg *keys.Registration) bool) (keys.SignatureAlgorithm, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagerImpl ¶
type ManagerImpl struct {
Regs []keys.Registry //starter:inject(".")
// contains filtered or unexported fields
}
ManagerImpl 实现 keys.Manager
func (*ManagerImpl) Find ¶
func (inst *ManagerImpl) Find(algorithm string) ([]keys.Algorithm, error)
Find 根据名称,查找算法(可能有多条结果)
func (*ManagerImpl) Get ¶
func (inst *ManagerImpl) Get(algorithm string, selector func(reg *keys.Registration) bool) (keys.Algorithm, error)
Get 根据名称,查找算法
func (*ManagerImpl) Len ¶
func (inst *ManagerImpl) Len() int
func (*ManagerImpl) Less ¶
func (inst *ManagerImpl) Less(a, b int) bool
func (*ManagerImpl) Swap ¶
func (inst *ManagerImpl) Swap(a, b int)
type ServiceImpl ¶
type ServiceImpl struct {
Manager keys.Manager //starter:inject("#")
// contains filtered or unexported fields
}
ServiceImpl 实现 keys.Service
func (*ServiceImpl) GetKeyPairAlgorithm ¶
func (inst *ServiceImpl) GetKeyPairAlgorithm(algorithm string, selector func(reg *keys.Registration) bool) (keys.KeyPairAlgorithm, error)
GetKeyPairAlgorithm ...
func (*ServiceImpl) GetSecretKeyAlgorithm ¶
func (inst *ServiceImpl) GetSecretKeyAlgorithm(algorithm string, selector func(reg *keys.Registration) bool) (keys.SecretKeyAlgorithm, error)
GetSecretKeyAlgorithm ...
func (*ServiceImpl) GetSignatureAlgorithm ¶
func (inst *ServiceImpl) GetSignatureAlgorithm(algorithm string, selector func(reg *keys.Registration) bool) (keys.SignatureAlgorithm, error)
GetSignatureAlgorithm ...
Click to show internal directories.
Click to hide internal directories.