cmd

package
v1.2.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootCmd = &cobra.Command{
		Use:   "metathings",
		Short: "MetaThings Command Line Toolkits",
	}
)

Functions

func NewMetathingsSodaModule added in v1.2.9

func NewMetathingsSodaModule() (*component.Module, error)

func SetVersion added in v1.2.0

func SetVersion(v string)

Types

type CreateCredentialOption added in v1.1.4

type CreateCredentialOption struct {
	cmd_contrib.ClientBaseOption `mapstructure:",squash"`
	Name                         string
	Secret                       string
	SecretSize                   int32
	Token                        string
	Domain                       string
}

func NewCreateCredentialOption added in v1.1.4

func NewCreateCredentialOption() *CreateCredentialOption

type IssueTokenOption

type IssueTokenOption struct {
	cmd_contrib.ClientBaseOption `mapstructure:",squash"`
	DomainId                     string
	Username                     string
	Password                     string
	CredentialId                 string
	CredentialSecret             string
	Timestamp                    int64
	Nonce                        int64
	Token                        string

	Env bool
}

func NewIssueTokenOption

func NewIssueTokenOption() *IssueTokenOption

type PullFlowDeviceOption added in v1.2.9

type PullFlowDeviceOption struct {
	cmd_contrib.ClientBaseOption `mapstructure:",squash"`
	Device                       string
	Flow                         string
}

func NewPullFlowDeviceOption added in v1.2.9

func NewPullFlowDeviceOption() *PullFlowDeviceOption

type RunModuleOption added in v1.2.9

type RunModuleOption struct {
	cmd_contrib.ClientBaseOption `mapstructure:",squash"`
	BinarySynchronizer           map[string]interface{}
}

func NewRunModuleOption added in v1.2.9

func NewRunModuleOption() *RunModuleOption

type UnaryCallDeviceOption added in v1.2.9

type UnaryCallDeviceOption struct {
	cmd_contrib.ClientBaseOption `mapstructure:",squash"`
	Device                       string
	Module                       string
	Method                       string
	Protobufset                  string
	Soda                         bool
	Data                         string
	File                         string
}

func NewUnaryCallDeviceOption added in v1.2.9

func NewUnaryCallDeviceOption() *UnaryCallDeviceOption

type UploadDescriptorOption added in v1.2.14

type UploadDescriptorOption struct {
	cmd_contrib.ClientBaseOption `mapstructure:",squash"`
	Protoset                     string
}

func NewUploadDescriptorOption added in v1.2.14

func NewUploadDescriptorOption() *UploadDescriptorOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL