user

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: BSD-3-Clause Imports: 36 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterAuthorizationMaps

func FilterAuthorizationMaps(s []user.AuthorizationMap) []user.AuthorizationMap

func FilterOwnerOf added in v0.9.8

func FilterOwnerOf(s user.OwnerOf, verifiedEmails []user.EmailAddress) user.OwnerOf

func FilterValidatedEmails added in v0.9.15

func FilterValidatedEmails(authorizedMails []user.AuthorizationMap, verifiedMails []user.EmailAddress) []user.AuthorizationMap

FilterValidatedEmail removes email addresses which are not validated

func FilterValidatedPhones added in v0.9.15

func FilterValidatedPhones(authorizedPhones []user.AuthorizationMap, verifiedPhones []user.Phonenumber) []user.AuthorizationMap

FilterValidatedPhones removes phone numbers which are not validated

func UsersInterfaceRoutes

func UsersInterfaceRoutes(r *mux.Router, i UsersInterface)

UsersInterfaceRoutes is routing for /users root endpoint

Types

type ClientIDMiddleware added in v1.0.0

type ClientIDMiddleware struct {
	security.OAuth2Middleware
}

ClientIDMiddleware is oauth2 middleware that sets the callers client_id on the request

func (*ClientIDMiddleware) Handler added in v1.0.0

func (om *ClientIDMiddleware) Handler(next http.Handler) http.Handler

Handler return HTTP handler representation of this middleware

type Oauth2oauth_2_0Middleware

type Oauth2oauth_2_0Middleware struct {
	security.OAuth2Middleware
}

Oauth2oauth_2_0Middleware is oauth2 middleware for oauth_2_0

func (*Oauth2oauth_2_0Middleware) Handler

Handler return HTTP handler representation of this middleware

type UserIdentifierMiddleware added in v1.0.0

type UserIdentifierMiddleware struct{}

UserIdentifierMiddleware is the representation of a userIdentifierMiddleware

func NewUserIdentifierMiddleware added in v1.0.0

func NewUserIdentifierMiddleware() *UserIdentifierMiddleware

NewUserIdentifierMiddleware creates a new userIdentifierMiddleware struct

func (*UserIdentifierMiddleware) Handler added in v1.0.0

func (uim *UserIdentifierMiddleware) Handler(next http.Handler) http.Handler

Handler return HTTP handler representation of this middleware replaces the useridentifier, in the {username} section of the url with the associated username, if any

type UsersAPI

type UsersAPI struct {
	SmsService                    communication.SMSService
	PhonenumberValidationService  *validation.IYOPhonenumberValidationService
	EmailService                  communication.EmailService
	EmailAddressValidationService *validation.IYOEmailAddressValidationService
}

UsersAPI is the actual implementation of the /users api

func (UsersAPI) AddAPIKey

func (api UsersAPI) AddAPIKey(w http.ResponseWriter, r *http.Request)

func (UsersAPI) AddPublicKey

func (api UsersAPI) AddPublicKey(w http.ResponseWriter, r *http.Request)

AddPublicKey Add a public key

func (UsersAPI) AddUserRegistryEntry

func (api UsersAPI) AddUserRegistryEntry(w http.ResponseWriter, r *http.Request)

AddUserRegistryEntry is the handler for POST /users/{username}/registry Adds a RegistryEntry to the user's registry, if the key is already used, it is overwritten.

func (UsersAPI) CreateAvatarFromImage added in v0.9.14

func (api UsersAPI) CreateAvatarFromImage(w http.ResponseWriter, r *http.Request)

CreateAVatarFromImage is the handler for POST /users/{username}/avatar/img/{label} Create a new avatar with the specified label from a provided image file

func (api UsersAPI) CreateAvatarFromLink(w http.ResponseWriter, r *http.Request)

CreateAvatarFromLink is the handler for POST /users/{username}/avatar/link create a new avatar with the specified label

func (UsersAPI) CreateSeeObject added in v0.9.15

func (api UsersAPI) CreateSeeObject(w http.ResponseWriter, r *http.Request)

func (UsersAPI) CreateUserBankAccount

func (api UsersAPI) CreateUserBankAccount(w http.ResponseWriter, r *http.Request)

CreateUserBankAccount is handler for POST /users/{username}/banks Create new bank account

func (UsersAPI) DeleteAPIKey

