common

package
v0.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeAccessMethods

func DescribeAccessMethods(p plugin.Plugin, out common.Printer)

func DescribeElements

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

func DescribePlugin

func DescribePlugin(p plugin.Plugin, out common.Printer)

func GetAccessMethodInfo

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

func ListElements

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

Types

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
}

Jump to

Keyboard shortcuts

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