Documentation ¶
Index ¶
- func Information(name string) error
- func List(ctx context.Context) error
- func Run(ctx context.Context, name string, opts Options) error
- func Search(ctx context.Context, keyword string) error
- func Uninstall(ctx context.Context, name string) error
- func Update(ctx context.Context, opts Options) error
- func Upgrade(ctx context.Context, names []string) error
- type Index
- type Input
- type Installed
- type Manager
- func (m *Manager) Information(name string) error
- func (m *Manager) Install(ctx context.Context, arg string, opts Options) (Plugin, error)
- func (m *Manager) List(ctx context.Context) error
- func (m *Manager) LoadAll(ctx context.Context) ([]Plugin, error)
- func (m *Manager) Run(ctx context.Context, name string, opts Options) error
- func (m *Manager) Search(ctx context.Context, keyword string) error
- func (m *Manager) Start(ctx context.Context, name string, opts Options) (Wait, error)
- func (m *Manager) Uninstall(ctx context.Context, name string) error
- func (m *Manager) Update(ctx context.Context, opts Options) error
- func (m *Manager) Upgrade(ctx context.Context, names []string) error
- type ManagerOption
- type Options
- type Platform
- type Plugin
- type Selector
- type Wait
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Information ¶ added in v0.21.3
Types ¶
type Input ¶ added in v0.52.0
type Input struct {
// contains filtered or unexported fields
}
Input represents the user-specified Input.
type Manager ¶ added in v0.52.0
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the plugins
func NewManager ¶ added in v0.52.0
func NewManager(opts ...ManagerOption) *Manager
func (*Manager) Information ¶ added in v0.52.0
Information gets the information about an installed plugin
type ManagerOption ¶ added in v0.52.0
type ManagerOption func(indexer *Manager)
func WithIndexURL ¶ added in v0.52.0
func WithIndexURL(indexURL string) ManagerOption
func WithLogger ¶ added in v0.52.0
func WithLogger(logger *log.Logger) ManagerOption
func WithWriter ¶ added in v0.52.0
func WithWriter(w io.Writer) ManagerOption
type Plugin ¶
type Plugin struct { Name string `yaml:"name"` Repository string `yaml:"repository"` Version string `yaml:"version"` Summary string `yaml:"summary"` Usage string `yaml:"usage"` // Deprecated: Use summary instead Description string `yaml:"description"` Platforms []Platform `yaml:"platforms"` // Installed holds the metadata about installation Installed Installed `yaml:"installed"` // contains filtered or unexported fields }
Plugin represents a plugin.
Click to show internal directories.
Click to hide internal directories.