plugin

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PluginConfig = &plugins.InternalPluginConfig{
		Factory: func(l hclog.Logger) interface{} { return NewAWSASGPlugin(l) },
	}
)

Functions

This section is empty.

Types

type TargetPlugin

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

TargetPlugin is the AWS ASG implementation of the target.Target interface.

func NewAWSASGPlugin

func NewAWSASGPlugin(log hclog.Logger) *TargetPlugin

NewAWSASGPlugin returns the AWS ASG implementation of the target.Target interface.

func (*TargetPlugin) PluginInfo

func (t *TargetPlugin) PluginInfo() (*base.PluginInfo, error)

PluginInfo satisfies the PluginInfo function on the base.Plugin interface.

func (*TargetPlugin) Scale

func (t *TargetPlugin) Scale(action strategy.Action, config map[string]string) error

Scale satisfies the Scale function on the target.Target interface.

func (*TargetPlugin) SetConfig

func (t *TargetPlugin) SetConfig(config map[string]string) error

SetConfig satisfies the SetConfig function on the base.Plugin interface.

func (*TargetPlugin) Status

func (t *TargetPlugin) Status(config map[string]string) (*target.Status, error)

Status satisfies the Status function on the target.Target interface.

Jump to

Keyboard shortcuts

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