devicemanagerclient

package
v0.0.0-...-b0621e5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package devicemanagerclient is the client lib for device manager.

Index

Constants

View Source
const (
	// DMDevURL is the URL of the dev leasing service.
	DMDevURL = client.DMDevURL
	// DMProdURL is the URL of the prod leasing service.
	DMProdURL = client.DMProdURL
	// DMLeasesPort is the port to use to lease stuff.
	DMLeasesPort = client.DMLeasesPort
)

Variables

This section is empty.

Functions

func ListDevicesIter

func ListDevicesIter(ctx context.Context, leaser api.DeviceLeaseServiceClient, request *api.ListDevicesRequest) iter.Seq2[*api.Device, error]

ListDevicesIter lists devices.

func MapDevices

func MapDevices(devices []*api.Device) []*fleetconsolerpc.Device

Types

type Client

type Client struct {
	Leaser api.DeviceLeaseServiceClient
}

Client is a client for Device Manager.

func NewClient

func NewClient(ctx context.Context, rpcAuthorityKind auth.RPCAuthorityKind, hostname string, port int, insecure bool) (*Client, error)

NewClient makes a new client.

Jump to

Keyboard shortcuts

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