Documentation ¶
Index ¶
- func Init()
- type Cli
- type Dev
- func (Dev) Certificates() error
- func (Dev) DBCreate() error
- func (Dev) DBErase() error
- func (Dev) DBRedisCli() error
- func (Dev) DBSQL() error
- func (Dev) DBStart() error
- func (Dev) DBStop() error
- func (Dev) GenGatewayCA() error
- func (Dev) GenGatewayCerts() error
- func (Dev) InitDeviceRepo() error
- func (Dev) InitStack() error
- func (Dev) Misspell() error
- func (Dev) RedisFlush() error
- func (Dev) SQLDump() error
- func (Dev) SQLRestore() error
- func (Dev) SQLStart() error
- func (Dev) SQLStop() error
- func (Dev) StartDevStack() error
- type Git
- type Go
- type HeaderConfig
- type HeaderRule
- type Headers
- type Js
- func (js Js) BackendTranslations() error
- func (js Js) Build() error
- func (js Js) BuildDll() error
- func (js Js) Clean() error
- func (js Js) CleanDeps() error
- func (js Js) CypressHeadless() error
- func (js Js) CypressInteractive() error
- func (js Js) Deps() error
- func (js Js) ExtractLocaleFiles() error
- func (js Js) Fmt() error
- func (js Js) Lint() error
- func (js Js) LintAll()
- func (js Js) LintSnap() error
- func (js Js) Messages() error
- func (js Js) Serve() error
- func (js Js) Storybook() error
- func (js Js) Test() error
- func (js Js) Translations()
- func (js Js) Vulnerabilities() error
- type JsSDK
- func (k JsSDK) AllowedFieldMaskPaths() error
- func (k JsSDK) Build() error
- func (k JsSDK) Clean()
- func (JsSDK) CleanDeps()
- func (k JsSDK) Definitions() error
- func (k JsSDK) DefinitionsClean(context.Context) error
- func (k JsSDK) Deps() error
- func (k JsSDK) DeviceFieldMasks() error
- func (k JsSDK) Fmt() error
- func (k JsSDK) Lint() error
- func (k JsSDK) Test() error
- func (k JsSDK) TestWatch() error
- func (k JsSDK) Watch() error
- type Proto
- func (p Proto) All(ctx context.Context)
- func (p Proto) Clean(ctx context.Context)
- func (p Proto) Fmt(ctx context.Context) error
- func (p Proto) Go(context.Context) error
- func (p Proto) GoClean(context.Context) error
- func (p Proto) JsSDK(context.Context) error
- func (p Proto) JsSDKClean(context.Context) error
- func (p Proto) Lint(ctx context.Context) error
- func (p Proto) Markdown(context.Context) error
- func (p Proto) MarkdownClean(context.Context) error
- func (p Proto) Swagger(context.Context) error
- func (p Proto) SwaggerClean(context.Context) error
- type SQL
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cli ¶
Cli namespace.
func (Cli) Autocomplete ¶
Autocomplete generates scripts for auto-completion.
type Dev ¶
Dev namespace.
func (Dev) Certificates ¶
Certificates generates certificates for development.
func (Dev) GenGatewayCA ¶
GenGatewayCA generates a certificate authority to sign gateway certificates.
func (Dev) GenGatewayCerts ¶
GenGatewayCerts generates a client certificates for the EUI.
func (Dev) InitDeviceRepo ¶
InitDeviceRepo initializes the device repository.
func (Dev) SQLDump ¶
SQLDump performs an SQL database dump of the dev database to the .cache folder.
func (Dev) SQLRestore ¶
SQLRestore restores the dev database using a previously generated dump.
func (Dev) StartDevStack ¶
StartDevStack starts TTS in end-to-end test configuration.
type Git ¶
Git namespace.
func (Git) InstallHooks ¶
InstallHooks installs git hooks that help developers follow our best practices.
func (Git) PullSubmodules ¶
PullSubmodules pulls in submodule updates.
func (Git) RunHook ¶
RunHook runs the Git hook for $HOOK. - standard input contents are taken from $STDIN - arguments are taken from $ARGS
func (Git) UninstallHooks ¶
UninstallHooks uninstalls git hooks.
func (Git) UpdateSubmodules ¶
UpdateSubmodules updates submodules, and initializes them when necessary.
type Go ¶
Go namespace.
func (Go) CheckVersion ¶
CheckVersion checks the installed Go version against the minimum version we support.
func (Go) TestBinaries ¶
TestBinaries tests the Go binaries by executing them with the --help flag.
type HeaderConfig ¶
type HeaderConfig struct {
Rules []*HeaderRule `yaml:"rules"`
}
HeaderConfig is the format of the header configuration file.
type HeaderRule ¶
type HeaderRule struct { Include []string `yaml:"include"` Exclude []string `yaml:"exclude"` Header string `yaml:"header"` Prefix string `yaml:"prefix"` // contains filtered or unexported fields }
HeaderRule in the header config file.
type Headers ¶
Headers namespace.
func (Headers) CheckNewFiles ¶
CheckNewFiles checks that all new files contain the required file header with the correct year.
type Js ¶
Js namespace.
func (Js) BackendTranslations ¶
BackendTranslations builds the backend locale files.
func (Js) CypressHeadless ¶
CypressHeadless runs the Cypress end-to-end tests in the headless mode.
func (Js) CypressInteractive ¶
CypressInteractive runs the Cypress end-to-end tests in interactive mode.
func (Js) ExtractLocaleFiles ¶
ExtractLocaleFiles extracts the locale files from the babel message files.
func (Js) Translations ¶
func (js Js) Translations()
Translations writes the babel message files and converts them into locale files.
func (Js) Vulnerabilities ¶
Vulnerabilities runs yarn audit to check for vulnerable node packages.
type JsSDK ¶
JsSDK namespace.
func (JsSDK) AllowedFieldMaskPaths ¶
AllowedFieldMaskPaths builds the allowed field masks file based on the ttnpb package.
func (JsSDK) CleanDeps ¶
func (JsSDK) CleanDeps()
CleanDeps removes all installed node packages (rm -rf node_modules).
func (JsSDK) Definitions ¶
Definitions extracts the api-definition.json from the proto generated api.json.
func (JsSDK) DefinitionsClean ¶
DefinitionsClean removes the generated api-definition.json.
func (JsSDK) DeviceFieldMasks ¶
DeviceFieldMasks generates end device entity map.
type Proto ¶
Proto namespace.
func (Proto) JsSDKClean ¶
JsSDKClean removes generated javascript SDK protos.
func (Proto) MarkdownClean ¶
MarkdownClean removes generated Markdown protos.