Documentation ¶
Overview ¶
Package directory contains protobuf types for directory users.
Index ¶
- Variables
- func RegisterDirectoryServiceServer(s *grpc.Server, srv DirectoryServiceServer)
- type DirectoryServiceClient
- type DirectoryServiceServer
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetEmail() string
- func (x *Group) GetId() string
- func (x *Group) GetName() string
- func (x *Group) GetVersion() string
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- type Options
- type RefreshUserRequest
- func (*RefreshUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshUserRequest) GetAccessToken() string
- func (x *RefreshUserRequest) GetUserId() string
- func (*RefreshUserRequest) ProtoMessage()
- func (x *RefreshUserRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshUserRequest) Reset()
- func (x *RefreshUserRequest) String() string
- type UnimplementedDirectoryServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetDisplayName() string
- func (x *User) GetEmail() string
- func (x *User) GetGroupIds() []string
- func (x *User) GetId() string
- func (x *User) GetVersion() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_directory_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDirectoryServiceServer ¶ added in v0.11.0
func RegisterDirectoryServiceServer(s *grpc.Server, srv DirectoryServiceServer)
Types ¶
type DirectoryServiceClient ¶ added in v0.11.0
type DirectoryServiceClient interface {
RefreshUser(ctx context.Context, in *RefreshUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
DirectoryServiceClient is the client API for DirectoryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDirectoryServiceClient ¶ added in v0.11.0
func NewDirectoryServiceClient(cc grpc.ClientConnInterface) DirectoryServiceClient
type DirectoryServiceServer ¶ added in v0.11.0
type DirectoryServiceServer interface {
RefreshUser(context.Context, *RefreshUserRequest) (*emptypb.Empty, error)
}
DirectoryServiceServer is the server API for DirectoryService service.
type Group ¶
type Group struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func GetGroup ¶
func GetGroup(ctx context.Context, client databroker.DataBrokerServiceClient, groupID string) (*Group, error)
GetGroup gets a directory group from the databroker.
func (*Group) Descriptor
deprecated
func (*Group) GetVersion ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type Options ¶ added in v0.10.1
type Options struct { ServiceAccount string Provider string ProviderURL string ClientID string ClientSecret string QPS float64 }
Options are directory provider options.
type RefreshUserRequest ¶ added in v0.11.0
type RefreshUserRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshUserRequest) Descriptor
deprecated
added in
v0.11.0
func (*RefreshUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshUserRequest.ProtoReflect.Descriptor instead.
func (*RefreshUserRequest) GetAccessToken ¶ added in v0.11.0
func (x *RefreshUserRequest) GetAccessToken() string
func (*RefreshUserRequest) GetUserId ¶ added in v0.11.0
func (x *RefreshUserRequest) GetUserId() string
func (*RefreshUserRequest) ProtoMessage ¶ added in v0.11.0
func (*RefreshUserRequest) ProtoMessage()
func (*RefreshUserRequest) ProtoReflect ¶ added in v0.11.0
func (x *RefreshUserRequest) ProtoReflect() protoreflect.Message
func (*RefreshUserRequest) Reset ¶ added in v0.11.0
func (x *RefreshUserRequest) Reset()
func (*RefreshUserRequest) String ¶ added in v0.11.0
func (x *RefreshUserRequest) String() string
type UnimplementedDirectoryServiceServer ¶ added in v0.11.0
type UnimplementedDirectoryServiceServer struct { }
UnimplementedDirectoryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedDirectoryServiceServer) RefreshUser ¶ added in v0.11.0
func (*UnimplementedDirectoryServiceServer) RefreshUser(context.Context, *RefreshUserRequest) (*emptypb.Empty, error)
type User ¶
type User struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` GroupIds []string `protobuf:"bytes,3,rep,name=group_ids,json=groupIds,proto3" json:"group_ids,omitempty"` DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func GetUser ¶
func GetUser(ctx context.Context, client databroker.DataBrokerServiceClient, userID string) (*User, error)
GetUser gets a directory user from the databroker.
func (*User) Descriptor
deprecated
func (*User) GetDisplayName ¶ added in v0.11.0
func (*User) GetGroupIds ¶
func (*User) GetVersion ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.