biztiphereth

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tiphereth added in v0.0.2

type Tiphereth struct {
	// contains filtered or unexported fields
}

func NewTiphereth added in v0.0.2

func NewTiphereth(
	repo TipherethRepo,
	auth *libauth.Auth,
	supv *supervisor.Supervisor,
	mClient mapper.LibrarianMapperServiceClient,
	sClient *client.Searcher,
	pullAccount *libmq.Topic[modeltiphereth.PullAccountInfo],
	cron *libcron.Cron,
) (*Tiphereth, error)

func (*Tiphereth) CreateDefaultAdmin added in v0.0.6

func (t *Tiphereth) CreateDefaultAdmin(ctx context.Context, user *modeltiphereth.User)

func (*Tiphereth) CreateUser added in v0.0.6

func (t *Tiphereth) CreateUser(ctx context.Context, user *modeltiphereth.User) (*model.InternalID, *errors.Error)

func (*Tiphereth) GainUserPrivilege added in v0.2.0

func (t *Tiphereth) GainUserPrivilege(
	ctx context.Context,
	userID model.InternalID,
) (modeltiphereth.AccessToken, *errors.Error)

func (*Tiphereth) GetToken added in v0.0.2

func (*Tiphereth) GetUser added in v0.0.8

func (*Tiphereth) LinkAccount added in v0.0.2

func (*Tiphereth) ListLinkAccounts added in v0.0.10

func (t *Tiphereth) ListLinkAccounts(
	ctx context.Context, id model.InternalID,
) ([]*modeltiphereth.Account, *errors.Error)

func (*Tiphereth) ListPorters added in v0.2.0

func (t *Tiphereth) ListPorters(
	ctx context.Context,
	paging model.Paging,
) ([]*modeltiphereth.PorterInstance, int64, *errors.Error)

func (*Tiphereth) ListUsers added in v0.0.10

func (t *Tiphereth) ListUsers(
	ctx context.Context, paging model.Paging, types []libauth.UserType, statuses []modeltiphereth.UserStatus,
) ([]*modeltiphereth.User, int64, *errors.Error)

func (*Tiphereth) RefreshToken added in v0.0.2

func (*Tiphereth) UnLinkAccount added in v0.0.6

func (t *Tiphereth) UnLinkAccount(ctx context.Context, a modeltiphereth.Account) *errors.Error

func (*Tiphereth) UpdatePorterPrivilege added in v0.2.0

func (t *Tiphereth) UpdatePorterPrivilege(
	ctx context.Context,
	id model.InternalID,
	privilege *modeltiphereth.PorterInstancePrivilege,
) *errors.Error

func (*Tiphereth) UpdatePorterStatus added in v0.2.0

func (t *Tiphereth) UpdatePorterStatus(
	ctx context.Context,
	id model.InternalID,
	status modeltiphereth.PorterInstanceStatus,
) *errors.Error

func (*Tiphereth) UpdateUser added in v0.0.2

func (t *Tiphereth) UpdateUser(
	ctx context.Context, user *modeltiphereth.User, originPassword string,
) *errors.Error

Jump to

Keyboard shortcuts

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