Documentation ¶
Overview ¶
Package plugin contains types and interfaces represents Analyze plugin. Analyze plugins API is described in ./proto/plugin.proto
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudProviderType ¶
type CloudProviderType string
const ( AWSCloudProviderType CloudProviderType = "aws" DOCloudProviderType CloudProviderType = "do" )
type Config ¶
type Config struct { ProviderType CloudProviderType `mapstructure:"cloud_provider_type"` // TODO: refactor config when multiple providers become being supported AWSAccessKeyID string `mapstructure:"aws_access_key_id"` AWSSecretAccessKey string `mapstructure:"aws_secret_access_key"` AWSRegion string `mapstructure:"aws_region"` CheckInterval time.Duration `mapstructure:"check_interval"` CheckTimeout time.Duration `mapstructure:"check_timeout"` }
func (Config) ToProtoConfig ¶
func (c Config) ToProtoConfig() *proto.PluginConfig
type PluginsSet ¶
type PluginsSet map[string]proto.PluginClient
func (PluginsSet) Load ¶
func (ps PluginsSet) Load(plugin proto.PluginClient, cfg *proto.PluginConfig) error
TODO: refactor and implement real pluggability
Click to show internal directories.
Click to hide internal directories.