Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PreferencesCmd = ngsicli.Command{ Name: "preferences", Usage: "manage preferences for WireCloud", Category: "APPLICATION MASHUP", Flags: []ngsicli.Flag{ ngsicli.HostRFlag, ngsicli.OAuthTokenFlag, }, Subcommands: []*ngsicli.Command{ { Name: "get", Usage: "get preferences", ServerList: []string{"wirecloud"}, Flags: []ngsicli.Flag{ ngsicli.PrettyFlag, }, Action: func(c *ngsicli.Context, ngsi *ngsilib.NGSI, client *ngsilib.Client) error { return wireCloudPreferencesGet(c, ngsi, client) }, }, }, }
View Source
var ResourcesCmd = ngsicli.Command{ Name: "macs", Usage: "manage mashable application components for WireCloud", Category: "APPLICATION MASHUP", Flags: []ngsicli.Flag{ ngsicli.HostRFlag, ngsicli.OAuthTokenFlag, }, Subcommands: []*ngsicli.Command{ { Name: "list", Usage: "list mashable application components", ServerList: []string{"wirecloud"}, Flags: []ngsicli.Flag{ wireCloudWidgetFlag, wireCloudOperatorFlag, wireCloudMashupFlag, wireCloudVenderFlag, wireCloudNameFlag, wireCloudVersionFlag, ngsicli.JsonFlag, ngsicli.PrettyFlag, }, Action: func(c *ngsicli.Context, ngsi *ngsilib.NGSI, client *ngsilib.Client) error { return wireCloudResourcesList(c, ngsi, client) }, }, { Name: "get", Usage: "get mashable application component", ServerList: []string{"wirecloud"}, Flags: []ngsicli.Flag{ wireCloudVenderFlag, wireCloudNameFlag, wireCloudVersionFlag, ngsicli.PrettyFlag, }, Action: func(c *ngsicli.Context, ngsi *ngsilib.NGSI, client *ngsilib.Client) error { return wireCloudResourceGet(c, ngsi, client) }, }, { Name: "download", Usage: "download mashable application component", ServerList: []string{"wirecloud"}, Flags: []ngsicli.Flag{ wireCloudVenderFlag, wireCloudNameFlag, wireCloudVersionFlag, }, Action: func(c *ngsicli.Context, ngsi *ngsilib.NGSI, client *ngsilib.Client) error { return wireCloudResourceDownload(c, ngsi, client) }, }, { Name: "install", Usage: "install mashable application component", ServerList: []string{"wirecloud"}, Flags: []ngsicli.Flag{ wireCloudFileRFlag, wireCloudPublicFlag, wireCloudOverwriteFlag, ngsicli.JsonFlag, ngsicli.PrettyFlag, }, RequiredFlags: []string{"file"}, Action: func(c *ngsicli.Context, ngsi *ngsilib.NGSI, client *ngsilib.Client) error { return wireCloudResourceInstall(c, ngsi, client) }, }, { Name: "uninstall", Usage: "uninstall mashable application component", ServerList: []string{"wirecloud"}, Flags: []ngsicli.Flag{ wireCloudVenderFlag, wireCloudNameFlag, wireCloudVersionFlag, ngsicli.RunFlag, ngsicli.JsonFlag, ngsicli.PrettyFlag, }, Action: func(c *ngsicli.Context, ngsi *ngsilib.NGSI, client *ngsilib.Client) error { return wireCloudResourceUninstall(c, ngsi, client) }, }, }, }
View Source
var TabsCmd = ngsicli.Command{ Name: "tabs", Usage: "manage tabs for WireCloud", Category: "APPLICATION MASHUP", Flags: []ngsicli.Flag{ ngsicli.HostRFlag, ngsicli.OAuthTokenFlag, }, Subcommands: []*ngsicli.Command{ { Name: "list", Usage: "list tabs", ServerList: []string{"wirecloud"}, Flags: []ngsicli.Flag{ wireCloudWorkspaceIdRFlag, ngsicli.JsonFlag, ngsicli.PrettyFlag, }, RequiredFlags: []string{"wid"}, Action: func(c *ngsicli.Context, ngsi *ngsilib.NGSI, client *ngsilib.Client) error { return wireCloudTabsList(c, ngsi, client) }, }, { Name: "get", Usage: "get tab", ServerList: []string{"wirecloud"}, Flags: []ngsicli.Flag{ wireCloudWorkspaceIdRFlag, wireCloudTabIdRFlag, ngsicli.PrettyFlag, }, RequiredFlags: []string{"wid", "tid"}, Action: func(c *ngsicli.Context, ngsi *ngsilib.NGSI, client *ngsilib.Client) error { return wireCloudTabGet(c, ngsi, client) }, }, }, }
View Source
var WirecloudApp = &ngsicli.App{ Copyright: ngsicli.Copyright, Version: ngsicli.Version, Usage: "wirecloud command", Flags: ngsicli.GlobalFlags, Commands: []*ngsicli.Command{ &PreferencesCmd, &ResourcesCmd, &TabsCmd, &WorkspacesCmd, }, }
View Source
var WorkspacesCmd = ngsicli.Command{ Name: "workspaces", Usage: "manage workspaces for WireCloud", Category: "APPLICATION MASHUP", Flags: []ngsicli.Flag{ ngsicli.HostRFlag, ngsicli.OAuthTokenFlag, }, Subcommands: []*ngsicli.Command{ { Name: "list", Usage: "list workspaces", ServerList: []string{"wirecloud"}, Flags: []ngsicli.Flag{ ngsicli.JsonFlag, ngsicli.PrettyFlag, }, Action: func(c *ngsicli.Context, ngsi *ngsilib.NGSI, client *ngsilib.Client) error { return wireCloudWorkspacesList(c, ngsi, client) }, }, { Name: "get", Usage: "get workspace", ServerList: []string{"wirecloud"}, Flags: []ngsicli.Flag{ wireCloudWorkspaceIdRFlag, wireCloudUsersFlag, wireCloudTabsFlag, wireCloudWidgetsFlag, wireCloudOperatorsFlag, ngsicli.JsonFlag, ngsicli.PrettyFlag, }, RequiredFlags: []string{"wid"}, Action: func(c *ngsicli.Context, ngsi *ngsilib.NGSI, client *ngsilib.Client) error { return wireCloudWorkspaceGet(c, ngsi, client) }, }, }, }
Functions ¶
func NewNgsiApp ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.