Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCliAppFactory ¶
func NewCliAppFactory(f api.IModuleFactory, modDef *api.ModuleDefinition) (api.IHiveModule, error)
Factory function for the cli app
Types ¶
type CliApp ¶
type CliApp struct {
// this is a consumer for chaining modules. Don't use it directly.
*consumer.Consumer
// contains filtered or unexported fields
}
The CLI App has a module wrapper so it can be used as part of the module chain
func NewCliApp ¶
func NewCliApp(config CliAppConfig, discoClient discovery.IDiscoveryClient, dirClient directory.IDirectoryClient, caCert *x509.Certificate) *CliApp
Create a new instance of the CLI app FIXME: where does it get discoClient and dirClient?
option1: use the chain, eg send request option2: use parameters, pass directly
func (*CliApp) ListDir ¶
func (app *CliApp) ListDir()
Show the content of a remote directory This first discovers the directory then attempts to read it.
func (*CliApp) ShowDiscovery ¶
func (app *CliApp) ShowDiscovery()
discover things and directories on the network
if readDir is true then try to read the directory content/hivekit/go/examples/wotco"
func (*CliApp) ShowStatus ¶
Show the status of a Thing
The thing must have published its TD using discovery.
thingID whose status to show subscribe to property updates and events
type CliAppConfig ¶
Click to show internal directories.
Click to hide internal directories.