v1

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientsService_Authenticate_FullMethodName               = "/clients.v1.ClientsService/Authenticate"
	ClientsService_RetrieveEntity_FullMethodName             = "/clients.v1.ClientsService/RetrieveEntity"
	ClientsService_RetrieveEntities_FullMethodName           = "/clients.v1.ClientsService/RetrieveEntities"
	ClientsService_AddConnections_FullMethodName             = "/clients.v1.ClientsService/AddConnections"
	ClientsService_RemoveConnections_FullMethodName          = "/clients.v1.ClientsService/RemoveConnections"
	ClientsService_RemoveChannelConnections_FullMethodName   = "/clients.v1.ClientsService/RemoveChannelConnections"
	ClientsService_UnsetParentGroupFromClient_FullMethodName = "/clients.v1.ClientsService/UnsetParentGroupFromClient"
)

Variables

View Source
var ClientsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "clients.v1.ClientsService",
	HandlerType: (*ClientsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Authenticate",
			Handler:    _ClientsService_Authenticate_Handler,
		},
		{
			MethodName: "RetrieveEntity",
			Handler:    _ClientsService_RetrieveEntity_Handler,
		},
		{
			MethodName: "RetrieveEntities",
			Handler:    _ClientsService_RetrieveEntities_Handler,
		},
		{
			MethodName: "AddConnections",
			Handler:    _ClientsService_AddConnections_Handler,
		},
		{
			MethodName: "RemoveConnections",
			Handler:    _ClientsService_RemoveConnections_Handler,
		},
		{
			MethodName: "RemoveChannelConnections",
			Handler:    _ClientsService_RemoveChannelConnections_Handler,
		},
		{
			MethodName: "UnsetParentGroupFromClient",
			Handler:    _ClientsService_UnsetParentGroupFromClient_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "clients/v1/clients.proto",
}

ClientsService_ServiceDesc is the grpc.ServiceDesc for ClientsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_clients_v1_clients_proto protoreflect.FileDescriptor

Functions

func RegisterClientsServiceServer

func RegisterClientsServiceServer(s grpc.ServiceRegistrar, srv ClientsServiceServer)

Types

type AuthnReq

type AuthnReq struct {
	ClientId     string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthnReq) Descriptor deprecated

func (*AuthnReq) Descriptor() ([]byte, []int)

Deprecated: Use AuthnReq.ProtoReflect.Descriptor instead.

func (*AuthnReq) GetClientId

func (x *AuthnReq) GetClientId() string

func (*AuthnReq) GetClientSecret

func (x *AuthnReq) GetClientSecret() string

func (*AuthnReq) ProtoMessage

func (*AuthnReq) ProtoMessage()

func (*AuthnReq) ProtoReflect

func (x *AuthnReq) ProtoReflect() protoreflect.Message

func (*AuthnReq) Reset

func (x *AuthnReq) Reset()

func (*AuthnReq) String

func (x *AuthnReq) String() string

type AuthnRes

type AuthnRes struct {
	Authenticated bool   `protobuf:"varint,1,opt,name=authenticated,proto3" json:"authenticated,omitempty"`
	Id            string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthnRes) Descriptor deprecated

func (*AuthnRes) Descriptor() ([]byte, []int)

Deprecated: Use AuthnRes.ProtoReflect.Descriptor instead.

func (*AuthnRes) GetAuthenticated

func (x *AuthnRes) GetAuthenticated() bool

func (*AuthnRes) GetId

func (x *AuthnRes) GetId() string

func (*AuthnRes) ProtoMessage

func (*AuthnRes) ProtoMessage()

func (*AuthnRes) ProtoReflect

func (x *AuthnRes) ProtoReflect() protoreflect.Message

func (*AuthnRes) Reset

func (x *AuthnRes) Reset()

func (*AuthnRes) String

func (x *AuthnRes) String() string

type ClientsServiceClient

type ClientsServiceClient interface {
	// Authorize checks if the client is authorized to perform
	Authenticate(ctx context.Context, in *AuthnReq, opts ...grpc.CallOption) (*AuthnRes, error)
	RetrieveEntity(ctx context.Context, in *v1.RetrieveEntityReq, opts ...grpc.CallOption) (*v1.RetrieveEntityRes, error)
	RetrieveEntities(ctx context.Context, in *v1.RetrieveEntitiesReq, opts ...grpc.CallOption) (*v1.RetrieveEntitiesRes, error)
	AddConnections(ctx context.Context, in *v1.AddConnectionsReq, opts ...grpc.CallOption) (*v1.AddConnectionsRes, error)
	RemoveConnections(ctx context.Context, in *v1.RemoveConnectionsReq, opts ...grpc.CallOption) (*v1.RemoveConnectionsRes, error)
	RemoveChannelConnections(ctx context.Context, in *RemoveChannelConnectionsReq, opts ...grpc.CallOption) (*RemoveChannelConnectionsRes, error)
	UnsetParentGroupFromClient(ctx context.Context, in *UnsetParentGroupFromClientReq, opts ...grpc.CallOption) (*UnsetParentGroupFromClientRes, error)
}

ClientsServiceClient is the client API for ClientsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

ClientsService is a service that provides clients authorization functionalities for SuperMQ services.

