accountspb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package accountspb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	GroupAbilities_name = map[int32]string{
		0: "None",
		1: "CanManageResourcesAccess",
		2: "CanCreateGroup",
	}
	GroupAbilities_value = map[string]int32{
		"None":                     0,
		"CanManageResourcesAccess": 1,
		"CanCreateGroup":           2,
	}
)

Enum value maps for GroupAbilities.

View Source
var (
	ResourceAccess_name = map[int32]string{
		0:  "Denied",
		1:  "Read",
		2:  "Update",
		4:  "Delete",
		8:  "Share",
		7:  "Default",
		15: "Admin",
	}
	ResourceAccess_value = map[string]int32{
		"Denied":  0,
		"Read":    1,
		"Update":  2,
		"Delete":  4,
		"Share":   8,
		"Default": 7,
		"Admin":   15,
	}
)

Enum value maps for ResourceAccess.

View Source
var File_users_proto protoreflect.FileDescriptor

Functions

func RegisterUsersServiceHandler

func RegisterUsersServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUsersServiceHandler registers the http handlers for service UsersService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUsersServiceHandlerClient

func RegisterUsersServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UsersServiceClient) error

RegisterUsersServiceHandlerClient registers the http handlers for service UsersService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UsersServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UsersServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UsersServiceClient" to call the correct interceptors.

func RegisterUsersServiceHandlerFromEndpoint

func RegisterUsersServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUsersServiceHandlerFromEndpoint is same as RegisterUsersServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUsersServiceHandlerServer

func RegisterUsersServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UsersServiceServer) error

RegisterUsersServiceHandlerServer registers the http handlers for service UsersService to "mux". UnaryRPC :call UsersServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUsersServiceHandlerFromEndpoint instead.

func RegisterUsersServiceServer

func RegisterUsersServiceServer(s grpc.ServiceRegistrar, srv UsersServiceServer)

Types

type AddUserRequest

