plugin

package
v0.0.0-...-b25b198 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package plugin ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovered

type Discovered struct {
	// Description is the plugin's description.
	Name string

	// Description is the plugin's description.
	Description string

	// RecommendedVersion is the version that Tanzu CLI should use if available.
	// The value should be a valid semantic version as defined in
	// https://semver.org/. E.g., 2.0.1
	RecommendedVersion string

	// InstalledVersion is the version that Tanzu CLI should use if available.
	// The value should be a valid semantic version as defined in
	// https://semver.org/. E.g., 2.0.1
	InstalledVersion string

	// SupportedVersions determines the list of supported CLI plugin versions.
	// The values are sorted in the semver prescribed order as defined in
	// https://github.com/Masterminds/semver#sorting-semantic-versions.
	SupportedVersions []string

	// Distribution is an interface to download a single plugin binary.
	Distribution distribution.Distribution

	// Optional specifies whether the plugin is mandatory or optional
	// If optional, the plugin will not get auto-downloaded as part of
	// `tanzu login` or `tanzu plugin sync` command
	// To view the list of plugin, user can use `tanzu plugin list` and
	// to download a specific plugin run, `tanzu plugin install <plugin-name>`
	Optional bool

	// Scope is the context association level of the plugin.
	Scope string

	// Source is the name of the discovery source from where the plugin was
	// discovered.
	Source string

	// ContextName is the name of the context from where the plugin was discovered.
	ContextName string

	// DiscoveryType defines the type of the discovery. Possible values are
	// oci, local or kubernetes
	DiscoveryType string

	// Target defines the target to which this plugin is applicable to
	Target cliv1alpha1.Target

	// Status is the installed/uninstalled status of the plugin.
	Status string
}

Discovered defines discovered plugin resource

type DiscoveredSorter

type DiscoveredSorter []Discovered

DiscoveredSorter sorts discovered objects.

func (DiscoveredSorter) Len

func (d DiscoveredSorter) Len() int

func (DiscoveredSorter) Less

func (d DiscoveredSorter) Less(i, j int) bool

func (DiscoveredSorter) Swap

func (d DiscoveredSorter) Swap(i, j int)

Jump to

Keyboard shortcuts

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