app

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContinueOnError

func ContinueOnError(a *App) error

func FinalizeProperties

func FinalizeProperties(processors ...property.PostProcessor) func(*App) error

func GetValue

func GetValue(name string) (value interface{}, exists bool)

GetValue gets an app attribute value

func SetValue

func SetValue(name string, value interface{}) error

SetValue sets an app attribute value

Types

type App

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

func New

func New(config *Config, runner action.Runner, options ...Option) (*App, error)

func (*App) GetProperty

func (a *App) GetProperty(name string) (interface{}, bool)

func (*App) GetResource

func (a *App) GetResource(id string) *resource.Resource

func (*App) Name

func (a *App) Name() interface{}

func (*App) ResourceManager

func (a *App) ResourceManager() *resource.Manager

func (*App) Start

func (a *App) Start() error

func (*App) Stop

func (a *App) Stop() error

func (*App) TriggerStatuses

func (a *App) TriggerStatuses() []*managed.StatusInfo

TriggerStatuses gets the status information for the triggers

func (*App) Version

func (a *App) Version() interface{}

type AppResolver

type AppResolver struct {
}

func (*AppResolver) GetResolverInfo

func (r *AppResolver) GetResolverInfo() *resolve.ResolverInfo

func (*AppResolver) Resolve

func (r *AppResolver) Resolve(scope data.Scope, itemName, valueName string) (interface{}, error)

type Config

type Config struct {
	Name        string `json:"name"`
	Type        string `json:"type"`
	Version     string `json:"version"`
	Description string `json:"description"`
	AppModel    string `json:"appModel"`

	Imports    []string               `json:"imports,omitempty"`
	Properties []*data.Attribute      `json:"properties,omitempty"`
	Channels   []string               `json:"channels,omitempty"`
	Triggers   []*trigger.Config      `json:"triggers"`
	Resources  []*resource.Config     `json:"resources,omitempty"`
	Actions    []*action.Config       `json:"actions,omitempty"`
	Schemas    map[string]*schema.Def `json:"schemas,omitempty"`
	Log        *log.Option            `json:"log,omitempty"`
}

Def is the configuration for the App

func LoadConfig added in v1.0.3

func LoadConfig() *Config

type Option

type Option func(*App) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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