type AddUserRequest struct {
	User         *User          `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Capabilities GroupAbilities `protobuf:"varint,2,opt,name=capabilities,proto3,enum=GroupAbilities" json:"capabilities,omitempty"`
	// contains filtered or unexported fields
}

func (*AddUserRequest) Descriptor deprecated

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

Deprecated: Use AddUserRequest.ProtoReflect.Descriptor instead.

func (*AddUserRequest) GetCapabilities

func (x *AddUserRequest) GetCapabilities() GroupAbilities

func (*AddUserRequest) GetUser

func (x *AddUserRequest) GetUser() *User

func (*AddUserRequest) ProtoMessage

func (*AddUserRequest) ProtoMessage()

func (*AddUserRequest) ProtoReflect

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

func (*AddUserRequest) Reset

func (x *AddUserRequest) Reset()

func (*AddUserRequest) String

func (x *AddUserRequest) String() string

type AddUserResponse

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

func (*AddUserResponse) Descriptor deprecated

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

Deprecated: Use AddUserResponse.ProtoReflect.Descriptor instead.

func (*AddUserResponse) ProtoMessage

func (*AddUserResponse) ProtoMessage()

func (*AddUserResponse) ProtoReflect

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

func (*AddUserResponse) Reset

func (x *AddUserResponse) Reset()

func (*AddUserResponse) String

func (x *AddUserResponse) String() string

type CreateGroupRequest

type CreateGroupRequest struct {
	Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateGroupRequest) Descriptor deprecated

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

Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead.

func (*CreateGroupRequest) GetGroup

func (x *CreateGroupRequest) GetGroup() *Group

func (*CreateGroupRequest) ProtoMessage

func (*CreateGroupRequest) ProtoMessage()

func (*CreateGroupRequest) ProtoReflect

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

func (*CreateGroupRequest) Reset

func (x *CreateGroupRequest) Reset()

func (*CreateGroupRequest) String

func (x *CreateGroupRequest) String() string

type CreateGroupResponse

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

func (*CreateGroupResponse) Descriptor deprecated

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

Deprecated: Use CreateGroupResponse.ProtoReflect.Descriptor instead.

func (*CreateGroupResponse) ProtoMessage

func (*CreateGroupResponse) ProtoMessage()

func (*CreateGroupResponse) ProtoReflect

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

func (*CreateGroupResponse) Reset

func (x *CreateGroupResponse) Reset()

func (*CreateGroupResponse) String

func (x *CreateGroupResponse) String() string

type DeleteGroupRequest

type DeleteGroupRequest struct {
	GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteGroupRequest) Descriptor deprecated

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

Deprecated: Use DeleteGroupRequest.ProtoReflect.Descriptor instead.

func (*DeleteGroupRequest) GetGroupPath

func (x *DeleteGroupRequest) GetGroupPath() string

func (*DeleteGroupRequest) ProtoMessage

func (*DeleteGroupRequest) ProtoMessage()

func (*DeleteGroupRequest) ProtoReflect

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

func (*DeleteGroupRequest) Reset

func (x *DeleteGroupRequest) Reset()

func (*DeleteGroupRequest) String

func (x *DeleteGroupRequest) String() string

type DeleteGroupResponse

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

func (*DeleteGroupResponse) Descriptor deprecated

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

Deprecated: Use DeleteGroupResponse.ProtoReflect.Descriptor instead.

func (*DeleteGroupResponse) ProtoMessage

func (*DeleteGroupResponse) ProtoMessage()

func (*DeleteGroupResponse) ProtoReflect

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

func (*DeleteGroupResponse) Reset

func (x *DeleteGroupResponse) Reset()

func (*DeleteGroupResponse) String

func (x *DeleteGroupResponse) String() string

type DeleteUserRequest

type DeleteUserRequest struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetUser

func (x *DeleteUserRequest) GetUser() *User

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type DeleteUserResponse

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

func (*DeleteUserResponse) Descriptor deprecated

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

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect

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

func (*DeleteUserResponse) Reset

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (x *DeleteUserResponse) String() string

type GetGroupRequest

type GetGroupRequest struct {
	GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGroupRequest) Descriptor deprecated

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

Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead.

func (*GetGroupRequest) GetGroupPath

func (x *GetGroupRequest) GetGroupPath() string

func (*GetGroupRequest) ProtoMessage

func (*GetGroupRequest) ProtoMessage()

func (*GetGroupRequest) ProtoReflect

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

func (*GetGroupRequest) Reset

func (x *GetGroupRequest) Reset()

func (*GetGroupRequest) String

func (x *GetGroupRequest) String() string

type GetGroupResponse

type GetGroupResponse struct {
	Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGroupResponse) Descriptor deprecated

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

Deprecated: Use GetGroupResponse.ProtoReflect.Descriptor instead.

func (*GetGroupResponse) GetGroup

func (x *GetGroupResponse) GetGroup() *Group

func (*GetGroupResponse) ProtoMessage

func (*GetGroupResponse) ProtoMessage()

func (*GetGroupResponse) ProtoReflect

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

func (*GetGroupResponse) Reset

func (x *GetGroupResponse) Reset()

func (*GetGroupResponse) String

func (x *GetGroupResponse) String() string

type GetUserResourcesAccessPolicyRequest

type GetUserResourcesAccessPolicyRequest struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResourcesAccessPolicyRequest) Descriptor deprecated

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

Deprecated: Use GetUserResourcesAccessPolicyRequest.ProtoReflect.Descriptor instead.

func (*GetUserResourcesAccessPolicyRequest) GetOwner

func (*GetUserResourcesAccessPolicyRequest) ProtoMessage

func (*GetUserResourcesAccessPolicyRequest) ProtoMessage()

func (*GetUserResourcesAccessPolicyRequest) ProtoReflect

func (*GetUserResourcesAccessPolicyRequest) Reset

func (*GetUserResourcesAccessPolicyRequest) String

type GetUserResourcesAccessPolicyResponse

type GetUserResourcesAccessPolicyResponse struct {
	Access int32 `protobuf:"varint,1,opt,name=access,proto3" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResourcesAccessPolicyResponse) Descriptor deprecated

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

Deprecated: Use GetUserResourcesAccessPolicyResponse.ProtoReflect.Descriptor instead.

func (*GetUserResourcesAccessPolicyResponse) GetAccess

func (*GetUserResourcesAccessPolicyResponse) ProtoMessage

func (*GetUserResourcesAccessPolicyResponse) ProtoMessage()

func (*GetUserResourcesAccessPolicyResponse) ProtoReflect

func (*GetUserResourcesAccessPolicyResponse) Reset

func (*GetUserResourcesAccessPolicyResponse) String

type GetUserStreamRequest

type GetUserStreamRequest struct {
	GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserStreamRequest) Descriptor deprecated

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

Deprecated: Use GetUserStreamRequest.ProtoReflect.Descriptor instead.

func (*GetUserStreamRequest) GetGroupPath

func (x *GetUserStreamRequest) GetGroupPath() string

func (*GetUserStreamRequest) ProtoMessage

func (*GetUserStreamRequest) ProtoMessage()

func (*GetUserStreamRequest) ProtoReflect

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

func (*GetUserStreamRequest) Reset

func (x *GetUserStreamRequest) Reset()

func (*GetUserStreamRequest) String

func (x *GetUserStreamRequest) String() string

type Group

