client

package
v0.0.0-...-d3aa9f9 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 NewUsers

func NewUsers(host string, timeout time.Duration) *Users

func (*Users) AddUser

func (r *Users) AddUser(user *pbusers.User) (*pbusers.AddResponse, error)

func (*Users) Close

func (r *Users) Close()

func (*Users) DeactivateUser

func (r *Users) DeactivateUser(userId string) error

func (*Users) Delete

func (r *Users) Delete(userId string) error

func (*Users) Get

func (r *Users) Get(userId string) (*pbusers.GetResponse, error)

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)

func (*Users) Whoami

func (r *Users) Whoami(userId string) (*pbusers.WhoamiResponse, error)

Jump to

Keyboard shortcuts

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