Documentation ¶
Overview ¶
Package commands implements the commands for the ttn-lw-cli binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = MakeDefaultConfig(defaultGRPCAddress, defaultOAuthServerAddress, defaultInsecure)
DefaultConfig contains the default config for the ttn-lw-cli binary.
View Source
var ( // Root command is the entrypoint of the program Root = &cobra.Command{ Use: name, SilenceErrors: true, SilenceUsage: true, Short: "The Things Network Command-line Interface", PersistentPreRunE: preRun(checkAuth, refreshToken, requireAuth), PersistentPostRunE: func(cmd *cobra.Command, args []string) error { api.CloseAll() err := util.SaveAuthCache(cache) if err != nil { return err } return ctx.Err() }, } )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { conf.Base `name:",squash"` CredentialsID string `name:"credentials-id" yaml:"credentials-id" description:"Credentials ID (if using multiple configurations)"` InputFormat string `name:"input-format" yaml:"input-format" description:"Input format"` OutputFormat string `name:"output-format" yaml:"output-format" description:"Output format"` AllowUnknownHosts bool `name:"allow-unknown-hosts" yaml:"allow-unknown-hosts" description:"Allow sending credentials to unknown hosts"` OAuthServerAddress string `name:"oauth-server-address" yaml:"oauth-server-address" description:"OAuth Server address"` IdentityServerGRPCAddress string `name:"identity-server-grpc-address" yaml:"identity-server-grpc-address" description:"Identity Server address"` GatewayServerEnabled bool `name:"gateway-server-enabled" yaml:"gateway-server-enabled" description:"Gateway Server enabled"` GatewayServerGRPCAddress string `name:"gateway-server-grpc-address" yaml:"gateway-server-grpc-address" description:"Gateway Server address"` NetworkServerEnabled bool `name:"network-server-enabled" yaml:"network-server-enabled" description:"Network Server enabled"` NetworkServerGRPCAddress string `name:"network-server-grpc-address" yaml:"network-server-grpc-address" description:"Network Server address"` ApplicationServerEnabled bool `name:"application-server-enabled" yaml:"application-server-enabled" description:"Application Server enabled"` ApplicationServerGRPCAddress string `name:"application-server-grpc-address" yaml:"application-server-grpc-address" description:"Application Server address"` JoinServerEnabled bool `name:"join-server-enabled" yaml:"join-server-enabled" description:"Join Server enabled"` JoinServerGRPCAddress string `name:"join-server-grpc-address" yaml:"join-server-grpc-address" description:"Join Server address"` DeviceTemplateConverterGRPCAddress string `` /* 139-byte string literal not displayed */ DeviceClaimingServerGRPCAddress string `` /* 130-byte string literal not displayed */ QRCodeGeneratorGRPCAddress string `name:"qr-code-generator-grpc-address" yaml:"qr-code-generator-grpc-address" description:"QR Code Generator address"` Insecure bool `name:"insecure" yaml:"insecure" description:"Connect without TLS"` CA string `name:"ca" yaml:"ca" description:"CA certificate file"` DumpRequests bool `name:"dump-requests" yaml:"dump-requests" description:"When log level is set to debug, also dump request payload as JSON"` }
Config for the ttn-lw-cli binary.
Source Files ¶
- access.go
- applications.go
- applications_access.go
- applications_claim.go
- applications_downlink.go
- applications_link.go
- applications_packages.go
- applications_pubsub.go
- applications_subscribe.go
- applications_webhooks.go
- bulk.go
- clients.go
- clients_access.go
- config.go
- contact_info.go
- context.go
- end_device_templates.go
- end_devices.go
- end_devices_split.go
- events.go
- flags.go
- gateways.go
- gateways_access.go
- login.go
- organizations.go
- organizations_access.go
- pagination.go
- picture.go
- root.go
- simulate.go
- storage_integration.go
- storage_integration_util.go
- use.go
- users.go
- users_access.go
- users_invitations.go
- users_oauth.go
- utils.go
Click to show internal directories.
Click to hide internal directories.