common

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeAccessMethods

func DescribeAccessMethods(d *descriptor.Descriptor, out common.Printer)

func DescribeActions

func DescribeActions(reg api.ActionTypeRegistry, d *descriptor.Descriptor, out common.Printer)

func DescribeCLIExtensions

func DescribeCLIExtensions(d *descriptor.Descriptor, out common.Printer)

func DescribeConfigTypes

func DescribeConfigTypes(d *descriptor.Descriptor, out common.Printer)

func DescribeElements

func DescribeElements[E Element[C], C Stringer](elems []E) string

func DescribeLabelMergeSpecifications

func DescribeLabelMergeSpecifications(d *descriptor.Descriptor, out common.Printer)

func DescribePluginDescriptor

func DescribePluginDescriptor(reg api.ActionTypeRegistry, d *descriptor.Descriptor, out common.Printer)

func DescribePluginDescriptorCapabilities

func DescribePluginDescriptorCapabilities(reg api.ActionTypeRegistry, d *descriptor.Descriptor, out common.Printer)

func DescribeValueMergeHandlers

func DescribeValueMergeHandlers(d *descriptor.Descriptor, out common.Printer)

func DescribeValueSets

func DescribeValueSets(d *descriptor.Descriptor, out common.Printer)

func GetAccessMethodInfo

func GetAccessMethodInfo(methods []descriptor.AccessMethodDescriptor) map[string]*MethodInfo

func GetActionInfo

func GetActionInfo(reg api.ActionTypeRegistry, actions []descriptor.ActionDescriptor) map[string]*ActionInfo

func GetTypeInfo

func GetTypeInfo(types []descriptor.ConfigTypeDescriptor) map[string]*TypeInfo

func GetValueSetInfo

func GetValueSetInfo(valuesets []descriptor.ValueSetDescriptor) map[string]*ValueSetInfo

func ListElements

func ListElements[E DescribableElement[C], C Describable](msg string, elems []E, out common.Printer)

ListElements lists describable elements.

Types

type ActionInfo

type ActionInfo struct {
	ActionDesc    string
	Versions      []string
	Selectors     []string
	ConsumerType  string
	Attributes    []string
	Description   string
	Usage         string
	KnownVersions []string
	BestVersion   string
	Error         string
}

type Describable

type Describable interface {
	Describe() string
}

type DescribableElement

type DescribableElement[C Describable] interface {
	GetName() string
	GetDescription() string
	GetConstraints() []C
}

type Element

type Element[C Stringer] interface {
	GetName() string
	GetConstraints() []C
}

type MethodInfo

type MethodInfo struct {
	Name        string
	Description string
	Versions    map[string]*MethodVersion
}

type MethodVersion

type MethodVersion struct {
	Name    string
	Format  string
	Options map[string]options.OptionType
}

type Stringer

type Stringer interface {
	String() string
}

type TypeInfo

type TypeInfo struct {
	Name        string
	Description string
	Versions    map[string]*TypeVersion
}

type TypeVersion

type TypeVersion struct {
	Name   string
	Format string
}

type ValueSetInfo

type ValueSetInfo struct {
	Name        string
	Description string
	Purposes    set.Set[string]
	Versions    map[string]*ValueSetVersion
}

type ValueSetVersion

type ValueSetVersion struct {
	Name    string
	Format  string
	Options map[string]options.OptionType
}

Jump to

Keyboard shortcuts

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