Documentation ¶
Index ¶
Constants ¶
View Source
const CName = "common.acl.aclclient"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AclJoiningClient ¶
type AclJoiningClient interface { app.Component AclGetRecords(ctx context.Context, spaceId, aclHead string) ([]*consensusproto.RawRecordWithId, error) RequestJoin(ctx context.Context, spaceId string, payload list.RequestJoinPayload) error }
func NewAclJoiningClient ¶
func NewAclJoiningClient() AclJoiningClient
type AclSpaceClient ¶
type AclSpaceClient interface { app.Component GenerateInvite() (list.InviteResult, error) StopSharing(ctx context.Context, readKeyChange list.ReadKeyChangePayload) (err error) AddRecord(ctx context.Context, consRec *consensusproto.RawRecord) error RemoveAccounts(ctx context.Context, payload list.AccountRemovePayload) error AcceptRequest(ctx context.Context, payload list.RequestAcceptPayload) error DeclineRequest(ctx context.Context, identity crypto.PubKey) (err error) CancelRequest(ctx context.Context) (err error) ChangePermissions(ctx context.Context, permChange list.PermissionChangesPayload) (err error) RequestSelfRemove(ctx context.Context) (err error) RevokeInvite(ctx context.Context, inviteRecordId string) (err error) AddAccounts(ctx context.Context, add list.AccountsAddPayload) (err error) }
func NewAclSpaceClient ¶
func NewAclSpaceClient() AclSpaceClient
type GetRecordsResponse ¶
type GetRecordsResponse struct {
Records []*consensusproto.RawRecordWithId
}
type InviteResponse ¶
type InviteResponse struct { InviteRec *consensusproto.RawRecord InviteKey crypto.PrivKey }
type InviteSaveFunc ¶
type InviteSaveFunc func()
Click to show internal directories.
Click to hide internal directories.