Documentation
¶
Index ¶
- type HashItem
- type HashList
- func (hl HashList) CheckUpdateNeeded(uid string, hash string) bool
- func (hl *HashList) DeleteByUid(uid string)
- func (hl HashList) GetHashByUid(uid string) (HashItem, int)
- func (hl HashList) GetInactiveUid() []string
- func (hl *HashList) MarkActive(uid string)
- func (hl *HashList) UpdateHash(uid string, hash string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashItem ¶
type HashItem struct {
Uid string `json:"uid"`
Hash string `json:"hash"`
Version string `json:"version"`
// contains filtered or unexported fields
}
Item for use in the hashlist NB This struct has a counterpart in the agent.
type HashList ¶
type HashList struct {
Items []HashItem `json:"items"`
}
func (HashList) CheckUpdateNeeded ¶
Returns a bool value of true if the resource need to be committed
func (*HashList) DeleteByUid ¶ added in v1.4.1
func (HashList) GetInactiveUid ¶
func (*HashList) MarkActive ¶
func (*HashList) UpdateHash ¶
updates hash in internal hashlist on update. The api will update its list on committing the resource to its database.
Click to show internal directories.
Click to hide internal directories.