iotam

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iotam

type Iotam struct {
	URL                *url.URL
	AllowUnknownFields bool
}

func New

func New(iotaURL string) (*Iotam, error)

New IoTA API manager

func (*Iotam) DeleteDevices

func (i *Iotam) DeleteDevices(client keystone.HTTPClient, headers http.Header, devices []fiware.Device) error

DeleteDevices sends a DELETE request for a set of Devices

func (*Iotam) DeleteServices

func (i *Iotam) DeleteServices(client keystone.HTTPClient, headers http.Header, services []fiware.Service) error

DeleteServices sends a DELETE request for a set of Services

func (*Iotam) Devices

func (i *Iotam) Devices(client keystone.HTTPClient, headers http.Header) ([]fiware.Device, error)

Devices reads the list of devices from the IoTA Manager

func (*Iotam) PostDevices

func (i *Iotam) PostDevices(client keystone.HTTPClient, headers http.Header, devices []fiware.Device) error

PostDevices sends a POST request for a set of Devices

func (*Iotam) PostServices

func (i *Iotam) PostServices(client keystone.HTTPClient, headers http.Header, services []fiware.Service) error

PostServices sends a POST request for a set of Services

func (*Iotam) Services

func (i *Iotam) Services(client keystone.HTTPClient, headers http.Header) ([]fiware.Service, error)

Services reads the list of groups from the IoTA Manager

Jump to

Keyboard shortcuts

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