Documentation ¶
Overview ¶
Package is abstracts the Identity Server Gateway functions.
Index ¶
- type Cluster
- type IS
- func (is IS) AssertGatewayRights(ctx context.Context, ids ttnpb.GatewayIdentifiers, required ...ttnpb.Right) error
- func (is IS) Get(ctx context.Context, req *ttnpb.GetGatewayRequest, opts ...grpc.CallOption) (*ttnpb.Gateway, error)
- func (is IS) GetIdentifiersForEUI(ctx context.Context, req *ttnpb.GetGatewayIdentifiersForEUIRequest, ...) (*ttnpb.GatewayIdentifiers, error)
- func (is IS) SetGatewayRegistry(_ context.Context, registry ttnpb.GatewayRegistryClient)
- func (is IS) Update(ctx context.Context, req *ttnpb.UpdateGatewayRequest, opts ...grpc.CallOption) (*ttnpb.Gateway, error)
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 (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.
Click to show internal directories.
Click to hide internal directories.