Documentation ¶
Index ¶
- func APIKeyRights(defaultRights ...packetbroker.Right) *flag.FlagSet
- func APIKeyState(name string) *flag.FlagSet
- func ApplyToTarget(flags *flag.FlagSet, actor string, target **packetbroker.Target) error
- func ContactInfo(actor string) *flag.FlagSet
- func DevAddrBlocks(addRemove bool) *flag.FlagSet
- func Endpoint(actor string) *flag.FlagSet
- func EndpointFlagsChanged(flags *flag.FlagSet, actor string) bool
- func GatewayVisibility() *flag.FlagSet
- func GetAPIKeyRights(flags *flag.FlagSet) []packetbroker.Right
- func GetAPIKeyState(flags *flag.FlagSet, name string) packetbroker.APIKeyState
- func GetContactInfo(flags *flag.FlagSet, actor string) *packetbroker.ContactInfo
- func GetDevAddrBlocks(flags *flag.FlagSet) (all, add, remove []*packetbroker.DevAddrBlock)
- func GetEndpoint(flags *flag.FlagSet, actor string) (packetbroker.Endpoint, bool)
- func GetGatewayVisibility(flags *flag.FlagSet) *packetbroker.GatewayVisibility
- func GetJoinEUIPrefixes(flags *flag.FlagSet) []*packetbroker.JoinEUIPrefix
- func GetMonthYear(flags *flag.FlagSet, name string) (month, year int, ok bool)
- func GetNetID(flags *flag.FlagSet, actor string) (packetbroker.NetID, bool)
- func GetRoutingPolicy(flags *flag.FlagSet) (*packetbroker.RoutingPolicy_Uplink, *packetbroker.RoutingPolicy_Downlink)
- func GetTargetProtocol(flags *flag.FlagSet, actor string) *packetbroker.Protocol
- func GetTenantID(flags *flag.FlagSet, actor string) (packetbroker.TenantID, bool)
- func GetTenantIDWrappers(flags *flag.FlagSet, actor string) (netID *wrapperspb.UInt32Value, id *wrapperspb.StringValue)
- func HasEndpoint(flags *flag.FlagSet, actor string) (hasNetID, hasTenantID, hasClusterID bool)
- func JoinEUIPrefixes() *flag.FlagSet
- func MessageType() *flag.FlagSet
- func MonthYear(name string) *flag.FlagSet
- func NetID(actor string) *flag.FlagSet
- func NewForwarderMessage(flags *flag.FlagSet) proto.Message
- func NewHomeNetworkMessage(flags *flag.FlagSet) proto.Message
- func Protocol(actor string) *flag.FlagSet
- func RoutingPolicy() *flag.FlagSet
- func Target(actor string) *flag.FlagSet
- func TargetFlagsChanged(flags *flag.FlagSet, actor string) bool
- func TargetProtocolChanged(flags *flag.FlagSet, actor string) bool
- func TenantID(actor string) *flag.FlagSet
- func TenantIDChanged(flags *flag.FlagSet, actor string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIKeyRights ¶
func APIKeyRights(defaultRights ...packetbroker.Right) *flag.FlagSet
APIKeyRights returns flags for API key rights.
func APIKeyState ¶
APIKeyState returns flags for an API key state.
func ApplyToTarget ¶
ApplyToTarget applies the values from the flags to the given target.
func ContactInfo ¶
ContactInfo returns flags for contact information.
func DevAddrBlocks ¶
DevAddrBlocks returns flags for DevAddr blocks.
func EndpointFlagsChanged ¶
EndpointFlagsChanged returns whether any of the endpoint flags are changed.
func GatewayVisibility ¶
GatewayVisibility returns flags for gateway visibility.
func GetAPIKeyRights ¶
func GetAPIKeyRights(flags *flag.FlagSet) []packetbroker.Right
GetAPIKeyRights returns the API key rights from the flags.
func GetAPIKeyState ¶
func GetAPIKeyState(flags *flag.FlagSet, name string) packetbroker.APIKeyState
GetAPIKeyState returns the API key state from the flags.
func GetContactInfo ¶
func GetContactInfo(flags *flag.FlagSet, actor string) *packetbroker.ContactInfo
GetContactInfo returns the contact information from flags.
func GetDevAddrBlocks ¶
func GetDevAddrBlocks(flags *flag.FlagSet) (all, add, remove []*packetbroker.DevAddrBlock)
GetDevAddrBlocks returns the DevAddr blocks from the flags.
func GetEndpoint ¶
GetEndpoint returns the Endpoint from the flags.
func GetGatewayVisibility ¶
func GetGatewayVisibility(flags *flag.FlagSet) *packetbroker.GatewayVisibility
GetGatewayVisibility returns the gateway visibility from the flags.
func GetJoinEUIPrefixes ¶
func GetJoinEUIPrefixes(flags *flag.FlagSet) []*packetbroker.JoinEUIPrefix
GetJoinEUIPrefixes returns the JoinEUI prefixes from the flags.
func GetMonthYear ¶
GetMonthYear returns the month year from flags.
func GetRoutingPolicy ¶
func GetRoutingPolicy(flags *flag.FlagSet) (*packetbroker.RoutingPolicy_Uplink, *packetbroker.RoutingPolicy_Downlink)
GetRoutingPolicy returns the routing policy from the flags.
func GetTargetProtocol ¶
func GetTargetProtocol(flags *flag.FlagSet, actor string) *packetbroker.Protocol
GetTargetProtocol returns the protocol from the flags.
func GetTenantID ¶
GetTenantID returns the TenantID from the flags. The actor is used as prefix.
func GetTenantIDWrappers ¶
func GetTenantIDWrappers(flags *flag.FlagSet, actor string) (netID *wrapperspb.UInt32Value, id *wrapperspb.StringValue)
GetTenantIDWrappers returns the TenantID as protobuf wrappers. The returned values are nil when they are not set.
func HasEndpoint ¶
HasEndpoint returns which endpoint flags are set.
func JoinEUIPrefixes ¶
JoinEUIPrefixes returns flags for JoinEUI prefixes.
func NewForwarderMessage ¶
NewForwarderMessage returns a new message based on the specified type.
func NewHomeNetworkMessage ¶
NewHomeNetworkMessage returns a new message based on the specified type.
func RoutingPolicy ¶
RoutingPolicy returns flags for a routing policy.
func TargetFlagsChanged ¶
TargetFlagsChanged returns whether any of the target values has been changed.
func TargetProtocolChanged ¶
TargetProtocolChanged returns whether the flag has been changed.
Types ¶
This section is empty.