Documentation
¶
Overview ¶
Package client implements a cache client
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAccessingServer = errors.New("making request") //nolint:revive ErrInvalidConfig = errors.New("invalid configuration") //nolint:revive ErrInvalidRequest = errors.New("invalid request") //nolint:revive ErrInvalidResponse = errors.New("invalid response") //nolint:revive ErrRequestFailed = errors.New("request failed") //nolint:revive )
Functions ¶
This section is empty.
Types ¶
type CacheClient ¶
type CacheClient struct {
// contains filtered or unexported fields
}
CacheClient access blobs in a CacheServer
func NewCacheClient ¶
func NewCacheClient(config CacheClientConfig) (*CacheClient, error)
NewCacheClient returns a client for a cache server
func (*CacheClient) Download ¶
func (c *CacheClient) Download(_ context.Context, object cache.Object) (io.ReadCloser, error)
Download returns the content of the object given its url
type CacheClientConfig ¶
type CacheClientConfig struct {
Server string
}
CacheClientConfig defines the configuration for accessing a remote cache service
Click to show internal directories.
Click to hide internal directories.