common

package
v1.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package common defines generic constants and structs

Package common defines generic constants and structs

Index

Constants

View Source
const (
	PluginStatusInstalled       = "installed"
	PluginStatusNotInstalled    = "not installed"
	PluginStatusUpdateAvailable = "update available"
	PluginScopeStandalone       = "Standalone"
	PluginScopeContext          = "Context"
)

Plugin status and scope constants

View Source
const (
	DiscoveryTypeOCI        = "oci"
	DiscoveryTypeLocal      = "local"
	DiscoveryTypeKubernetes = "kubernetes"
	DiscoveryTypeREST       = "rest"
)

DiscoveryType constants

View Source
const (
	DistributionTypeOCI   = "oci"
	DistributionTypeLocal = "local"
)

DistributionType constants

View Source
const (
	AnnotationForCmdSrcPath = "cmdSrcPath"
)

Command Annotations

View Source
const CommandTypePlugin = "plugin"

CommandTypePlugin represents the command type is plugin

View Source
const CoreName = "core"

CoreName is the name of the core binary.

View Source
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"
)
View Source
const (
	TargetList = "kubernetes[k8s]/mission-control[tmc]/operations[ops]/global"
)

Shared strings

Variables

View Source
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")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL