README ¶ User-Agent used by the CLI in its API requests to the backend. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type EnvType func (e EnvType) String() string type UA func FromString(s string) (UA, error) func (ua UA) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type EnvType ¶ type EnvType int Type of environment where the CLI is running. const ( // CLI running as native binary on a host. ENV_HOST EnvType = iota // CLI running from our docker image. ENV_DOCKER ) func (EnvType) String ¶ func (e EnvType) String() string type UA ¶ type UA struct { // Semantic version of the CLI. Version *ver.Version // OS and architecture that the CLI is running on. OS string Arch string EnvType EnvType } func FromString ¶ func FromString(s string) (UA, error) func (UA) String ¶ func (ua UA) String() string Source Files ¶ View all Source files useragent.go Click to show internal directories. Click to hide internal directories.