type ClientsServiceServer

type ClientsServiceServer interface {
	// Authorize checks if the client is authorized to perform
	Authenticate(context.Context, *AuthnReq) (*AuthnRes, error)
	RetrieveEntity(context.Context, *v1.RetrieveEntityReq) (*v1.RetrieveEntityRes, error)
	RetrieveEntities(context.Context, *v1.RetrieveEntitiesReq) (*v1.RetrieveEntitiesRes, error)
	AddConnections(context.Context, *v1.AddConnectionsReq) (*v1.AddConnectionsRes, error)
	RemoveConnections(context.Context, *v1.RemoveConnectionsReq) (*v1.RemoveConnectionsRes, error)
	RemoveChannelConnections(context.Context, *RemoveChannelConnectionsReq) (*RemoveChannelConnectionsRes, error)
	UnsetParentGroupFromClient(context.Context, *UnsetParentGroupFromClientReq) (*UnsetParentGroupFromClientRes, error)
	// contains filtered or unexported methods
}

ClientsServiceServer is the server API for ClientsService service. All implementations must embed UnimplementedClientsServiceServer for forward compatibility.

ClientsService is a service that provides clients authorization functionalities for SuperMQ services.

type RemoveChannelConnectionsReq

type RemoveChannelConnectionsReq struct {
	ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveChannelConnectionsReq) Descriptor deprecated

func (*RemoveChannelConnectionsReq) Descriptor() ([]byte, []int)

Deprecated: Use RemoveChannelConnectionsReq.ProtoReflect.Descriptor instead.

func (*RemoveChannelConnectionsReq) GetChannelId

func (x *RemoveChannelConnectionsReq) GetChannelId() string

func (*RemoveChannelConnectionsReq) ProtoMessage

func (*RemoveChannelConnectionsReq) ProtoMessage()

func (*RemoveChannelConnectionsReq) ProtoReflect

func (*RemoveChannelConnectionsReq) Reset

func (x *RemoveChannelConnectionsReq) Reset()

func (*RemoveChannelConnectionsReq) String

func (x *RemoveChannelConnectionsReq) String() string

type RemoveChannelConnectionsRes

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

func (*RemoveChannelConnectionsRes) Descriptor deprecated

func (*RemoveChannelConnectionsRes) Descriptor() ([]byte, []int)

Deprecated: Use RemoveChannelConnectionsRes.ProtoReflect.Descriptor instead.

func (*RemoveChannelConnectionsRes) ProtoMessage

func (*RemoveChannelConnectionsRes) ProtoMessage()

func (*RemoveChannelConnectionsRes) ProtoReflect

func (*RemoveChannelConnectionsRes) Reset

func (x *RemoveChannelConnectionsRes) Reset()

func (*RemoveChannelConnectionsRes) String

func (x *RemoveChannelConnectionsRes) String() string

type UnimplementedClientsServiceServer

type UnimplementedClientsServiceServer struct{}

UnimplementedClientsServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedClientsServiceServer) AddConnections

func (UnimplementedClientsServiceServer) Authenticate

func (UnimplementedClientsServiceServer) RemoveChannelConnections

func (UnimplementedClientsServiceServer) RemoveConnections

func (UnimplementedClientsServiceServer) RetrieveEntities

func (UnimplementedClientsServiceServer) RetrieveEntity

type UnsafeClientsServiceServer

type UnsafeClientsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeClientsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClientsServiceServer will result in compilation errors.

type UnsetParentGroupFromClientReq

type UnsetParentGroupFromClientReq struct {
	ParentGroupId string `protobuf:"bytes,1,opt,name=parent_group_id,json=parentGroupId,proto3" json:"parent_group_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UnsetParentGroupFromClientReq) Descriptor deprecated

func (*UnsetParentGroupFromClientReq) Descriptor() ([]byte, []int)

Deprecated: Use UnsetParentGroupFromClientReq.ProtoReflect.Descriptor instead.

func (*UnsetParentGroupFromClientReq) GetParentGroupId

func (x *UnsetParentGroupFromClientReq) GetParentGroupId() string

func (*UnsetParentGroupFromClientReq) ProtoMessage

func (*UnsetParentGroupFromClientReq) ProtoMessage()

func (*UnsetParentGroupFromClientReq) ProtoReflect

func (*UnsetParentGroupFromClientReq) Reset

func (x *UnsetParentGroupFromClientReq) Reset()

func (*UnsetParentGroupFromClientReq) String

type UnsetParentGroupFromClientRes

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

func (*UnsetParentGroupFromClientRes) Descriptor deprecated

func (*UnsetParentGroupFromClientRes) Descriptor() ([]byte, []int)

Deprecated: Use UnsetParentGroupFromClientRes.ProtoReflect.Descriptor instead.

func (*UnsetParentGroupFromClientRes) ProtoMessage

func (*UnsetParentGroupFromClientRes) ProtoMessage()

func (*UnsetParentGroupFromClientRes) ProtoReflect

func (*UnsetParentGroupFromClientRes) Reset

func (x *UnsetParentGroupFromClientRes) Reset()

func (*UnsetParentGroupFromClientRes) String

Jump to

Keyboard shortcuts

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