func (api UsersAPI) DeleteAPIKey(w http.ResponseWriter, r *http.Request)

func (UsersAPI) DeleteAddress

func (api UsersAPI) DeleteAddress(w http.ResponseWriter, r *http.Request)

DeleteAddress is the handler for DELETE /users/{username}/addresses/{label} Removes an address

func (UsersAPI) DeleteAuthorization

func (api UsersAPI) DeleteAuthorization(w http.ResponseWriter, r *http.Request)

DeleteAuthorization is the handler for DELETE /users/{username}/authorizations/{grantedTo} Remove the authorization for an organization, the granted organization will no longer have access the user's information.

func (UsersAPI) DeleteAvatar added in v0.9.14

func (api UsersAPI) DeleteAvatar(w http.ResponseWriter, r *http.Request)

DeleteAvatar is the handler for DELETE /users/{username}/avatar/{label} Delete the avatar with the specified label

func (UsersAPI) DeleteDigitalAssetAddress

func (api UsersAPI) DeleteDigitalAssetAddress(w http.ResponseWriter, r *http.Request)

DeleteDigitalAssetAddress is the handler for DELETE /users/{username}/digitalwallet/{label}

func (UsersAPI) DeleteEmailAddress

func (api UsersAPI) DeleteEmailAddress(w http.ResponseWriter, r *http.Request)

DeleteEmailAddress is the handler for DELETE /users/{username}/emailaddresses/{label} Removes an email address

func (UsersAPI) DeleteFacebookAccount

func (api UsersAPI) DeleteFacebookAccount(w http.ResponseWriter, r *http.Request)

DeleteFacebookAccount is the handler for DELETE /users/{username}/facebook Delete the associated facebook account

func (UsersAPI) DeleteGithubAccount

func (api UsersAPI) DeleteGithubAccount(w http.ResponseWriter, r *http.Request)

DeleteGithubAccount is the handler for DELETE /users/{username}/github Delete the associated Github account.

func (UsersAPI) DeletePhonenumber

func (api UsersAPI) DeletePhonenumber(w http.ResponseWriter, r *http.Request)

DeletePhonenumber is the handler for DELETE /users/{username}/phonenumbers/{label} Removes a phonenumber

func (UsersAPI) DeletePublicKey

func (api UsersAPI) DeletePublicKey(w http.ResponseWriter, r *http.Request)

DeletePublicKey Deletes a public key

func (UsersAPI) DeleteUserBankAccount

func (api UsersAPI) DeleteUserBankAccount(w http.ResponseWriter, r *http.Request)

DeleteUserBankAccount is handler for DELETE /users/{username}/banks/{label} Delete a BankAccount

func (UsersAPI) DeleteUserRegistryEntry

func (api UsersAPI) DeleteUserRegistryEntry(w http.ResponseWriter, r *http.Request)

DeleteUserRegistryEntry is the handler for DELETE /users/{username}/registry/{key} Removes a RegistryEntry from the user's registry

func (UsersAPI) GenerateIyoID added in v1.0.0

func (api UsersAPI) GenerateIyoID(w http.ResponseWriter, r *http.Request)

GenerateIyoID is the handler for POST /users/{username}/identifiers Generate a new iyo id for a user and authorized party

func (UsersAPI) GetAPIKey

func (api UsersAPI) GetAPIKey(w http.ResponseWriter, r *http.Request)

func (UsersAPI) GetAllAuthorizations

func (api UsersAPI) GetAllAuthorizations(w http.ResponseWriter, r *http.Request)

GetAllAuthorizations is the handler for GET /users/{username}/authorizations Get the list of authorizations.

func (UsersAPI) GetAuthorization

func (api UsersAPI) GetAuthorization(w http.ResponseWriter, r *http.Request)

GetAuthorization is the handler for GET /users/{username}/authorizations/{grantedTo} Get the authorization for a specific organization.

func (UsersAPI) GetAvatarImage added in v0.9.14

func (api UsersAPI) GetAvatarImage(w http.ResponseWriter, r *http.Request)

GetAvatarImage is the handler for GET /users/avatar/img/{hash} Get the avatar file associated with this id

func (UsersAPI) GetAvatars added in v0.9.14

func (api UsersAPI) GetAvatars(w http.ResponseWriter, r *http.Request)

GetAvatar is the handler for GET /users/{username}/avatar List all avatars for the user

