Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFlags ¶
func AddFlags(flagset *flag.FlagSet) *config.GitHubCache
AddFlags adds github cache flags to the given flagset
func InitGitHubCache ¶
func InitGitHubCache(cfg *config.GitHubCache)
InitGitHubCache initializes a central cache exactly once It returns a mem cache by default and a disk cache if a directory is defined
func SetConfig ¶
func SetConfig(cfg *config.GitHubCache)
SetConfig sets the internal github cache configuration
func WithRateLimitControlCache ¶
func WithRateLimitControlCache(log logr.Logger, delegate http.RoundTripper) (http.RoundTripper, error)
WithRateLimitControlCache adds the central GitHub cache to a http client. Call InitGitHubCache in advance for bootstrapping the cache
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.