Documentation ¶
Index ¶
- Variables
- func AddDeviceAutocompletion(cmd *cobra.Command, params *baseParams)
- func AddFormatFlag(cmd *cobra.Command, format *string)
- func AddJsonFlag(cmd *cobra.Command, isJsonFormat *bool)
- func Execute(version string)
- func IsAuthenticated() bool
- func ResolveFormat(formatFlagValue string, jsonFlagValue bool) string
- func TokenIsApiKey(token string) bool
- type AuthType
- type DecimalTime
- type Message
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRedirectStdout = errors.New("stdout unredirected") ErrInvalidFormat = errors.New("invalid format: supply mcap0, bag1, or json") )
View Source
var ErrInvalidInput = errors.New("magic bytes do not match bag or mcap format")
View Source
var ErrTruncatedMCAP = errors.New("truncated mcap file")
Functions ¶
func AddDeviceAutocompletion ¶
AddDeviceAutocompletion adds autocompletion for device-name and device-id parameters to the command.
func AddFormatFlag ¶
Define a `format` flag on a command for one of the formats above
func AddJsonFlag ¶
func IsAuthenticated ¶
func IsAuthenticated() bool
func ResolveFormat ¶
Ensure --json alias is not conflicting with --format's value
func TokenIsApiKey ¶
Types ¶
type DecimalTime ¶
type DecimalTime uint64
func (DecimalTime) MarshalJSON ¶
func (t DecimalTime) MarshalJSON() ([]byte, error)
func (*DecimalTime) UnmarshalJSON ¶
func (t *DecimalTime) UnmarshalJSON(b []byte) error
type Message ¶
type Message struct { Topic string `json:"topic"` Sequence uint32 `json:"sequence"` LogTime DecimalTime `json:"log_time"` PublishTime DecimalTime `json:"publish_time"` Data json.RawMessage `json:"data"` }
Click to show internal directories.
Click to hide internal directories.