func (UsersAPI) GetDigitalAssetAddress

func (api UsersAPI) GetDigitalAssetAddress(w http.ResponseWriter, r *http.Request)

GetDigitalAssetAddress It is handler for GET /users/{username}/digitalwallet/{label}

func (UsersAPI) GetDigitalWallet

func (api UsersAPI) GetDigitalWallet(w http.ResponseWriter, r *http.Request)

GetDigitalWallet is handler for GET /users/{username}/digitalwallet

func (UsersAPI) GetKeyStore added in v0.9.15

func (api UsersAPI) GetKeyStore(w http.ResponseWriter, r *http.Request)

GetKeyStore returns all the publickeys written to the user by an organizaton

func (UsersAPI) GetKeyStoreKey added in v0.9.15

func (api UsersAPI) GetKeyStoreKey(w http.ResponseWriter, r *http.Request)

GetKeyStoreKey returns all specific publickey written to the user by an organizaton

func (UsersAPI) GetNotifications

func (api UsersAPI) GetNotifications(w http.ResponseWriter, r *http.Request)

GetNotifications is handler for GET /users/{username}/notifications Get the list of notifications, these are pending invitations or approvals

func (UsersAPI) GetPublicKey

func (api UsersAPI) GetPublicKey(w http.ResponseWriter, r *http.Request)

GetPublicKey Get the public key associated with a label

func (UsersAPI) GetSeeObject added in v0.9.15

func (api UsersAPI) GetSeeObject(w http.ResponseWriter, r *http.Request)

func (UsersAPI) GetSeeObjects added in v0.9.15

func (api UsersAPI) GetSeeObjects(w http.ResponseWriter, r *http.Request)

func (UsersAPI) GetTOTPSecret

func (api UsersAPI) GetTOTPSecret(w http.ResponseWriter, r *http.Request)

GetTOTPSecret is the handler for GET /users/{username}/totp/ Gets the users TOTP secret, or a new one if it doesn't exist yet

func (UsersAPI) GetTwoFAMethods

func (api UsersAPI) GetTwoFAMethods(w http.ResponseWriter, r *http.Request)

GetTwoFAMethods is the handler for GET /users/{username}/twofamethods Get the possible two factor authentication methods

func (UsersAPI) GetUser

func (api UsersAPI) GetUser(w http.ResponseWriter, r *http.Request)

GetUser is handler for GET /users/{username}

func (UsersAPI) GetUserAddressByLabel

func (api UsersAPI) GetUserAddressByLabel(w http.ResponseWriter, r *http.Request)

GetUserAddressByLabel is handler for GET /users/{username}/addresses/{label}

func (UsersAPI) GetUserAddresses

func (api UsersAPI) GetUserAddresses(w http.ResponseWriter, r *http.Request)

GetUserAddresses is handler for GET /users/{username}/addresses

func (UsersAPI) GetUserBankAccountByLabel

func (api UsersAPI) GetUserBankAccountByLabel(w http.ResponseWriter, r *http.Request)

GetUserBankAccountByLabel is handler for GET /users/{username}/banks/{label}

func (UsersAPI) GetUserBankAccounts

func (api UsersAPI) GetUserBankAccounts(w http.ResponseWriter, r *http.Request)

GetUserBankAccounts It is handler for GET /users/{username}/banks

func (UsersAPI) GetUserContracts

func (api UsersAPI) GetUserContracts(w http.ResponseWriter, r *http.Request)

GetUserContracts is handler for GET /users/{username}/contracts Get the contracts where the user is 1 of the parties. Order descending by date.

func (UsersAPI) GetUserInformation

func (api UsersAPI) GetUserInformation(w http.ResponseWriter, r *http.Request)

GetUserInformation is the handler for GET /users/{username}/info

func (UsersAPI) GetUserPhoneNumbers

func (api UsersAPI) GetUserPhoneNumbers(w http.ResponseWriter, r *http.Request)

GetUserPhoneNumbers is the handler for GET /users/{username}/phonenumbers

func (UsersAPI) GetUserPhonenumberByLabel

func (api UsersAPI) GetUserPhonenumberByLabel(w http.ResponseWriter, r *http.Request)

GetUserPhonenumberByLabel is the handler for GET /users/{username}/phonenumbers/{label}

func (UsersAPI) GetUserRegistryEntry

