client

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Roles

type Roles struct {
	RoleClient  rolesrv.RolesService
	PermsClient permsrv.PermissionsService
	Permissions *permclient.Permissions
	Logger      *zap.Logger
}

func (Roles) AddFilter

func (r Roles) AddFilter(ctx context.Context, sender, filterName, filterDescription string) string

func (Roles) AddMember

func (r Roles) AddMember(ctx context.Context, sender, user, filter string) string

func (Roles) AddRole

func (r Roles) AddRole(ctx context.Context, sender, shortName, roleType, filterA, filterB string, joinable bool, roleName string, sig bool) string

func (Roles) AddSIG

func (r Roles) AddSIG(ctx context.Context, sender, sig string) string

func (Roles) GetMembers

func (r Roles) GetMembers(ctx context.Context, role string) string

func (Roles) GetSyncRequest

func (r Roles) GetSyncRequest(sender string, sendMessage bool) *rolesrv.SyncRequest

func (Roles) JoinSIG

func (r Roles) JoinSIG(ctx context.Context, sender, sig string) string

func (Roles) LeaveSIG

func (r Roles) LeaveSIG(ctx context.Context, sender, sig string) string

func (Roles) ListFilters

func (r Roles) ListFilters(ctx context.Context) string

func (Roles) ListMembers

func (r Roles) ListMembers(ctx context.Context, name string) string

func (Roles) ListRoles

func (r Roles) ListRoles(ctx context.Context, all, sig bool) string

func (Roles) ListUserRoles

func (r Roles) ListUserRoles(ctx context.Context, userid string, sig bool) string

func (Roles) MapName

func (r Roles) MapName(ctx context.Context, members []string) (buffer bytes.Buffer, names []string, err error)

func (Roles) RemoveAllMembers

func (r Roles) RemoveAllMembers(ctx context.Context, name, sender string) error

func (Roles) RemoveFilter

func (r Roles) RemoveFilter(ctx context.Context, sender, name string) string

func (Roles) RemoveMember

func (r Roles) RemoveMember(ctx context.Context, sender, user, filter string) string

func (Roles) RemoveRole

func (r Roles) RemoveRole(ctx context.Context, sender, shortName string, sig bool) string

func (Roles) RemoveSIG

func (r Roles) RemoveSIG(ctx context.Context, sender, sig string) string

func (Roles) RoleInfo

func (r Roles) RoleInfo(ctx context.Context, sender, shortName string, sig bool) string

func (Roles) Set

func (r Roles) Set(ctx context.Context, sender, name, key, value string) string

func (Roles) SyncMembers

func (r Roles) SyncMembers(ctx context.Context, sender string) string

func (Roles) SyncRoles

func (r Roles) SyncRoles(ctx context.Context, sender string) string

Jump to

Keyboard shortcuts

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