plugin

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unmanaged = "unmanaged"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager handles lifecycle execution of CloudQuery providers

func NewManager

func NewManager(logger hclog.Logger, pluginDirectory string, registryURL string, updater ui.Progress) (*Manager, error)

func (*Manager) CreatePlugin added in v0.13.6

func (m *Manager) CreatePlugin(providerName, alias string, env []string) (Plugin, error)

func (*Manager) DownloadProviders added in v0.13.6

func (m *Manager) DownloadProviders(ctx context.Context, providers []*config.RequiredProvider, noVerify bool) error

func (*Manager) GetPluginDetails added in v0.14.5

func (m *Manager) GetPluginDetails(providerName string) (registry.ProviderDetails, error)

func (*Manager) KillProvider

func (m *Manager) KillProvider(providerName string) error

func (*Manager) LoadExisting added in v0.15.0

func (m *Manager) LoadExisting(providers []*config.RequiredProvider)

LoadExisting loads existing providers that are found by the hub in ProviderDirectory

func (*Manager) Shutdown

func (m *Manager) Shutdown()

Shutdown closes all clients and cleans the managed clients

type Plugin

type Plugin interface {
	Name() string
	Version() string
	Provider() cqproto.CQProvider
	Close()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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