func (api UsersAPI) GetUserRegistryEntry(w http.ResponseWriter, r *http.Request)

GetUserRegistryEntry is the handler for GET /users/{username}/registry/{key} Get a RegistryEntry from the user's registry.

func (UsersAPI) LeaveOrganization

func (api UsersAPI) LeaveOrganization(w http.ResponseWriter, r *http.Request)

LeaveOrganization is the handler for DELETE /users/{username}/organizations/{globalid}/leave Removes the user from an organization

func (UsersAPI) ListAPIKeys

func (api UsersAPI) ListAPIKeys(w http.ResponseWriter, r *http.Request)

func (UsersAPI) ListEmailAddresses

func (api UsersAPI) ListEmailAddresses(w http.ResponseWriter, r *http.Request)

ListEmailAddresses is the handler for GET /users/{username}/emailaddresses

func (UsersAPI) ListIyoIDs added in v1.0.0

func (api UsersAPI) ListIyoIDs(w http.ResponseWriter, r *http.Request)

ListIyoIDs is the handler for GET /users/{username}/identifiers Lists the iyo ids a party has generated for a user

func (UsersAPI) ListPublicKeys

func (api UsersAPI) ListPublicKeys(w http.ResponseWriter, r *http.Request)

ListPublicKeys lists all public keys

func (UsersAPI) ListUserRegistry

func (api UsersAPI) ListUserRegistry(w http.ResponseWriter, r *http.Request)

ListUserRegistry is the handler for GET /users/{username}/registry Lists the Registry entries

func (UsersAPI) LookupIyoID added in v1.0.0

func (api UsersAPI) LookupIyoID(w http.ResponseWriter, r *http.Request)

LookupIyoID is the handler for GET /users/identifiers/{identifier} Lookup the username behind an iyo id

func (UsersAPI) Post

func (api UsersAPI) Post(w http.ResponseWriter, r *http.Request)

It is handler for POST /users

func (UsersAPI) RegisterNewAddress

func (api UsersAPI) RegisterNewAddress(w http.ResponseWriter, r *http.Request)

RegisterNewAddress is the handler for POST /users/{username}/addresses Register a new address

func (UsersAPI) RegisterNewContract

func (api UsersAPI) RegisterNewContract(w http.ResponseWriter, r *http.Request)

RegisterNewContract is handler for GET /users/{username}/contracts

func (UsersAPI) RegisterNewDigitalAssetAddress

func (api UsersAPI) RegisterNewDigitalAssetAddress(w http.ResponseWriter, r *http.Request)

RegisterNewDigitalAssetAddress is the handler for POST /users/{username}/digitalwallet Register a new address

func (UsersAPI) RegisterNewEmailAddress

func (api UsersAPI) RegisterNewEmailAddress(w http.ResponseWriter, r *http.Request)

RegisterNewEmailAddress is the handler for POST /users/{username}/emailaddresses Register a new email address

func (UsersAPI) RegisterNewPhonenumber

func (api UsersAPI) RegisterNewPhonenumber(w http.ResponseWriter, r *http.Request)

RegisterNewPhonenumber is the handler for POST /users/{username}/phonenumbers Register a new phonenumber

func (UsersAPI) RemoveTOTP

func (api UsersAPI) RemoveTOTP(w http.ResponseWriter, r *http.Request)

RemoveTOTP is the handler for DELETE /users/{username}/totp/ Removes TOTP authentication for this user, if possible.

func (UsersAPI) SaveKeyStoreKey added in v0.9.15

func (api UsersAPI) SaveKeyStoreKey(w http.ResponseWriter, r *http.Request)

SaveKeyStoreKey returns all the publickeys written to the user by an organizaton

func (UsersAPI) SetupTOTP

func (api UsersAPI) SetupTOTP(w http.ResponseWriter, r *http.Request)

SetupTOTP is the handler for POST /users/{username}/totp/ Configures TOTP authentication for this user

func (UsersAPI) SignSeeObject added in v0.9.15

func (api UsersAPI) SignSeeObject(w http.ResponseWriter, r *http.Request)

func (UsersAPI) UpdateAPIKey

func (api UsersAPI) UpdateAPIKey(w http.ResponseWriter, r *http.Request)

func (UsersAPI) UpdateAddress

func (api UsersAPI) UpdateAddress(w http.ResponseWriter, r *http.Request)

