Refactor input params as Options (#9)
* some minor code refactor * unsaved changes * Minor cleanup Co-authored-by: t-dedah <t-dedah@github.com>
This commit is contained in:
27
types/api_models.go
Normal file
27
types/api_models.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package types
|
||||
|
||||
type RepoLevelUsageApiResponse struct {
|
||||
FullName string `json:"full_name"`
|
||||
ActiveCacheSizeInBytes float64 `json:"active_caches_size_in_bytes"`
|
||||
ActiveCacheCount float64 `json:"active_caches_count"`
|
||||
}
|
||||
|
||||
type ListApiResponse struct {
|
||||
TotalCount int `json:"total_count"`
|
||||
ActionsCaches []ActionsCache `json:"actions_caches"`
|
||||
}
|
||||
|
||||
type DeleteApiResponse struct {
|
||||
TotalCount int `json:"total_count"`
|
||||
ActionsCaches []ActionsCache `json:"actions_caches"`
|
||||
}
|
||||
|
||||
type ActionsCache struct {
|
||||
Id int `json:"id"`
|
||||
Ref string `json:"ref"`
|
||||
Key string `json:"key"`
|
||||
Version string `json:"version"`
|
||||
LastAccessedAt string `json:"last_accessed_at"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
SizeInBytes float64 `json:"size_in_bytes"`
|
||||
}
|
||||
Reference in New Issue
Block a user