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 ¶
Types ¶
type Entry ¶
type Entry struct { runtime.UnstructuredVersionedTypedObject `json:",inline"` // contains filtered or unexported fields }
func (*Entry) Handler ¶
func (s *Entry) Handler() *PluginHandler
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)
Click to show internal directories.
Click to hide internal directories.