Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheFields = []string{
"createdAt",
"id",
"key",
"lastAccessedAt",
"ref",
"sizeInBytes",
"version",
}
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
CreatedAt time.Time `json:"created_at"`
Id int `json:"id"`
Key string `json:"key"`
LastAccessedAt time.Time `json:"last_accessed_at"`
Ref string `json:"ref"`
SizeInBytes int64 `json:"size_in_bytes"`
Version string `json:"version"`
}
func (*Cache) ExportData ¶ added in v2.36.0
type CachePayload ¶
type CachePayload struct {
ActionsCaches []Cache `json:"actions_caches"`
TotalCount int `json:"total_count"`
}
func GetCaches ¶
func GetCaches(client *api.Client, repo ghrepo.Interface, opts GetCachesOptions) (*CachePayload, error)
Return a list of caches for a repository. Pass a negative limit to request all pages from the API until all caches have been fetched.
Click to show internal directories.
Click to hide internal directories.