type Group struct {
	Path        string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Label       string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	CreatedAt   int64  `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	CreatedBy   string `protobuf:"bytes,5,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	// contains filtered or unexported fields
}

func (*Group) Descriptor deprecated

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

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetCreatedAt

func (x *Group) GetCreatedAt() int64

func (*Group) GetCreatedBy

func (x *Group) GetCreatedBy() string

func (*Group) GetDescription

func (x *Group) GetDescription() string

func (*Group) GetLabel

func (x *Group) GetLabel() string

func (*Group) GetPath

func (x *Group) GetPath() string

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

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

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

type GroupAbilities

type GroupAbilities int32
const (
	GroupAbilities_None                     GroupAbilities = 0
	GroupAbilities_CanManageResourcesAccess GroupAbilities = 1
	GroupAbilities_CanCreateGroup           GroupAbilities = 2
)

func (GroupAbilities) Descriptor

func (GroupAbilities) Enum

func (x GroupAbilities) Enum() *GroupAbilities

func (GroupAbilities) EnumDescriptor deprecated

func (GroupAbilities) EnumDescriptor() ([]byte, []int)

Deprecated: Use GroupAbilities.Descriptor instead.

func (GroupAbilities) Number

func (GroupAbilities) String

func (x GroupAbilities) String() string

func (GroupAbilities) Type

type ListSubGroupRequest

type ListSubGroupRequest struct {
	GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"`
	Offset    uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSubGroupRequest) Descriptor deprecated

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

Deprecated: Use ListSubGroupRequest.ProtoReflect.Descriptor instead.

func (*ListSubGroupRequest) GetGroupPath

func (x *ListSubGroupRequest) GetGroupPath() string

func (*ListSubGroupRequest) GetOffset

func (x *ListSubGroupRequest) GetOffset() uint32

func (*ListSubGroupRequest) ProtoMessage

func (*ListSubGroupRequest) ProtoMessage()

func (*ListSubGroupRequest) ProtoReflect

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

func (*ListSubGroupRequest) Reset

func (x *ListSubGroupRequest) Reset()

func (*ListSubGroupRequest) String

func (x *ListSubGroupRequest) String() string

type ListSubGroupResponse

type ListSubGroupResponse struct {
	Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	Offset uint32   `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Total  uint32   `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSubGroupResponse) Descriptor deprecated

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

Deprecated: Use ListSubGroupResponse.ProtoReflect.Descriptor instead.

func (*ListSubGroupResponse) GetGroups

func (x *ListSubGroupResponse) GetGroups() []*Group

func (*ListSubGroupResponse) GetOffset

func (x *ListSubGroupResponse) GetOffset() uint32

func (*ListSubGroupResponse) GetTotal

func (x *ListSubGroupResponse) GetTotal() uint32

func (*ListSubGroupResponse) ProtoMessage

func (*ListSubGroupResponse) ProtoMessage()

func (*ListSubGroupResponse) ProtoReflect

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

func (*ListSubGroupResponse) Reset

func (x *ListSubGroupResponse) Reset()

func (*ListSubGroupResponse) String

func (x *ListSubGroupResponse) String() string

type ListUsersRequest

type ListUsersRequest struct {
	GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"`
	Offset    uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersRequest) Descriptor deprecated

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetGroupPath

func (x *ListUsersRequest) GetGroupPath() string

func (*ListUsersRequest) GetOffset

func (x *ListUsersRequest) GetOffset() uint32

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

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

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

type ListUsersResponse

type ListUsersResponse struct {
	Users  []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	Offset uint32  `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Total  uint32  `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersResponse) Descriptor deprecated

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

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetOffset

func (x *ListUsersResponse) GetOffset() uint32

func (*ListUsersResponse) GetTotal

func (x *ListUsersResponse) GetTotal() uint32

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

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

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

type MoveUserRequest

