shared

package
v2.75.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 6 Imported by: 0

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

func (c *Cache) ExportData(fields []string) map[string]interface{}

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.

type GetCachesOptions

type GetCachesOptions struct {
	Limit int
	Order string
	Sort  string
	Key   string
	Ref   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL