Documentation
¶
Overview ¶
Package client implements a cache client
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidConfig = errors.New("invalid configuration")
ErrInvalidConfig signals an error with the client configuration
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.