aclclient

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 13 Imported by: 0

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) (aclHeadId string, err error)
	CancelJoin(ctx context.Context, spaceId string) (err error)
	CancelRemoveSelf(ctx context.Context, spaceId string) (err 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)
	RevokeAllInvites(ctx context.Context) (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()

Directories

Path Synopsis
Package mock_aclclient is a generated GoMock package.
Package mock_aclclient is a generated GoMock package.

Jump to

Keyboard shortcuts

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