Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectTypeRegistrations ¶ added in v0.56.1
type ObjectTypeRegistrations struct {
// contains filtered or unexported fields
}
ObjectTypeRegistrations retains a plugin's host ObjectType registrations.
func RegisterObjectTypes ¶ added in v0.56.1
func RegisterObjectTypes( ctx context.Context, b bus.Bus, typeIDs ...string, ) (*ObjectTypeRegistrations, error)
RegisterObjectTypes registers ObjectTypes served by the running plugin. The returned registrations must be released when the plugin stops serving them.
func (*ObjectTypeRegistrations) Release ¶ added in v0.56.1
func (r *ObjectTypeRegistrations) Release()
Release releases all ObjectType registrations and the host resource client.
type PluginResources ¶
type PluginResources struct {
// Client is the resource client for the target plugin.
Client *resource_client.Client
// contains filtered or unexported fields
}
PluginResources holds the resource client and directive reference for a cross-plugin connection. Release must be called when done to clean up both the resource client and the plugin reference.
func ConnectPluginResources ¶
func ConnectPluginResources( ctx context.Context, b bus.Bus, pluginID string, ) (*PluginResources, error)
ConnectPluginResources connects to another plugin's resource service. It waits for the target plugin to be loaded, then creates a resource client. The caller must call Release on the returned PluginResources when done.
func (*PluginResources) Release ¶
func (p *PluginResources) Release()
Release releases the resource client and the plugin directive reference.