package profile import "context" type Storage interface { CreateIdentityProfile(ctx context.Context, profile Profile) (err error) // CreateDeviceLogin(ctx context.Context, deviceLogin, subject string) (err error) // GetSubjectFromDeviceLogin(ctx context.Context, deviceLogin string) (subject string, err error) GetIdentityProfile(ctx context.Context, subject string) (profile *Profile, err error) ExpireIdentityProfile(ctx context.Context, subject string) (err error) CreateAlias(ctx context.Context, alias, subject string) (err error) GetSubjectFromAlias(ctx context.Context, alias string) (subject string, err error) AddAliasToProfile(c context.Context, userProfile *Profile) (err error) IsOffline() bool }