Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthsFileName string
View Source
var RootCmd = &cobra.Command{ Use: "cloudthing", Short: "A CLI client for CloudThing.io", Long: `A comand-line client for CloudThing.io Internet of Things cloud platform. Check out our getting started guides or simply login by typing: cloudthing login If you still don't have an account, just type: cloudthing register`, PersistentPreRun: func(cmd *cobra.Command, args []string) { var logLevel = logger.InfoLevel if viper.GetBool("debug") { logLevel = logger.DebugLevel } log = &logger.Logger{ Level: logLevel, Handler: cli.New(os.Stdout), } apiServer := viper.GetString("api-server") var err error ctx, err = api.NewClient(nil, fmt.Sprintf("http://%s", apiServer)) if err != nil { return } auth := utils.LoadAuth(apiServer) if auth != nil { ctx.SetTokenAuth(auth) } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
type RegisterRequest ¶
type Tenant ¶
type Tenant struct { Href string `json:"href"` Name string `json:"name"` ShortName string `json:"shortName"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` Directories interface{} `json:"directories"` Applications interface{} `json:"applications"` Products interface{} `json:"products"` Custom interface{} `json:"custom"` }
Click to show internal directories.
Click to hide internal directories.