func WithCaches(caches ...Cache) client.Option
WithCaches sets up the given caches on the client.Client.
type Cache interface {
// contains filtered or unexported methods
}
NodeCache caches respones from a client.NodeProvider.
type NodeCache struct { // Timeout for the cached responses. Timeout time.Duration // contains filtered or unexported fields }
ResourceCache caches responses from a client.ResourceProvider.
type ResourceCache struct { // Timeout for the cached responses. Timeout time.Duration // contains filtered or unexported fields }