Documentation ¶
Index ¶
- Constants
- Variables
- func ActionEmptyFeed(id string)
- func ActionReloadFeed(id string)
- func AddAdmin(admin Admin, orgId string) (id string, err error)
- func AddApplication(application Application, orgId string) (id string, err error)
- func AddEntry(feedEntry Entry, FeedId string, ApplicationId string, OrgId string) (EntryId string, err error)
- func AddFeed(feed Feed, applicationId string, orgId string) (id string, err error)
- func AddOrg(org *Org) (err error)
- func AddOrgToken(token Token, orgId string) (id string, err error)
- func AddPlugin(plugin *Plugin) (err error)
- func AddToken(token Token, adminId string, orgId string) (id string, err error)
- func AddTokenForOrganisation(token Token, orgId string) (id string, err error)
- func AddWorkflow(feedWorkflow Workflow, FeedId string, ApplicationId string, OrgId string) (WorkflowId string, err error)
- func Contains(s []string, e string) bool
- func ConvertInterfaceToStringArray(d interface{}) []string
- func DeleteAdmin(id string) error
- func DeleteApplication(id string) error
- func DeleteEntry(id string, FeedId string, ApplicationId string, OrgId string) error
- func DeleteFeed(id string) error
- func DeleteOrg(id string) error
- func DeletePlugin(id string) error
- func DeleteToken(id string) error
- func DeleteWorkflow(id string, FeedId string, ApplicationId string, OrgId string) error
- func InitResources()
- func InitStorage()
- func NewResourceManager(engine emodel.Elasticfeed) emodel.ResourceManager
- func UpdateAdmin(id string, data string) (err error)
- func UpdateApplication(id string, data string) (err error)
- func UpdateEntry(id string, FeedId string, ApplicationId string, OrgId string, data string) (err error)
- func UpdateFeed(id string, data string) (err error)
- func UpdateOrg(org *Org) (err error)
- func UpdatePlugin(plugin *Plugin) (err error)
- func UpdateToken(id string, data string) (err error)
- type Admin
- type Application
- type Entry
- type Feed
- func (this *Feed) AddEntry(entry Entry) (EntryId string, err error)
- func (this *Feed) AddWorkflow(workflow Workflow) (WorkflowId string, err error)
- func (this *Feed) GetEntryList() (entries []*Entry, err error)
- func (this *Feed) GetWorkflow() *Workflow
- func (this *Feed) GetWorkflowList() (entries []*Workflow, err error)
- type Metric
- type Org
- type Plugin
- type ResourceManager
- type Token
- type Viewer
- type Workflow
- func GetWorkflow(id string, FeedId string, ApplicationId string, OrgId string) (feedWorkflow *Workflow, err error)
- func GetWorkflowList(FeedId string, ApplicationId string, OrgId string) (feedWorkflows []*Workflow, err error)
- func NewWorkflow(id string, feed *Feed, def bool, data string) *Workflow
- func UpdateWorkflow(id string, FeedId string, ApplicationId string, OrgId string, data string) (workflow *Workflow, err error)
Constants ¶
View Source
const ( PLUGIN_INDEXER = 1 PLUGIN_CRAWLER = 2 PLUGIN_SENSOR = 3 PLUGIN_SCENARIO = 4 PLUGIN_PIPELINE = 5 PLUGIN_HELPER = 6 )
View Source
const ( RESOURCE_ORG_LABEL = "org" RESOURCE_ADMIN_LABEL = "admin" RESOURCE_TOKEN_LABEL = "token" RESOURCE_APPLICATION_LABEL = "application" RESOURCE_FEED_LABEL = "feed" RESOURCE_ENTRY_LABEL = "entry" RESOURCE_METRIC_LABEL = "metric" RESOURCE_VIEWER_LABEL = "viewer" RESOURCE_WORKFLOW_LABEL = "workflow" RESOURCE_PLUGIN_LABEL = "plugin" )
Variables ¶
Functions ¶
func ActionEmptyFeed ¶
func ActionEmptyFeed(id string)
func ActionReloadFeed ¶
func ActionReloadFeed(id string)
func AddApplication ¶
func AddApplication(application Application, orgId string) (id string, err error)
func AddTokenForOrganisation ¶
func AddWorkflow ¶
func ConvertInterfaceToStringArray ¶
func ConvertInterfaceToStringArray(d interface{}) []string
func DeleteAdmin ¶
func DeleteApplication ¶
func DeleteEntry ¶
func DeleteFeed ¶
func DeletePlugin ¶
func DeleteToken ¶
func DeleteWorkflow ¶
func InitResources ¶
func InitResources()
func InitStorage ¶
func InitStorage()
func NewResourceManager ¶
func NewResourceManager(engine emodel.Elasticfeed) emodel.ResourceManager
func UpdateAdmin ¶
func UpdateApplication ¶
func UpdateEntry ¶
func UpdateFeed ¶
func UpdatePlugin ¶
func UpdateToken ¶
Types ¶
type Admin ¶
type Admin struct { Id string Org *Org Username string Maintainer bool Whitelist []string Data string Tokens int }
func FindAdminByUsername ¶
func GetAdminList ¶
func (*Admin) IsMaintainer ¶
func (*Admin) IsSuperUser ¶
func (*Admin) IsWhitelisted ¶
type Application ¶
func GetApplication ¶
func GetApplication(id string, orgId string) (application *Application, err error)
func GetApplicationList ¶
func GetApplicationList(orgId string) (appList []*Application, err error)
func (*Application) GetFeedList ¶
func (this *Application) GetFeedList() ([]*Feed, error)
type Feed ¶
type Feed struct { Id string Application *Application Data string Entries int Workflows int }
func GetFeedList ¶
func (*Feed) AddWorkflow ¶
func (*Feed) GetEntryList ¶
func (*Feed) GetWorkflow ¶
func (*Feed) GetWorkflowList ¶
type Org ¶
func GetOrgList ¶
func (*Org) AddApplication ¶
func (this *Org) AddApplication(app Application) (id string, err error)
func (*Org) AssignAdmin ¶
type Plugin ¶
func GetPluginList ¶
type ResourceManager ¶
type ResourceManager struct {
// contains filtered or unexported fields
}
func (*ResourceManager) GetEngine ¶
func (this *ResourceManager) GetEngine() emodel.Elasticfeed
func (*ResourceManager) GetStreamService ¶
func (this *ResourceManager) GetStreamService() *stream.StreamService
func (*ResourceManager) Init ¶
func (this *ResourceManager) Init()
type Token ¶
func GetOrgTokenList ¶
type Viewer ¶
type Viewer struct{}
func (*Viewer) GetContext ¶
func (this *Viewer) GetContext()
func (*Viewer) GetIdentity ¶
func (this *Viewer) GetIdentity()
func (*Viewer) GetPluginStorageList ¶
func (this *Viewer) GetPluginStorageList()
func (*Viewer) GetProfile ¶
func (this *Viewer) GetProfile()
func (*Viewer) GetStorage ¶
func (this *Viewer) GetStorage()
type Workflow ¶
func GetWorkflow ¶
func GetWorkflowList ¶
func UpdateWorkflow ¶
func (*Workflow) GetProfilerRawData ¶
func (*Workflow) GetRawData ¶
Click to show internal directories.
Click to hide internal directories.