plugin

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package plugin is an adapter implementation that provides a generic handling of all ValueSets provided by plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewType

func NewType(name string, p plugin.Plugin, desc *plugin.ValueSetDescriptor) spi.EntryType

Types

type Entry

type Entry struct {
	runtime.UnstructuredVersionedTypedObject `json:",inline"`
	// contains filtered or unexported fields
}

func (*Entry) Describe

func (s *Entry) Describe(ctx cpi.Context) string

func (*Entry) Handler

func (s *Entry) Handler() *PluginHandler

func (*Entry) Validate

func (s *Entry) Validate(ctx spi.Context) error

type PluginHandler

type PluginHandler struct {
	// contains filtered or unexported fields
}

PluginHandler is a shared object between the AccessMethod implementation and the Entry implementation. The object knows the actual plugin and can therefore forward the method calls to corresponding cli commands.

func NewPluginHandler

func NewPluginHandler(p plugin.Plugin) *PluginHandler

func (*PluginHandler) Describe

func (p *PluginHandler) Describe(spec *Entry, ctx cpi.Context) string

func (*PluginHandler) Validate

func (p *PluginHandler) Validate(spec *Entry) (*ppi.ValueSetInfo, error)

Jump to

Keyboard shortcuts

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