UpdateAddress is the handler for PUT /users/{username}/addresses/{label} Update the label and/or value of an existing address.

func (UsersAPI) UpdateAuthorization

func (api UsersAPI) UpdateAuthorization(w http.ResponseWriter, r *http.Request)

UpdateAuthorization is the handler for PUT /users/{username}/authorizations/{grantedTo} Modify which information an organization is able to see.

func (UsersAPI) UpdateAvatarFile added in v0.9.14

func (api UsersAPI) UpdateAvatarFile(w http.ResponseWriter, r *http.Request)

UpdateAvatarFile is the handler for PUT /users/{username}/avatar/{label}/to/{newlabel} Update the avatar and possibly the avatar file stored on itsyou.online

func (api UsersAPI) UpdateAvatarLink(w http.ResponseWriter, r *http.Request)

UpdateAvatarLink is the handler for PUT /users/{username}/avatar/{label} Update the avatar and possibly the link to the avatar

func (UsersAPI) UpdateDigitalAssetAddress

func (api UsersAPI) UpdateDigitalAssetAddress(w http.ResponseWriter, r *http.Request)

UpdateDigitalAssetAddress is the handler for PUT /users/{username}/digitalwallet/{label} Update the label and/or value of an existing address.

func (UsersAPI) UpdateEmailAddress

func (api UsersAPI) UpdateEmailAddress(w http.ResponseWriter, r *http.Request)

UpdateEmailAddress is the handler for PUT /users/{username}/emailaddresses/{label} Updates the label and/or value of an email address

func (UsersAPI) UpdateName

func (api UsersAPI) UpdateName(w http.ResponseWriter, r *http.Request)

UpdateName is the handler for PUT /users/{username}/name

func (UsersAPI) UpdatePassword

func (api UsersAPI) UpdatePassword(w http.ResponseWriter, r *http.Request)

UpdatePassword is the handler for PUT /users/{username}/password

func (UsersAPI) UpdatePhonenumber

func (api UsersAPI) UpdatePhonenumber(w http.ResponseWriter, r *http.Request)

UpdatePhonenumber is the handler for PUT /users/{username}/phonenumbers/{label} Update the label and/or value of an existing phonenumber.

func (UsersAPI) UpdatePublicKey

func (api UsersAPI) UpdatePublicKey(w http.ResponseWriter, r *http.Request)

UpdatePublicKey Update the label and/or value of an existing public key.

func (UsersAPI) UpdateSeeObject added in v0.9.15

func (api UsersAPI) UpdateSeeObject(w http.ResponseWriter, r *http.Request)

func (UsersAPI) UpdateUserBankAccount

func (api UsersAPI) UpdateUserBankAccount(w http.ResponseWriter, r *http.Request)

UpdateUserBankAccount is handler for PUT /users/{username}/banks/{label} Update an existing bankaccount and label.

func (UsersAPI) ValidateEmailAddress

func (api UsersAPI) ValidateEmailAddress(w http.ResponseWriter, r *http.Request)

Validate email address is the handler for GET /users/{username}/emailaddress/{label}/validate

func (UsersAPI) ValidatePhoneNumber

func (api UsersAPI) ValidatePhoneNumber(w http.ResponseWriter, r *http.Request)

ValidatePhoneNumber is the handler for POST /users/{username}/phonenumbers/{label}/validate

func (UsersAPI) VerifyPhoneNumber

func (api UsersAPI) VerifyPhoneNumber(w http.ResponseWriter, r *http.Request)

VerifyPhoneNumber is the handler for PUT /users/{username}/phonenumbers/{label}/validate

type UsersInterface

