plugin

package
v0.0.0-...-19fb9ea Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalPluginService

type GlobalPluginService interface {
	GetAllGlobalVariables() ([]*GlobalVariable, error)
	ListAllPlugins() ([]*PluginMetadataDto, error)
	GetPluginDetailById(pluginId int) (*PluginDetailDto, error)
}

type GlobalPluginServiceImpl

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

func NewGlobalPluginService

func NewGlobalPluginService(logger *zap.SugaredLogger, globalPluginRepository repository.GlobalPluginRepository) *GlobalPluginServiceImpl

func (*GlobalPluginServiceImpl) GetAllGlobalVariables

func (impl *GlobalPluginServiceImpl) GetAllGlobalVariables() ([]*GlobalVariable, error)

func (*GlobalPluginServiceImpl) GetPluginDetailById

func (impl *GlobalPluginServiceImpl) GetPluginDetailById(pluginId int) (*PluginDetailDto, error)

func (*GlobalPluginServiceImpl) ListAllPlugins

func (impl *GlobalPluginServiceImpl) ListAllPlugins() ([]*PluginMetadataDto, error)

type GlobalVariable

type GlobalVariable struct {
	Name        string `json:"name"`
	Value       string `json:"value,omitempty"`
	Format      string `json:"format"`
	Description string `json:"description"`
}

type PluginDetailDto

type PluginDetailDto struct {
	Metadata        *PluginMetadataDto   `json:"metadata"`
	InputVariables  []*PluginVariableDto `json:"inputVariables"`
	OutputVariables []*PluginVariableDto `json:"outputVariables"`
}

type PluginMetadataDto

type PluginMetadataDto struct {
	Id          int      `json:"id"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Type        string   `json:"type"` // SHARED, PRESET etc
	Icon        string   `json:"icon"`
	Tags        []string `json:"tags"`
}

type PluginVariableDto

type PluginVariableDto struct {
	Id                    int                                     `json:"id,omitempty"`
	Name                  string                                  `json:"name"`
	Format                repository.PluginStepVariableFormatType `json:"format"`
	Description           string                                  `json:"description"`
	IsExposed             bool                                    `json:"isExposed"`
	AllowEmptyValue       bool                                    `json:"allowEmptyValue"`
	DefaultValue          string                                  `json:"defaultValue"`
	Value                 string                                  `json:"value,omitempty"`
	ValueType             repository.PluginStepVariableValueType  `json:"variableType,omitempty"`
	PreviousStepIndex     int                                     `json:"previousStepIndex,omitempty"`
	VariableStepIndex     int                                     `json:"variableStepIndex"`
	ReferenceVariableName string                                  `json:"referenceVariableName,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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