directory

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package directory contains protobuf types for directory users.

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetEmail

func (x *Group) GetEmail() string

func (*Group) GetId

func (x *Group) GetId() string

func (*Group) GetName

func (x *Group) GetName() string

func (*Group) GetVersion

func (x *Group) GetVersion() 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 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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetGroupIds

func (x *User) GetGroupIds() []string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetVersion

func (x *User) GetVersion() string

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

Jump to

Keyboard shortcuts

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