iotwireless

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

type Destination struct {
	Name           string
	Arn            string
	Expression     string
	ExpressionType string
	Description    string
	RoleArn        string
	CreationTime   time.Time
	Tags           map[string]string
}

type DeviceProfile

type DeviceProfile struct {
	Id           string
	Arn          string
	Name         string
	LoRaWAN      map[string]any
	Sidewalk     map[string]any
	CreationTime time.Time
	Tags         map[string]string
}

type IoTWirelessService

type IoTWirelessService struct {
	// contains filtered or unexported fields
}

IoTWirelessService is the cloudmock implementation of the AWS IoT Wireless API.

func New

func New(accountID, region string) *IoTWirelessService

New returns a new IoTWirelessService for the given AWS account ID and region.

func (*IoTWirelessService) Actions

func (s *IoTWirelessService) Actions() []service.Action

Actions returns the list of IoT Wireless API actions supported by this service.

func (*IoTWirelessService) HandleRequest

func (s *IoTWirelessService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)

HandleRequest routes an incoming IoT Wireless request to the appropriate handler.

func (*IoTWirelessService) HealthCheck

func (s *IoTWirelessService) HealthCheck() error

HealthCheck always returns nil.

func (*IoTWirelessService) Name

func (s *IoTWirelessService) Name() string

Name returns the AWS service name used for routing.

type ServiceProfile

type ServiceProfile struct {
	Id           string
	Arn          string
	Name         string
	LoRaWAN      map[string]any
	CreationTime time.Time
	Tags         map[string]string
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(accountID, region string) *Store

func (*Store) CreateDestination

func (s *Store) CreateDestination(name, expression, expressionType, description, roleArn string, tags map[string]string) (*Destination, *service.AWSError)

func (*Store) CreateDeviceProfile

func (s *Store) CreateDeviceProfile(name string, loRaWAN, sidewalk map[string]any, tags map[string]string) (*DeviceProfile, *service.AWSError)

func (*Store) CreateServiceProfile

func (s *Store) CreateServiceProfile(name string, loRaWAN map[string]any, tags map[string]string) (*ServiceProfile, *service.AWSError)

func (*Store) CreateWirelessDevice

func (s *Store) CreateWirelessDevice(name, deviceType, destinationName, description string, loRaWAN, sidewalk map[string]any, tags map[string]string) (*WirelessDevice, *service.AWSError)

func (*Store) CreateWirelessGateway

func (s *Store) CreateWirelessGateway(name, description string, loRaWAN map[string]any, tags map[string]string) (*WirelessGateway, *service.AWSError)

func (*Store) DeleteDestination

func (s *Store) DeleteDestination(name string) *service.AWSError

func (*Store) DeleteDeviceProfile

func (s *Store) DeleteDeviceProfile(id string) *service.AWSError

func (*Store) DeleteServiceProfile

func (s *Store) DeleteServiceProfile(id string) *service.AWSError

func (*Store) DeleteWirelessDevice

func (s *Store) DeleteWirelessDevice(id string) *service.AWSError

func (*Store) DeleteWirelessGateway

func (s *Store) DeleteWirelessGateway(id string) *service.AWSError

func (*Store) GetDestination

func (s *Store) GetDestination(name string) (*Destination, *service.AWSError)

func (*Store) GetDeviceProfile

func (s *Store) GetDeviceProfile(id string) (*DeviceProfile, *service.AWSError)

func (*Store) GetServiceProfile

func (s *Store) GetServiceProfile(id string) (*ServiceProfile, *service.AWSError)

func (*Store) GetWirelessDevice

func (s *Store) GetWirelessDevice(id string) (*WirelessDevice, *service.AWSError)

func (*Store) GetWirelessGateway

func (s *Store) GetWirelessGateway(id string) (*WirelessGateway, *service.AWSError)

func (*Store) ListDestinations

func (s *Store) ListDestinations() []*Destination

func (*Store) ListDeviceProfiles

func (s *Store) ListDeviceProfiles() []*DeviceProfile

func (*Store) ListServiceProfiles

func (s *Store) ListServiceProfiles() []*ServiceProfile

func (*Store) ListTagsForResource

func (s *Store) ListTagsForResource(arn string) (map[string]string, *service.AWSError)

func (*Store) ListWirelessDevices

func (s *Store) ListWirelessDevices() []*WirelessDevice

func (*Store) ListWirelessGateways

func (s *Store) ListWirelessGateways() []*WirelessGateway

func (*Store) TagResource

func (s *Store) TagResource(arn string, tags map[string]string) *service.AWSError

func (*Store) UntagResource

func (s *Store) UntagResource(arn string, tagKeys []string) *service.AWSError

func (*Store) UpdateDestination

func (s *Store) UpdateDestination(name, expression, expressionType, description, roleArn string) (*Destination, *service.AWSError)

func (*Store) UpdateWirelessDevice

func (s *Store) UpdateWirelessDevice(id, name, destinationName, description string) (*WirelessDevice, *service.AWSError)

func (*Store) UpdateWirelessGateway

func (s *Store) UpdateWirelessGateway(id, name, description string) (*WirelessGateway, *service.AWSError)

type WirelessDevice

type WirelessDevice struct {
	Id              string
	Arn             string
	Name            string
	Type            string // Sidewalk | LoRaWAN
	DestinationName string
	Description     string
	LoRaWAN         map[string]any
	Sidewalk        map[string]any
	ThingArn        string
	CreationTime    time.Time
	Tags            map[string]string
}

type WirelessGateway

type WirelessGateway struct {
	Id                   string
	Arn                  string
	Name                 string
	Description          string
	LoRaWAN              map[string]any
	ThingArn             string
	CreationTime         time.Time
	LastUplinkReceivedAt *time.Time
	Tags                 map[string]string
}

Jump to

Keyboard shortcuts

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