Documentation ¶
Index ¶
- type Keygrip
- func (kg *Keygrip) AddKey(key string)
- func (kg *Keygrip) Index(data, digest []byte) int
- func (kg *Keygrip) Keys() []string
- func (kg *Keygrip) RemoveAllKeys()
- func (kg *Keygrip) RemoveKey(key string)
- func (kg *Keygrip) SetKeys(keys []string)
- func (kg *Keygrip) Sign(data []byte) []byte
- func (kg *Keygrip) Verify(data, digest []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keygrip ¶
type Keygrip struct {
// contains filtered or unexported fields
}
Keygrip keygrip struct
func NewRWMutex ¶ added in v1.2.0
NewRWMutex returns a new keygrip with rw mutex
func (*Keygrip) Index ¶
Index returns the index of the key which match digest. It will return -2 if the digest isn't raw url encoding. It will return -1 if no match key for the digest.
Click to show internal directories.
Click to hide internal directories.