ghcache

package
v0.0.0-...-02c6b06 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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.

Jump to

Keyboard shortcuts

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