plugin

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoadOptions = struct {
	WithIntegrationModelName LoadOptionFunc
}{
	WithIntegrationModelName: loadIntegrationModelName,
}

LoadOptions provides all options on plugin loads functions.

Functions

func AddBinary

AddBinary add binary to the plugin, uploading it to objectsore and updates databases

func Delete

func Delete(ctx context.Context, db gorp.SqlExecutor, storageDriver objectstore.Driver, p *sdk.GRPCPlugin) error

Delete deletes a plugin

func DeleteBinary

func DeleteBinary(ctx context.Context, db gorp.SqlExecutor, storageDriver objectstore.Driver, p *sdk.GRPCPlugin, os, arch string) error

DeleteBinary remove a binary for the plugin from objectsore and updates databases.

func Insert

func Insert(db gorp.SqlExecutor, p *sdk.GRPCPlugin) error

Insert inserts a plugin

func LoadAll

func LoadAll(ctx context.Context, db gorp.SqlExecutor) ([]sdk.GRPCPlugin, error)

LoadAll GRPC plugins.

func LoadAllByIntegrationModelID

func LoadAllByIntegrationModelID(ctx context.Context, db gorp.SqlExecutor, integrationModelID int64) ([]sdk.GRPCPlugin, error)

LoadAllByIntegrationModelID load all GRPC plugins for given integration model id.

func LoadAllByType added in v0.53.0

func LoadAllByType(ctx context.Context, db gorp.SqlExecutor, pluginType string) ([]sdk.GRPCPlugin, error)

func LoadByIntegrationModelIDAndType

func LoadByIntegrationModelIDAndType(ctx context.Context, db gorp.SqlExecutor, integrationModelID int64, typePlugin string) (*sdk.GRPCPlugin, error)

LoadByIntegrationModelIDAndType retrieves in database a single plugin associated to a integration model id with a specified type.

func LoadByName

func LoadByName(ctx context.Context, db gorp.SqlExecutor, name string) (*sdk.GRPCPlugin, error)

LoadByName retrieves in database the plugin with given name.

func Update

func Update(db gorp.SqlExecutor, p *sdk.GRPCPlugin) error

Update updates a plugin

func UpdateBinary

func UpdateBinary(ctx context.Context, db gorp.SqlExecutor, storageDriver objectstore.Driver, p *sdk.GRPCPlugin, b *sdk.GRPCPluginBinary, r io.ReadCloser) error

UpdateBinary updates binary for the plugin, uploading it to objectsore and updates databases

Types

type LoadOptionFunc

type LoadOptionFunc func(context.Context, gorp.SqlExecutor, ...*sdk.GRPCPlugin) error

LoadOptionFunc for plugin.

Jump to

Keyboard shortcuts

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