plugin

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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

func (Config) Validate

func (c Config) Validate() error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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