action

package
v0.0.0-...-57b808a Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(a *Action) error

New creates a new action.

func Remove

func Remove(a *Action) error

Remove removes an action.

Types

type Action

type Action struct {
	Name    string
	URL     string
	Method  string
	Body    string
	Headers map[string]string
}

Action represents an AutoScale action to increase or decrease the number of the units.

func All

func All() ([]Action, error)

All return a list of all actions

func FindByName

func FindByName(name string) (*Action, error)

FindByName finds action by name.

func (*Action) Do

func (a *Action) Do(appName string, envs map[string]string) error

Do executes the action

Jump to

Keyboard shortcuts

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