Documentation ¶
Index ¶
- Constants
- type OrgRegistry
- func (r *OrgRegistry) AddOrg(orgName string, owner string, certificate string) (*orgpb.AddResponse, error)
- func (r *OrgRegistry) Close()
- func (r *OrgRegistry) GetOrg(orgName string) (*orgpb.GetByNameResponse, error)
- func (r *OrgRegistry) GetOrgs(ownerUUID string) (*orgpb.GetByUserResponse, error)
- func (r *OrgRegistry) RemoveOrgForUser(orgId string, userId string) (*orgpb.RemoveOrgForUserResponse, error)
- func (r *OrgRegistry) UpdateOrgToUser(orgId string, userId string) (*orgpb.UpdateOrgForUserResponse, error)
- type Users
- func (r *Users) AddUser(user *pbusers.User) (*pbusers.AddResponse, error)
- func (r *Users) Close()
- func (r *Users) DeactivateUser(userId string) error
- func (r *Users) Delete(userId string) error
- func (r *Users) Get(userId string) (*pbusers.GetResponse, error)
- func (r *Users) GetByAuthId(authId string) (*pbusers.GetResponse, error)
- func (r *Users) GetByEmail(email string) (*pbusers.GetResponse, error)
- func (r *Users) UpdateUser(userId string, user *pbusers.UserAttributes) (*pbusers.UpdateResponse, error)
- func (r *Users) Whoami(userId string) (*pbusers.WhoamiResponse, error)
Constants ¶
View Source
const DefaultNetworkName = "default"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrgRegistry ¶
type OrgRegistry struct {
// contains filtered or unexported fields
}
func NewOrgRegistry ¶
func NewOrgRegistry(orgHost string, timeout time.Duration) *OrgRegistry
func NewOrgRegistryFromClient ¶
func NewOrgRegistryFromClient(orgClient orgpb.OrgServiceClient) *OrgRegistry
func (*OrgRegistry) AddOrg ¶
func (r *OrgRegistry) AddOrg(orgName string, owner string, certificate string) (*orgpb.AddResponse, error)
func (*OrgRegistry) Close ¶
func (r *OrgRegistry) Close()
func (*OrgRegistry) GetOrg ¶
func (r *OrgRegistry) GetOrg(orgName string) (*orgpb.GetByNameResponse, error)
func (*OrgRegistry) GetOrgs ¶
func (r *OrgRegistry) GetOrgs(ownerUUID string) (*orgpb.GetByUserResponse, error)
func (*OrgRegistry) RemoveOrgForUser ¶
func (r *OrgRegistry) RemoveOrgForUser(orgId string, userId string) (*orgpb.RemoveOrgForUserResponse, error)
func (*OrgRegistry) UpdateOrgToUser ¶
func (r *OrgRegistry) UpdateOrgToUser(orgId string, userId string) (*orgpb.UpdateOrgForUserResponse, error)
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func NewUserRegistryFromClient ¶
func NewUserRegistryFromClient(client pbusers.UserServiceClient) *Users
func (*Users) DeactivateUser ¶
func (*Users) GetByAuthId ¶
func (r *Users) GetByAuthId(authId string) (*pbusers.GetResponse, error)
func (*Users) GetByEmail ¶
func (r *Users) GetByEmail(email string) (*pbusers.GetResponse, error)
func (*Users) UpdateUser ¶
func (r *Users) UpdateUser(userId string, user *pbusers.UserAttributes) (*pbusers.UpdateResponse, error)
Click to show internal directories.
Click to hide internal directories.