CacheSv1.GetGroupItemIDs API

This commit is contained in:
DanB
2018-03-09 19:11:12 +01:00
parent a4bd87e8b4
commit 0a1626cd4f
2 changed files with 18 additions and 0 deletions

View File

@@ -70,6 +70,13 @@ func (chSv1 *CacheSv1) GetCacheStats(cacheIDs []string,
return chSv1.cacheS.V1GetCacheStats(cacheIDs, rply)
}
// PrecacheStatus checks status of active precache processes
func (chSv1 *CacheSv1) PrecacheStatus(cacheIDs []string, rply *map[string]string) error {
return chSv1.cacheS.V1PrecacheStatus(cacheIDs, rply)
}
// GetGroupItemIDs returns a list of itemIDs in a cache group
func (chSv1 *CacheSv1) GetGroupItemIDs(args *engine.ArgsGetGroupItems,
rply *[]string) (err error) {
return chSv1.cacheS.V1GetGroupItemIDs(args, rply)
}

View File

@@ -190,3 +190,14 @@ func (chS *CacheS) V1PrecacheStatus(cacheIDs []string, rply *map[string]string)
*rply = pCacheStatus
return
}
type ArgsGetGroupItems struct {
CacheID string
GroupID string
}
func (chS *CacheS) V1GetGroupItemIDs(args *ArgsGetGroupItems,
rply *[]string) (err error) {
*rply = Cache.GetGroupItemIDs(args.CacheID, args.GroupID)
return
}