is

package
v3.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package is abstracts the Identity Server Gateway functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster interface {
	GetPeerConn(ctx context.Context, role ttnpb.ClusterRole, ids cluster.EntityIdentifiers) (*grpc.ClientConn, error)
}

Cluster provides cluster operations.

type IS

type IS struct {
	Cluster
	// contains filtered or unexported fields
}

IS exposes Identity Server functions.

func New

func New(c Cluster) *IS

New returns a new IS.

func (IS) AssertGatewayRights

func (is IS) AssertGatewayRights(ctx context.Context, ids ttnpb.GatewayIdentifiers, required ...ttnpb.Right) error

AssertGatewayRights implements EntityRegistry.

func (IS) Get

func (is IS) Get(ctx context.Context, req *ttnpb.GetGatewayRequest, opts ...grpc.CallOption) (*ttnpb.Gateway, error)

Get implements EntityRegistry.

func (IS) GetIdentifiersForEUI

func (is IS) GetIdentifiersForEUI(ctx context.Context, req *ttnpb.GetGatewayIdentifiersForEUIRequest, opts ...grpc.CallOption) (*ttnpb.GatewayIdentifiers, error)

GetIdentifiersForEUI implements EntityRegistry.

func (IS) SetGatewayRegistry

func (is IS) SetGatewayRegistry(_ context.Context, registry ttnpb.GatewayRegistryClient)

SetGatewayRegistry overrides the gateway registry of the IS.

func (IS) Update

func (is IS) Update(ctx context.Context, req *ttnpb.UpdateGatewayRequest, opts ...grpc.CallOption) (*ttnpb.Gateway, error)

Update the gateway, changing the fields specified by the field mask to the provided values.

Jump to

Keyboard shortcuts

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