Documentation ¶
Index ¶
- Constants
- type CreationOptions
- type Manager
- func (m *Manager) ClosePlugin(p Plugin)
- func (m *Manager) CreatePlugin(opts *CreationOptions) (Plugin, error)
- func (m *Manager) DownloadProviders(ctx context.Context, providers []registry.Provider, noVerify bool) ([]registry.ProviderBinary, error)
- func (m *Manager) IsReattachProvider(rp registry.Provider) bool
- func (m *Manager) Shutdown()
- type ManagerOption
- type Plugin
- type Plugins
Constants ¶
View Source
const (
Unmanaged = "unmanaged"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreationOptions ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles lifecycle execution of CloudQuery providers
func NewManager ¶
func NewManager(r registry.Registry, opts ...ManagerOption) (*Manager, error)
func (*Manager) ClosePlugin ¶
ClosePlugin kills a plugin instance and removes it from the managed plugins.
func (*Manager) CreatePlugin ¶
func (m *Manager) CreatePlugin(opts *CreationOptions) (Plugin, error)
CreatePlugin creates a plugin based on CreationOptions
func (*Manager) DownloadProviders ¶
func (m *Manager) DownloadProviders(ctx context.Context, providers []registry.Provider, noVerify bool) ([]registry.ProviderBinary, error)
DownloadProviders downloads one or more registry.Provider from the registry.Registry, if we want to skip provider verification when downloading pass true on `noVerify`
func (*Manager) IsReattachProvider ¶
type ManagerOption ¶
type ManagerOption func(m *Manager)
func WithAllowReattach ¶
func WithAllowReattach() ManagerOption
WithAllowReattach allows plugin reattach to be supported by Manager
Click to show internal directories.
Click to hide internal directories.