Documentation
¶
Index ¶
- Constants
- Variables
- type Assets
- type Entrypoint
- type Evaluator
- type EvaluatorFactory
- type ParserType
- type PluginGetter
- type PluginService
- func (s PluginService) ConstructDestinationURN(_ context.Context, taskName string, compiledConfig map[string]string) (resource.URN, error)
- func (s PluginService) IdentifyUpstreams(ctx context.Context, taskName string, compiledConfig, assets map[string]string) ([]resource.URN, error)
- func (s PluginService) Info(_ context.Context, taskName string) (*Spec, error)
- type Spec
- type Store
- type UpstreamIdentifierFactory
- type VersionDetails
Constants ¶
View Source
const ( Prefix = "optimus-plugin-" Suffix = ".yaml" PluginsDir = ".plugins" )
Variables ¶
View Source
var ErrNoSuchSpec = errors.New("spec not found")
View Source
var ErrUnsupportedPlugin = errors.New("unsupported plugin requested, make sure its correctly installed")
Functions ¶
This section is empty.
Types ¶
type Entrypoint ¶ added in v0.20.7
type EvaluatorFactory ¶ added in v0.10.2
type ParserType ¶ added in v0.20.7
type ParserType string
const ( BQParser ParserType = "bq" MaxcomputeParser ParserType = "maxcompute" DefaultVersion = "default" )
type PluginGetter ¶ added in v0.10.2
type PluginService ¶ added in v0.10.2
type PluginService struct {
// contains filtered or unexported fields
}
func NewPluginService ¶ added in v0.10.2
func NewPluginService(logger log.Logger, pluginGetter PluginGetter, upstreamIdentifierFactory UpstreamIdentifierFactory, evaluatorFactory EvaluatorFactory) (*PluginService, error)
func (PluginService) ConstructDestinationURN ¶ added in v0.10.2
func (PluginService) IdentifyUpstreams ¶ added in v0.10.2
type Spec ¶ added in v0.20.7
type Spec struct {
SpecVersion int `yaml:"version"`
Name string `yaml:"name"`
Description string `yaml:"description"`
DestinationURNTemplate string `yaml:"destination_urn_template,omitempty"`
AssetParsers map[ParserType][]Evaluator `yaml:"asset_parsers,omitempty"`
PluginVersion map[string]VersionDetails `yaml:"plugin_versions,omitempty"`
DefaultConfig map[string]string `yaml:"default_config,omitempty"`
}
func (*Spec) GetEntrypoint ¶ added in v0.20.7
func (s *Spec) GetEntrypoint(version string) (Entrypoint, error)
type Store ¶ added in v0.20.7
type Store struct {
// contains filtered or unexported fields
}
func LoadPluginToStore ¶ added in v0.20.7
func NewPluginStore ¶ added in v0.20.7
func NewPluginStore() *Store
type UpstreamIdentifierFactory ¶ added in v0.10.2
type UpstreamIdentifierFactory interface {
GetBQUpstreamIdentifier(ctx context.Context, svcAcc string, evaluators ...evaluator.Evaluator) (upstreamidentifier.UpstreamIdentifier, error)
GetMaxcomputeUpstreamIdentifier(ctx context.Context, svcAcc string, evaluators ...evaluator.Evaluator) (upstreamidentifier.UpstreamIdentifier, error)
}
type VersionDetails ¶ added in v0.20.7
type VersionDetails struct {
Image string `yaml:"image,omitempty"`
Tag string `yaml:"tag,omitempty"`
Entrypoint Entrypoint `yaml:"entrypoint,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.