Files
gh-actions-cache/types/api_models.go
Bishal Prasad 47c4b91fe4 Refactor input params as Options (#9)
* some minor code refactor

* unsaved changes

* Minor cleanup

Co-authored-by: t-dedah <t-dedah@github.com>
2022-07-01 00:22:03 +05:30

28 lines
838 B
Go

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"`
}