column

package
v0.0.0-...-335641f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteDevAddrBlocks

func WriteDevAddrBlocks(w io.Writer, blocks []*packetbroker.DevAddrBlock) error

WriteDevAddrBlocks writes the DevAddr blocks as a table.

func WriteJoinEUIPrefixes

func WriteJoinEUIPrefixes(w io.Writer, prefixes []*packetbroker.JoinEUIPrefix) error

WriteJoinEUIPrefixes writes the JoinEUI prefixes as a table.

func WriteJoinServer

func WriteJoinServer(w io.Writer, js *packetbroker.JoinServer, verbose bool) error

WriteJoinServer writes the Join Server.

func WriteKV

func WriteKV(w io.Writer, kv ...string) error

WriteKV writes the key/value pairs.

func WriteNetwork

func WriteNetwork(w io.Writer, network *packetbroker.Network, verbose bool) error

WriteNetwork writes the Network.

func WritePolicies

func WritePolicies(w io.Writer, defaults bool, policies ...*packetbroker.RoutingPolicy) error

WritePolicies writes the policies as a table.

func WriteTenant

func WriteTenant(w io.Writer, tenant *packetbroker.Tenant, verbose bool) error

WriteTenant writes the Tenant.

func WriteVisibilities

func WriteVisibilities(w io.Writer, defaults bool, visibilities ...*packetbroker.GatewayVisibility) error

WriteVisibilities writes the gateway visibilities as a table.

Types

type DevAddrBlocks

type DevAddrBlocks []*packetbroker.DevAddrBlock

DevAddrBlocks prints DevAddr blocks as column field.

func (DevAddrBlocks) String

func (bs DevAddrBlocks) String() string

type JoinEUIPrefixes

type JoinEUIPrefixes []*packetbroker.JoinEUIPrefix

JoinEUIPrefixes prints JoinEUI prefixes as column field.

func (JoinEUIPrefixes) String

func (bs JoinEUIPrefixes) String() string

type JoinServerFixedEndpoint

type JoinServerFixedEndpoint packetbroker.JoinServerFixedEndpoint

JoinServerFixedEndpoint prints the target as column field.

func (*JoinServerFixedEndpoint) String

func (t *JoinServerFixedEndpoint) String() string

type Rights

type Rights []packetbroker.Right

Rights formats the API key rights.

func (Rights) String

func (r Rights) String() string

type Target

type Target packetbroker.Target

Target prints the target as column field.

func (*Target) String

func (t *Target) String() string

type TimeSince

type TimeSince timestamppb.Timestamp

TimeSince formats the timestamp as duration since then, in seconds.

func (*TimeSince) String

func (t *TimeSince) String() string

type YesNo

type YesNo bool

YesNo prints the boolean as Yes or No.

func (YesNo) String

func (yn YesNo) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL