plugin

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultOrganization = "cloudquery"
)

Variables

This section is empty.

Functions

func GetProviderPath

func GetProviderPath(name string, version string) (string, error)

GetProviderPath returns expected path of provider on file system from name and version of plugin

Types

type Manager

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

Manager handles lifecycle execution of CloudQuery providers

func NewManager

func NewManager() (*Manager, error)

func (*Manager) GetOrCreateProvider

func (p *Manager) GetOrCreateProvider(providerName, version string) (cqproto.CQProvider, error)

func (*Manager) GetProvider

func (p *Manager) GetProvider(providerName, version string) (cqproto.CQProvider, error)

func (*Manager) KillProvider

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

func (*Manager) ListUnmanaged

func (p *Manager) ListUnmanaged() map[string]registry.ProviderDetails

func (*Manager) Shutdown

func (p *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