-
Notifications
You must be signed in to change notification settings - Fork 21
/
defaults.go
33 lines (25 loc) · 1.12 KB
/
defaults.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2022 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package common defines generic constants and structs
package common
import (
"path/filepath"
"github.com/adrg/xdg"
)
var (
// DefaultPluginRoot is the default plugin root.
DefaultPluginRoot = filepath.Join(xdg.DataHome, "tanzu-cli")
// DefaultCacheDir is the default cache directory
DefaultCacheDir = filepath.Join(xdg.Home, ".cache", "tanzu")
// DefaultLocalPluginDistroDir is the default Local plugin distribution root directory
// This directory will be used for local discovery and local distribute of plugins
DefaultLocalPluginDistroDir = filepath.Join(xdg.Home, ".config", "tanzu-plugins")
// DefaultCLITelemetryDir is the default telemetry directory
DefaultCLITelemetryDir = filepath.Join(xdg.Home, ".config", "tanzu-cli-telemetry")
)
const (
// PluginInventoryDirName is the name of the directory where the file(s) describing
// the inventory of the discovery will be downloaded and stored.
// It should be used as a sub-directory of the cache directory (DefaultCacheDir).
PluginInventoryDirName = "plugin_inventory"
)