aliyun

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AlarmKey is the reference key for alarm object
	AlarmKey = "ess-alarm"
)
View Source
const (
	// LifecycleHookKey is the reference key for lifecycle hook object
	LifecycleHookKey = "ess-lifecycle-hook"
)
View Source
const Provider = "aliyun"

Provider is reference key for this provider

View Source
const (
	// ScalingConfigurationKey is the reference key for scaling configuration object
	ScalingConfigurationKey = "ess-scaling-configuration"
)
View Source
const (
	// ScalingGroupKey is the reference key for scaling group object
	ScalingGroupKey = "ess-scaling-group"
)
View Source
const (
	// ScalingRuleKey is the reference key for scaling rule object
	ScalingRuleKey = "ess-scaling-rule"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarm

type Alarm struct {
	ess.Alarm
	ScalingRule  ess.ScalingRule
	ScalingGroup ess.ScalingGroup

	Extras map[string]interface{}
}

Alarm generator struct

func NewAlarm

func NewAlarm(al ess.Alarm, sg ess.ScalingGroup, sr ess.ScalingRule, extras map[string]interface{}) *Alarm

NewAlarm return a generator for the alarm

func (*Alarm) Execute

func (s *Alarm) Execute(w io.Writer, tmpl *template.Template) error

Execute a alarm raw string

func (*Alarm) Kind

func (s *Alarm) Kind() string

Kind returns the key reference to this provider and object

func (*Alarm) Name

func (s *Alarm) Name() string

Name returns the name of this tfvars generator

func (*Alarm) Template

func (s *Alarm) Template() string

Template returns the template

type LifecycleHook

type LifecycleHook struct {
	ess.LifecycleHook
	ScalingGroup ess.ScalingGroup

	Extras map[string]interface{}
}

LifecycleHook generator struct

func NewLifecycleHook

func NewLifecycleHook(lh ess.LifecycleHook, sg ess.ScalingGroup, extras map[string]interface{}) *LifecycleHook

NewLifecycleHook return a generator for the lifecycle hook

func (*LifecycleHook) Execute

func (s *LifecycleHook) Execute(w io.Writer, tmpl *template.Template) error

Execute a lifecycle hook raw string

func (*LifecycleHook) Kind

func (s *LifecycleHook) Kind() string

Kind returns the key reference to this provider and object

func (*LifecycleHook) Name

func (s *LifecycleHook) Name() string

Name returns the name of this tfvars generator

func (*LifecycleHook) Template

func (s *LifecycleHook) Template() string

Template returns the template

type ScalingConfiguration

type ScalingConfiguration struct {
	ess.ScalingConfiguration
	ScalingGroup ess.ScalingGroup

	Extras map[string]interface{}
}

ScalingConfiguration generator struct

func NewScalingConfiguration

func NewScalingConfiguration(sc ess.ScalingConfiguration, sg ess.ScalingGroup, extras map[string]interface{}) *ScalingConfiguration

NewScalingConfiguration return a generator for the scaling configuration

func (*ScalingConfiguration) Execute

func (s *ScalingConfiguration) Execute(w io.Writer, tmpl *template.Template) error

Execute a scaling configuration raw string

func (*ScalingConfiguration) Kind

func (s *ScalingConfiguration) Kind() string

Kind returns the key reference to this provider and object

func (*ScalingConfiguration) Name

func (s *ScalingConfiguration) Name() string

Name returns the name of this tfvars generator

func (*ScalingConfiguration) Template

func (s *ScalingConfiguration) Template() string

Template returns the template

type ScalingGroup

type ScalingGroup struct {
	ess.ScalingGroup

	Extras map[string]interface{}
}

ScalingGroup generator struct

func NewScalingGroup

func NewScalingGroup(sg ess.ScalingGroup, extras map[string]interface{}) *ScalingGroup

NewScalingGroup return a generator for the scaling group

func (*ScalingGroup) Execute

func (s *ScalingGroup) Execute(w io.Writer, tmpl *template.Template) error

Execute a scaling group raw string

func (*ScalingGroup) Kind

func (s *ScalingGroup) Kind() string

Kind returns the key reference to this provider and object

func (*ScalingGroup) Name

func (s *ScalingGroup) Name() string

Name returns the name of this tfvars generator

func (*ScalingGroup) Template

func (s *ScalingGroup) Template() string

Template returns the template

type ScalingRule

type ScalingRule struct {
	ess.ScalingRule
	ScalingGroup ess.ScalingGroup

	Extras map[string]interface{}
}

ScalingRule generator struct

func NewScalingRule

func NewScalingRule(sr ess.ScalingRule, sg ess.ScalingGroup, extras map[string]interface{}) *ScalingRule

NewScalingRule return a generator for the scaling rule

func (*ScalingRule) Execute

func (s *ScalingRule) Execute(w io.Writer, tmpl *template.Template) error

Execute a scaling rule raw string

func (*ScalingRule) Kind

func (s *ScalingRule) Kind() string

Kind returns the key reference to this provider and object

func (*ScalingRule) Name

func (s *ScalingRule) Name() string

Name returns the name of this tfvars generator

func (*ScalingRule) Template

func (s *ScalingRule) Template() string

Template returns the template

Jump to

Keyboard shortcuts

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