1
0
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:
Stéphane Graber
2019-12-10 15:20:35 -05:00
parent 05af123417
commit 6c476f0b89

View File

@@ -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.