type MoveUserRequest struct {
	User      *User  `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	GroupPath string `protobuf:"bytes,2,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"`
	// contains filtered or unexported fields
}

func (*MoveUserRequest) Descriptor deprecated

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

Deprecated: Use MoveUserRequest.ProtoReflect.Descriptor instead.

func (*MoveUserRequest) GetGroupPath

func (x *MoveUserRequest) GetGroupPath() string

func (*MoveUserRequest) GetUser

func (x *MoveUserRequest) GetUser() *User

func (*MoveUserRequest) ProtoMessage

func (*MoveUserRequest) ProtoMessage()

func (*MoveUserRequest) ProtoReflect

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

func (*MoveUserRequest) Reset

func (x *MoveUserRequest) Reset()

func (*MoveUserRequest) String

func (x *MoveUserRequest) String() string

type MoveUserResponse

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

func (*MoveUserResponse) Descriptor deprecated

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

Deprecated: Use MoveUserResponse.ProtoReflect.Descriptor instead.

func (*MoveUserResponse) ProtoMessage

func (*MoveUserResponse) ProtoMessage()

func (*MoveUserResponse) ProtoReflect

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

func (*MoveUserResponse) Reset

func (x *MoveUserResponse) Reset()

func (*MoveUserResponse) String

func (x *MoveUserResponse) String() string

type ResourceAccess

type ResourceAccess int32
const (
	ResourceAccess_Denied  ResourceAccess = 0
	ResourceAccess_Read    ResourceAccess = 1
	ResourceAccess_Update  ResourceAccess = 2
	ResourceAccess_Delete  ResourceAccess = 4
	ResourceAccess_Share   ResourceAccess = 8
	ResourceAccess_Default ResourceAccess = 7
	ResourceAccess_Admin   ResourceAccess = 15
)

func (ResourceAccess) Descriptor

func (ResourceAccess) Enum

func (x ResourceAccess) Enum() *ResourceAccess

func (ResourceAccess) EnumDescriptor deprecated

func (ResourceAccess) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResourceAccess.Descriptor instead.

func (ResourceAccess) Number

func (ResourceAccess) String

func (x ResourceAccess) String() string

func (ResourceAccess) Type

type StreamSubGroupsRequest

type StreamSubGroupsRequest struct {
	GroupPath string `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamSubGroupsRequest) Descriptor deprecated

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

Deprecated: Use StreamSubGroupsRequest.ProtoReflect.Descriptor instead.

func (*StreamSubGroupsRequest) GetGroupPath

func (x *StreamSubGroupsRequest) GetGroupPath() string

func (*StreamSubGroupsRequest) ProtoMessage

func (*StreamSubGroupsRequest) ProtoMessage()

func (*StreamSubGroupsRequest) ProtoReflect

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

func (*StreamSubGroupsRequest) Reset

func (x *StreamSubGroupsRequest) Reset()

func (*StreamSubGroupsRequest) String

func (x *StreamSubGroupsRequest) String() string

type UnimplementedUsersServiceServer

type UnimplementedUsersServiceServer struct {
}

UnimplementedUsersServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUsersServiceServer) AddUser

func (UnimplementedUsersServiceServer) CreateGroup

func (UnimplementedUsersServiceServer) DeleteGroup

func (UnimplementedUsersServiceServer) DeleteUser

func (UnimplementedUsersServiceServer) DeleteUserSession

func (UnimplementedUsersServiceServer) GetGroup

func (UnimplementedUsersServiceServer) GetUserStream

func (UnimplementedUsersServiceServer) ListSubGroup

func (UnimplementedUsersServiceServer) ListUsers

func (UnimplementedUsersServiceServer) MoveUser

type UnsafeUsersServiceServer

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

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

type User

type User struct {
	GroupPath       string         `protobuf:"bytes,1,opt,name=group_path,json=groupPath,proto3" json:"group_path,omitempty"`
	Name            string         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Role            uint32         `protobuf:"varint,3,opt,name=role,proto3" json:"role,omitempty"`
	Capabilities    GroupAbilities `protobuf:"varint,4,opt,name=capabilities,proto3,enum=GroupAbilities" json:"capabilities,omitempty"`
	ResourcesAccess ResourceAccess `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCapabilities

func (x *User) GetCapabilities() GroupAbilities

func (*User) GetGroupPath

func (x *User) GetGroupPath() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetResourcesAccess

func (x *User) GetResourcesAccess() ResourceAccess

func (*User) GetRole

func (x *User) GetRole() uint32

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UsersServiceClient

UsersServiceClient is the client API for UsersService 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.

type UsersServiceServer

UsersServiceServer is the server API for UsersService service. All implementations must embed UnimplementedUsersServiceServer for forward compatibility

type UsersService_DeleteUserSessionClient

type UsersService_DeleteUserSessionClient interface {
	Send(*User) error
	Recv() (*User, error)
	grpc.ClientStream
}

type UsersService_DeleteUserSessionServer

type UsersService_DeleteUserSessionServer interface {
	Send(*User) error
	Recv() (*User, error)
	grpc.ServerStream
}

type UsersService_GetUserStreamClient

type UsersService_GetUserStreamClient interface {
	Recv() (*User, error)
	grpc.ClientStream
}

type UsersService_GetUserStreamServer

type UsersService_GetUserStreamServer interface {
	Send(*User) error
	grpc.ServerStream
}

type UsersService_StreamSubGroupsClient

type UsersService_StreamSubGroupsClient interface {
	Recv() (*Group, error)
	grpc.ClientStream
}

type UsersService_StreamSubGroupsServer

type UsersService_StreamSubGroupsServer interface {
	Send(*Group) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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