external

package
v0.0.0-...-cd06882 Latest Latest
Warning

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

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

Documentation

Overview

Package external manages external services and connectors for the Device Lease service.

Index

Constants

View Source
const DeviceEventsTopicName string = "device-events-v1"
View Source
const UFSServiceURI = "ufs.api.cr.dev"

Variables

This section is empty.

Functions

func NewBQClient

func NewBQClient(ctx context.Context, cloudProject string) (*bigquery.Client, error)

NewBQClient creates a BQ client based on cloud project.

func NewUFSClient

func NewUFSClient(ctx context.Context, ufsHostname string) (ufsAPI.FleetClient, error)

NewUFSClient creates a new client to access UFS.

func SetupContext

func SetupContext(ctx context.Context, namespace string) context.Context

SetupContext sets up context with a UFS namespace.

Types

type PubSubClient

type PubSubClient struct {
	Client                  *pubsub.Client
	DeviceEventsPubSubTopic *pubsub.Topic
}

func NewPubSubClient

func NewPubSubClient(ctx context.Context, cloudProject string) (PubSubClient, error)

NewPubSubClient creates a PubSub client based on cloud project.

Jump to

Keyboard shortcuts

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