Versions in this module Expand all Collapse all v0 v0.5.8 Dec 3, 2018 v0.5.7 Oct 1, 2018 v0.5.6 Aug 7, 2018 v0.5.5 Jun 1, 2018 v0.5.4 Apr 25, 2018 Changes in this version + var CommandRegistry = cli.NewCommandRegistry() + var DeviceFuncMap = template.FuncMap + func BuildDevice(env Project, options *BuildOptions) (err error) + func CreateDevice(project Project, deviceJson string, deviceDir string, deviceName string) error + func InstallContribution(project Project, path string, version string) error + func InstallLibs(project Project, libs []*Lib) error + func PrepareDevice(project Project, options *PrepareOptions) (err error) + func RenderTemplate(w io.Writer, tpl string, data interface{}) error + func UploadDevice(env Project) error + func Usage() + type ActionConfig struct + Data json.RawMessage + Id string + Ref string + type ActionContrib struct + Ref string + Template string + func LoadActionContrib(proj Project, ref string) (*ActionContrib, error) + func RegisterActionContrib(ref string, tpl string) *ActionContrib + func (ac *ActionContrib) GetActivities(tree *FlowTree) []*ActivityContrib + type ActivityActionConfig struct + Activity *ActivityConfig + UseTriggerVal bool + type ActivityConfig struct + Attributes map[string]string + Id string + Ref string + func (ac *ActivityConfig) GetSetting(key string) string + type ActivityContrib struct + Descriptor *ActivityDescriptor + Template string + func LoadActivityContrib(proj Project, ref string) (*ActivityContrib, error) + func (ac *ActivityContrib) Libs() []*Lib + type ActivityDescriptor struct + DeviceSupport []*DeviceSupportDetails + Libs []*Lib + Ref string + Settings []*Setting + func ParseActivityDescriptor(contribJson string) (contrib *ActivityDescriptor, err error) + type BuildOptions struct + SkipPrepare bool + type BuildPreProcessor interface + PrepareForBuild func(env Project) error + type Descriptor struct + Description string + Name string + Type string + Version string + type DeviceDetails struct + Actions []*ActionConfig + MqttEnabled bool + Profile string + Settings map[string]string + Triggers []*TriggerConfig + type DevicePlatform struct + Framework string + MainTemplate string + MqttDetails *PlatformFeature + WifiDetails []*PlatformFeature + func GetDevicePlatform(proj Project, ref string) (*DevicePlatform, error) + func ParseDevicePlatform(platformJson string) (*DevicePlatform, error) + type DeviceProfile struct + Board string + Platform string + PlatformWifi string + func GetDeviceProfile(proj Project, ref string) (*DeviceProfile, error) + func ParseDeviceProfile(profileJson string) (*DeviceProfile, error) + type DeviceSupportDetails struct + Framework string + TemplateFile string + type FlogoDeviceDescriptor struct + Actions []*ActionConfig + Device *DeviceDetails + Triggers []*TriggerConfig + func ParseDeviceDescriptor(deviceJson string) (*FlogoDeviceDescriptor, error) + type FlowActionConfig struct + Flow map[string]interface{} + type FlowTree struct + AllTasks []*Task + FirstTask *Task + Id string + type Lib struct + LibType string + Name string + Ref string + type PioProject struct + ContributionDir string + LibDir string + RootDir string + SourceDir string + func (*PioProject) Build() error + func (*PioProject) Clean() error + func (*PioProject) Upload() error + func (p *PioProject) Create() error + func (p *PioProject) GetContributionDir() string + func (p *PioProject) GetLibDir() string + func (p *PioProject) GetRootDir() string + func (p *PioProject) GetSourceDir() string + func (p *PioProject) Init(basePath string) error + func (p *PioProject) InstallContribution(depPath string, version string) error + func (p *PioProject) InstallLib(name string, id int) error + func (p *PioProject) Open() error + func (p *PioProject) Setup(board string) error + func (p *PioProject) UninstallContribution(depPath string) error + type PlatformFeature struct + Header string + Libs []*Lib + Name string + Template string + type PrepareOptions struct + PreProcessor BuildPreProcessor + type Project interface + Build func() error + Clean func() error + Create func() error + GetContributionDir func() string + GetLibDir func() string + GetRootDir func() string + GetSourceDir func() string + Init func(path string) error + InstallContribution func(path string, version string) error + InstallLib func(name string, id int) error + Open func() error + Setup func(board string) error + UninstallContribution func(path string) error + Upload func() error + func NewPlatformIoProject() Project + func SetupExistingProjectEnv(appDir string) Project + func SetupNewProjectEnv() Project + type Setting struct + Name string + Type string + type SettingsConfig struct + DeviceName string + Id string + Settings map[string]string + func (s *SettingsConfig) GetSetting(key string) string + type Task struct + ActivityRef string + Attributes map[string]string + FlowId string + Id int + NextTasks []*Task + Precondition string + func (t *Task) GetSetting(key string) string + type TriggerConfig struct + ActionId string + Id string + Ref string + Settings map[string]string + func (tc *TriggerConfig) GetSetting(key string) string + type TriggerContrib struct + Descriptor *TriggerDescriptor + Template string + func LoadTriggerContrib(proj Project, ref string) (*TriggerContrib, error) + func (tc *TriggerContrib) Libs() []*Lib + type TriggerDescriptor struct + DeviceSupport []*DeviceSupportDetails + Libs []*Lib + Outputs []*Setting + Ref string + Settings []*Setting + func ParseTriggerDescriptor(contribJson string) (contrib *TriggerDescriptor, err error) + type WithSettings interface + GetSetting func(key string) string