type UsersInterface interface {
	// Create a new user
	Post(http.ResponseWriter, *http.Request)
	// UpdateName is the handler for PUT / users/{username}/name
	UpdateName(http.ResponseWriter, *http.Request)
	// UpdatePassword is the handler for PUT /users/{username}/password
	UpdatePassword(http.ResponseWriter, *http.Request)
	// GetUserPhoneNumbers is the handler for GET /users/{username}/phonenumbers
	GetUserPhoneNumbers(http.ResponseWriter, *http.Request)
	// RegisterNewPhonenumber is the handler for POST /users/{username}/phonenumbers
	// Register a new phonenumber
	RegisterNewPhonenumber(http.ResponseWriter, *http.Request)
	// ValidatePhoneNumber is the handler for POST /users/{username}/phonenumbers/{label}/validate
	// Send sms verification to phone number
	ValidatePhoneNumber(http.ResponseWriter, *http.Request)
	// VerifyPhoneNumber is the handler for PUT /users/{username}/phonenumbers/{label}/validate
	// Verifies a phone number
	VerifyPhoneNumber(http.ResponseWriter, *http.Request)
	// GetUserPhonenumberByLabel is the handler for GET /users/{username}/phonenumbers/{label}
	GetUserPhonenumberByLabel(http.ResponseWriter, *http.Request)
	// UpdatePhonenumber is the handler for PUT /users/{username}/phonenumbers/{label}
	// Update the label and/or value of an existing phonenumber.
	UpdatePhonenumber(http.ResponseWriter, *http.Request)
	// DeletePhonenumber is the handler for DELETE /users/{username}/phonenumbers/{label}
	// Removes a phonenumber
	DeletePhonenumber(http.ResponseWriter, *http.Request)
	// GetUserBankAccounts is the handler for GET /users/{username}/banks
	GetUserBankAccounts(http.ResponseWriter, *http.Request)
	// CreateUserBankAccount is the handler for POST /users/{username}/banks
	// Create new bank account
	CreateUserBankAccount(http.ResponseWriter, *http.Request)
	// GetNotifications is the handler for GET /users/{username}/notifications
	// Get the list of notifications, these are pending invitations or approvals
	GetNotifications(http.ResponseWriter, *http.Request)
	// GetUser is the handler for GET /users/{username}
	GetUser(http.ResponseWriter, *http.Request)
	// DeleteFacebookAccount is the handler for DELETE /users/{username}/facebook
	// Delete the associated facebook account
	DeleteFacebookAccount(http.ResponseWriter, *http.Request)
	// RegisterNewEmailAddress is the handler for POST /users/{username}/emailaddresses
	// Register a new email address
	RegisterNewEmailAddress(http.ResponseWriter, *http.Request)
	// UpdateEmailAddress is the handler for PUT /users/{username}/emailaddresses/{label}
	// Updates the label and/or value of an email address
	UpdateEmailAddress(http.ResponseWriter, *http.Request)
	// DeleteEmailAddress is the handler for DELETE /users/{username}/emailaddresses/{label}
	// Removes an email address
	DeleteEmailAddress(http.ResponseWriter, *http.Request)
	ValidateEmailAddress(http.ResponseWriter, *http.Request)
	ListEmailAddresses(http.ResponseWriter, *http.Request)
	// DeleteGithubAccount is the handler for DELETE /users/{username}/github
	// Unlink Github Account
	DeleteGithubAccount(http.ResponseWriter, *http.Request)
	// GetUserInformation is the handler for GET /users/{username}/info
	GetUserInformation(http.ResponseWriter, *http.Request)
	// GetUserAddresses is the handler for GET /users/{username}/addresses
	GetUserAddresses(http.ResponseWriter, *http.Request)
	// RegisterNewAddress is the handler for POST /users/{username}/addresses
	// Register a new address
	RegisterNewAddress(http.ResponseWriter, *http.Request)
	// GetUserAddressByLabel is the handler for GET /users/{username}/addresses/{label}
	GetUserAddressByLabel(http.ResponseWriter, *http.Request)
	// UpdateAddress is the handler for PUT /users/{username}/addresses/{label}
	// Update the label and/or value of an existing address.
	UpdateAddress(http.ResponseWriter, *http.Request)
	// DeleteAddress is the handler for DELETE /users/{username}/addresses/{label}
	// Removes an address
	DeleteAddress(http.ResponseWriter, *http.Request)
	// GetUserBankAccountByLabel is the handler for GET /users/{username}/banks/{label}
	GetUserBankAccountByLabel(http.ResponseWriter, *http.Request)
	// UpdateUserBankAccount is the handler for PUT /users/{username}/banks/{label}
	// Update an existing bankaccount and label.
	UpdateUserBankAccount(http.ResponseWriter, *http.Request)
	// DeleteUserBankAccount is the handler for DELETE /users/{username}/banks/{label}
	// Delete a BankAccount
	DeleteUserBankAccount(http.ResponseWriter, *http.Request)
	// GetUserContracts is the handler for GET /users/{username}/contracts
	// Get the contracts where the user is 1 of the parties. Order descending by date.
	GetUserContracts(http.ResponseWriter, *http.Request)
	// RegisterNewContract is the handler for POST /user/{username}/contracts
	RegisterNewContract(http.ResponseWriter, *http.Request)
	// GetAllAuthorizations is the handler for GET /users/{username}/authorizations
	// Get the list of authorizations.
	GetAllAuthorizations(http.ResponseWriter, *http.Request)
	// GetAuthorization is the handler for GET /users/{username}/authorizations/{grantedTo}
	// Get the authorization for a specific organization.
	GetAuthorization(http.ResponseWriter, *http.Request)
	// UpdateAuthorization is the handler for PUT /users/{username}/authorizations/{grantedTo}
	// Modify which information an organization is able to see.
	UpdateAuthorization(http.ResponseWriter, *http.Request)
	// DeleteAuthorization is the handler for DELETE /users/{username}/authorizations/{grantedTo}
	// Remove the authorization for an organization, the granted organization will no longer
	// have access the user's information.
	DeleteAuthorization(http.ResponseWriter, *http.Request)
	// GetSeeObjects is the handler for GET /users/{username}/see
	// Get a list of all see objects.
	GetSeeObjects(http.ResponseWriter, *http.Request)
	// GetSeeObject is the handler for GET /users/{username}/see/{uniqueid}/{globalid}
	GetSeeObject(http.ResponseWriter, *http.Request)
	// CreateSeeObject is the handler for POST /users/{username}/see
	CreateSeeObject(http.ResponseWriter, *http.Request)
	// UpdateSeeObject is the handler for PUT /users/{username}/see/{uniqueid}/{globalid}
	UpdateSeeObject(http.ResponseWriter, *http.Request)
	// SignSeeObject is the handler for PUT /users/{username}/see/{uniqueid}/{globalid}/sign/{version}
	SignSeeObject(http.ResponseWriter, *http.Request)
	// AddAPIKey Add an API Key
	AddAPIKey(http.ResponseWriter, *http.Request)
	GetAPIKey(http.ResponseWriter, *http.Request)
	UpdateAPIKey(http.ResponseWriter, *http.Request)
	DeleteAPIKey(http.ResponseWriter, *http.Request)
	ListAPIKeys(http.ResponseWriter, *http.Request)
	// AddPublicKey Add a public key
	AddPublicKey(http.ResponseWriter, *http.Request)
	// GetPublicKey Get the public key associated with a label
	GetPublicKey(http.ResponseWriter, *http.Request)
	// UpdatePublicKey Updates the label and or key of an existing public key
	UpdatePublicKey(http.ResponseWriter, *http.Request)
	// DeletePublicKey Deletes a public key
	DeletePublicKey(http.ResponseWriter, *http.Request)
	// ListPublicKeys Lists all public keys
	ListPublicKeys(http.ResponseWriter, *http.Request)
	// GetKeyStore is the handler for GET /users/{username}/keystore
	// Returns all the publickeys written to the user by an organizaton
	GetKeyStore(http.ResponseWriter, *http.Request)
	// GetKeyStoreKey is the handler for GET /users/{username}/keystore{label}
	// Returns all specific publickey written to the user by an organizaton
	GetKeyStoreKey(http.ResponseWriter, *http.Request)
	// SaveKeyStoreKey is the handler for POST /users/{username}/keystore
	// Returns all the publickeys written to the user by an organizaton
	SaveKeyStoreKey(http.ResponseWriter, *http.Request)
	// GetTwoFAMethods is the handler for GET /users/{username}/twofamethods
	// Get the possible two factor authentication methods
	GetTwoFAMethods(http.ResponseWriter, *http.Request)
	// GetTOTPSecret is the handler for GET /users/{username}/totp
	GetTOTPSecret(http.ResponseWriter, *http.Request)
	// SetupTOTP is the handler for POST /users/{username}/totp
	SetupTOTP(http.ResponseWriter, *http.Request)
	// RemoveTOTP is the handler for DELETE /users/{username}/totp
	RemoveTOTP(http.ResponseWriter, *http.Request)
	GetDigitalWallet(http.ResponseWriter, *http.Request)
	RegisterNewDigitalAssetAddress(http.ResponseWriter, *http.Request)
	GetDigitalAssetAddress(http.ResponseWriter, *http.Request)
	UpdateDigitalAssetAddress(http.ResponseWriter, *http.Request)
	DeleteDigitalAssetAddress(http.ResponseWriter, *http.Request)
	// LeaveOrganization is the handler for DELETE /users/{username}/organizations/{globalid}/leave
	LeaveOrganization(http.ResponseWriter, *http.Request)

	// ListUserRegistry is the handler for GET /users/{username}/registry
	// Lists the Registry entries
	ListUserRegistry(http.ResponseWriter, *http.Request)
	// AddUserRegistryEntry is the handler for POST /users/{username}/registry
	// Adds a RegistryEntry to the user's registry, if the key is already used, it is overwritten.
	AddUserRegistryEntry(http.ResponseWriter, *http.Request)
	// GetUserRegistryEntry is the handler for GET /users/{username}/registry/{key}
	// Get a RegistryEntry from the user's registry.
	GetUserRegistryEntry(http.ResponseWriter, *http.Request)
	// DeleteUserRegistryEntry is the handler for DELETE /users/{username}/registry/{key}
	// Removes a RegistryEntry from the user's registry
	DeleteUserRegistryEntry(http.ResponseWriter, *http.Request)
	// GetAvatar is the handler for GET /users/{username}/avatar
	// List all avatars for the user
	GetAvatars(http.ResponseWriter, *http.Request)
	// GetAvatarImage is the handler for GET /users/avatar/img/{hash}
	// Get the avatar file associated with this id
	GetAvatarImage(http.ResponseWriter, *http.Request)
	// CreateAVatarFromImage is the handler for POST /users/{username}/avatar/img/{label}
	// Create a new avatar with the specified label from a provided image file
	CreateAvatarFromImage(http.ResponseWriter, *http.Request)
	// CreateAvatarFromLink is the handler for POST /users/{username}/avatar
	// Create a new avatar with the specified label from a link
	CreateAvatarFromLink(http.ResponseWriter, *http.Request)
	// DeleteAvatar is the handler for DELETE /users/{username}/avatar/{label}
	// Delete the avatar with the specified label
	DeleteAvatar(http.ResponseWriter, *http.Request)
	// UpdateAvatarFile is the handler for PUT /users/{username}/avatar/{label}/to/{newlabel}
	// Update the avatar and possibly the avatar file stored on itsyou.online
	UpdateAvatarFile(http.ResponseWriter, *http.Request)
	// UpdateAvatarLink is the handler for PUT /users/{username}/avatar/{label}
	// Update the avatar and possibly the link to the avatar
	UpdateAvatarLink(http.ResponseWriter, *http.Request)
	// ListIyoIds is the handler for GET /users/{username}/identifiers
	// Lists the iyo ids a party has generated for a user
	ListIyoIDs(http.ResponseWriter, *http.Request)
	// GenerateIyoID is the handler for POST /users/{username}/identifiers
	// Generate a new iyo id for a user and authorized party
	GenerateIyoID(http.ResponseWriter, *http.Request)
	// LookupIyoID is the handler for GET /users/{username}/identifiers/{identifier}
	// Lookup the username behind an iyo id
	LookupIyoID(http.ResponseWriter, *http.Request)
}

UsersInterface is interface for /users root endpoint

type Userview

type Userview struct {
	Addresses               []user.Address             `json:"addresses"`
	BankAccounts            []user.BankAccount         `json:"bankaccounts"`
	DigitalWallet           []user.DigitalAssetAddress `json:"digitalwallet"`
	EmailAddresses          []user.EmailAddress        `json:"emailaddresses"`
	ValidatedEmailAddresses []user.EmailAddress        `json:"validatedemailaddresses"`
	Facebook                user.FacebookAccount       `json:"facebook"`
	Github                  user.GithubAccount         `json:"github"`
	Organizations           []string                   `json:"organizations"`
	Phonenumbers            []user.Phonenumber         `json:"phonenumbers"`
	ValidatedPhonenumbers   []user.Phonenumber         `json:"validatedphonenumbers"`
	PublicKeys              []user.PublicKey           `json:"publicKeys"`
	Username                string                     `json:"username"`
	Firstname               string                     `json:"firstname"`
	Lastname                string                     `json:"lastname"`
	OwnerOf                 user.OwnerOf               `json:"ownerof"`
	Avatars                 []user.Avatar              `json:"avatar"`
}

Jump to

Keyboard shortcuts

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