Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RootCmd = &cobra.Command{
Use: "metathings",
Short: "MetaThings Command Line Toolkits",
}
)
Functions ¶
func NewMetathingsDeviceServiceOption ¶
func NewMetathingsDeviceServiceOption(opt *RunDeviceOption) *service.MetathingsDeviceServiceOption
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 GetCreateCredentialOptions ¶ added in v1.1.4
func GetCreateCredentialOptions() ( *CreateCredentialOption, cmd_contrib.ServiceEndpointsOptioner, cmd_contrib.LoggerOptioner, )
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 GetIssueTokenOptions ¶
func GetIssueTokenOptions() ( *IssueTokenOption, cmd_contrib.ServiceEndpointsOptioner, cmd_contrib.LoggerOptioner, )
func NewIssueTokenOption ¶
func NewIssueTokenOption() *IssueTokenOption
type RunDeviceOption ¶
type RunDeviceOption struct { cmd_contrib.ClientBaseOption `mapstructure:",squash"` BinarySynchronizer map[string]interface{} }
func GetRunDeviceOptions ¶
func GetRunDeviceOptions() ( *RunDeviceOption, cmd_contrib.LoggerOptioner, cmd_contrib.ServiceEndpointsOptioner, cmd_contrib.CredentialOptioner, cmd_contrib.ListenOptioner, cmd_contrib.TransportCredentialOptioner, cmd_contrib.BinarySynchronizerOption, )
func NewRunDeviceOption ¶
func NewRunDeviceOption() *RunDeviceOption
Click to show internal directories.
Click to hide internal directories.