client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceServiceClient

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

DeviceServiceClient handles communication with device-service

func NewDeviceServiceClient

func NewDeviceServiceClient(logger *zap.Logger) *DeviceServiceClient

NewDeviceServiceClient creates a new device service client

func (*DeviceServiceClient) GetDeviceSpaceByDeviceID

func (c *DeviceServiceClient) GetDeviceSpaceByDeviceID(ctx context.Context, deviceID, organization, spaceID string) (*DeviceSpaceInfo, error)

GetDeviceSpaceByDeviceID fetches device space information by device ID Uses the device-spaces endpoint with device_id query parameter

type DeviceSpaceInfo

type DeviceSpaceInfo struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	SpaceID   string `json:"space_id,omitempty"`
	SpaceSlug string `json:"space_slug,omitempty"`
}

DeviceSpaceInfo represents device space information from device-service

Jump to

Keyboard shortcuts

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