Documentation ¶
Index ¶
- func GetInstanceWebapps(inst *instance.Instance) ([]string, error)
- type AvailableApp
- type Intent
- func (in *Intent) Clone() couchdb.Doc
- func (in *Intent) DocType() string
- func (in *Intent) FillAvailableWebapps(inst *instance.Instance) error
- func (in *Intent) FillServices(instance *instance.Instance) error
- func (in *Intent) GenerateHref(instance *instance.Instance, slug, target string) string
- func (in *Intent) ID() string
- func (in *Intent) Rev() string
- func (in *Intent) Save(instance *instance.Instance) error
- func (in *Intent) SetID(id string)
- func (in *Intent) SetRev(rev string)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AvailableApp ¶
AvailableApp is a struct for the apps that are in the apps registry but not installed, and can be used for the intent.
type Intent ¶
type Intent struct { IID string `json:"_id,omitempty"` IRev string `json:"_rev,omitempty"` Action string `json:"action"` Type string `json:"type"` Permissions []string `json:"permissions"` Client string `json:"client"` Services []Service `json:"services"` AvailableApps []AvailableApp `json:"availableApps"` }
Intent is a struct for a call from a client-side app to have another app do something for it
func (*Intent) FillAvailableWebapps ¶
FillAvailableWebapps finds webapps which can answer to the intent from non-installed instance webapps
func (*Intent) FillServices ¶
FillServices looks at all the application that can answer this intent and save them in the services field
func (*Intent) GenerateHref ¶
GenerateHref creates the href where the service can be called for an intent
Click to show internal directories.
Click to hide internal directories.