app

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTriggers

func CreateTriggers(tConfigs []*trigger.Config, runner action.Runner) (map[string]trigger.Trigger, error)

func FixUpApp

func FixUpApp(cfg *Config)

func GetProperties

func GetProperties(properties []*data.Attribute) (map[string]interface{}, error)

func RegisterResources

func RegisterResources(rConfigs []*resource.Config) error

Types

type Config

type Config struct {
	Name        string             `json:"name"`
	Type        string             `json:"type"`
	Version     string             `json:"version"`
	Description string             `json:"description"`
	Properties  []*data.Attribute  `json:"properties"`
	Triggers    []*trigger.Config  `json:"triggers"`
	Resources   []*resource.Config `json:"resources"`

	//for backwards compatibility
	Actions []*action.Config `json:"actions"`
}

App is the configuration for the App

type ConfigProvider

type ConfigProvider interface {
	GetApp() (*Config, error)
}

ConfigProvider interface to implement to provide the app configuration

func DefaultConfigProvider

func DefaultConfigProvider() ConfigProvider

DefaultSerializer returns the default App Serializer

type PropertyProvider

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

func GetPropertyProvider

func GetPropertyProvider() *PropertyProvider

func (*PropertyProvider) GetProperty

func (pp *PropertyProvider) GetProperty(property string) (interface{}, bool)

func (*PropertyProvider) SetProperties

func (pp *PropertyProvider) SetProperties(value map[string]interface{})

func (*PropertyProvider) SetProperty

func (pp *PropertyProvider) SetProperty(property string, value interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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