Documentation ¶
Overview ¶
Package directory contains protobuf types for directory users.
Index ¶
- Variables
- 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 User
Constants ¶
This section is empty.
Variables ¶
View Source
var File_directory_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
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 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"` // 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) 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.