action

package
v0.0.0-...-2a4a04f Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetVersionsAction

type GetVersionsAction interface {
	Short() string
	Long() string
	GetVersions(reader io.Reader, flags pflag.FlagSet) []string
}

type GetVersionsArgs

type GetVersionsArgs struct {
	Data  []byte
	Flags pflag.FlagSet
}

type GetVersionsPlugin

type GetVersionsPlugin struct {
	Impl GetVersionsPluginAction
}

func (GetVersionsPlugin) Client

func (GetVersionsPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (*GetVersionsPlugin) Server

func (p *GetVersionsPlugin) Server(*plugin.MuxBroker) (interface{}, error)

type GetVersionsPluginAction

type GetVersionsPluginAction interface {
	Version() string
	Short() string
	Long() string
	FlagSet() pflag.FlagSet
	GetVersions(reader io.Reader, flags pflag.FlagSet) []string
}

type GetVersionsPluginActionRPC

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

func (*GetVersionsPluginActionRPC) FlagSet

func (*GetVersionsPluginActionRPC) GetVersions

func (g *GetVersionsPluginActionRPC) GetVersions(reader io.Reader, flags pflag.FlagSet) []string

func (*GetVersionsPluginActionRPC) Long

func (*GetVersionsPluginActionRPC) Short

func (*GetVersionsPluginActionRPC) Version

func (g *GetVersionsPluginActionRPC) Version() string

type Plugin

type Plugin struct {
	Impl GetVersionsPluginAction
}

func (*Plugin) GetVersions

func (s *Plugin) GetVersions(args GetVersionsArgs, resp *[]string) error

func (*Plugin) Long

func (s *Plugin) Long(args struct{}, resp *string) error

func (*Plugin) Short

func (s *Plugin) Short(args struct{}, resp *string) error

func (*Plugin) Version

func (s *Plugin) Version(args struct{}, resp *string) error

Jump to

Keyboard shortcuts

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