Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Env ¶
type Env struct { EventSources eventsrcsstore.Store Plugins *pluginsreg.Registry Projects projectsstore.Store Accounts accountsstore.Store }
type EventSource ¶
type EventSource struct { ID apieventsrc.EventSourceID `json:"id"` Disabled bool `json:"disabled"` Types []string `json:"types"` }
func (EventSource) API ¶
func (a EventSource) API(id string) (*apieventsrc.EventSource, error)
type Manifest ¶
type Manifest struct { Accounts map[string]Account `json:"accounts"` // name -> acount EventSources map[string]EventSource `json:"eventsrcs"` // id (=account.name) -> eventsrc Plugins map[string]Plugin `json:"plugins"` // id (=account.name) -> plugin Projects map[string]Project `json:"projects"` // id (=account.unique_id)-> project }
func ManifestFromPath ¶
TODO: validate manifest using cue.Value.Subsume
func ParseManifest ¶ added in v0.12.2
type Plugin ¶
type Project ¶
type Project struct { ID string `json:"id"` AccountName string `json:"account_name"` Name string `json:"name"` MainPath string `json:"main_path"` Disabled bool `json:"disabled"` Memo map[string]string `json:"memo"` Plugins map[string]ProjectPlugin `json:"plugins"` // pluginID -> plugin Bindings map[string]ProjectSourceBinding `json:"src_bindings"` // name -> binding Predecls map[string]string `json:"predecls"` // TODO: allow more than just strings. }
func ParseProject ¶ added in v0.12.2
type ProjectPlugin ¶
type ProjectPlugin struct {
Disabled bool `json:"disabled"`
}
type ProjectSourceBinding ¶
type ProjectSourceBinding struct { SourceID apieventsrc.EventSourceID `json:"src_id"` Assoc string `json:"assoc"` SourceConfig string `json:"src_config"` Disabled bool `json:"disabled"` }
Click to show internal directories.
Click to hide internal directories.