mirror of
https://github.com/lxc/incus.git
synced 2026-02-05 09:46:19 +01:00
client: Add caching options
This will allow moving the current caching logic from the lxd code into the shared client package. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gopkg.in/macaroon-bakery.v2/httpbakery"
|
||||
|
||||
@@ -50,6 +51,10 @@ type ConnectionArgs struct {
|
||||
|
||||
// Skip automatic GetServer request upon connection
|
||||
SkipGetServer bool
|
||||
|
||||
// Caching support for image servers
|
||||
CachePath string
|
||||
CacheExpiry time.Duration
|
||||
}
|
||||
|
||||
// ConnectLXD lets you connect to a remote LXD daemon over HTTPs.
|
||||
|
||||
Reference in New Issue
Block a user