Documentation ¶
Index ¶
- type APIKeyLabel
- type Address
- type Authorization
- type AuthorizationMap
- type Avatar
- type BankAccount
- type Company
- type Contract
- type ContractSigningRequest
- type CreateGrantBody
- type Date
- type DigitalAssetAddress
- type DigitalWalletAuthorization
- type DnsAddress
- type EmailAddress
- type EnumJoinOrganizationInvitationMethod
- type EnumJoinOrganizationInvitationRole
- type EnumJoinOrganizationInvitationStatus
- type Error
- type FacebookAccount
- type GetOrganizationUsersResponseBody
- type GithubAccount
- type Grant
- type IsMember
- type Itsyouonline
- func (c *Itsyouonline) CreateJWTToken(scopes, auds []string) (string, error)
- func (c *Itsyouonline) GetOauth2AccessToken(clientID, clientSecret string, scopes, audiences []string) (string, error)
- func (c *Itsyouonline) LoginWithClientCredentials(clientID, clientSecret string) (username, globalid, token string, err error)
- type IyoID
- type JoinOrganizationInvitation
- type KeyData
- type KeyStoreKey
- type Label
- type LocalizedInfoText
- type Member
- type Membership
- type MissingScopes
- type Notification
- type Organization
- type OrganizationAPIKey
- type OrganizationLogo
- type OrganizationTreeItem
- type OrganizationUser
- type OrganizationsGlobalidApikeysLabelPutReqBody
- type OrganizationsGlobalidMembersPostReqBody
- type OrganizationsGlobalidOrgmembersIncludesuborgsPostReqBody
- type OrganizationsGlobalidOrgmembersPostReqBody
- type OrganizationsGlobalidOrgmembersPutReqBody
- type OrganizationsGlobalidOrgownersPostReqBody
- type OrganizationsService
- func (s *OrganizationsService) AcceptOrganizationInvite(invitingorg, role, globalid string, body JoinOrganizationInvitation, ...) (JoinOrganizationInvitation, *http.Response, error)
- func (s *OrganizationsService) AddIncludeSubOrgsOf(globalid string, body OrganizationsGlobalidOrgmembersIncludesuborgsPostReqBody, ...) (Organization, *http.Response, error)
- func (s *OrganizationsService) AddOrganizationMember(globalid string, body OrganizationsGlobalidMembersPostReqBody, ...) (JoinOrganizationInvitation, *http.Response, error)
- func (s *OrganizationsService) AddOrganizationOwner(globalid string, body Member, headers, queryParams map[string]interface{}) (JoinOrganizationInvitation, *http.Response, error)
- func (s *OrganizationsService) AddOrganizationRegistryEntry(globalid string, body RegistryEntry, ...) (RegistryEntry, *http.Response, error)
- func (s *OrganizationsService) AddRequiredScope(globalid string, body RequiredScope, ...) (*http.Response, error)
- func (s *OrganizationsService) CreateNewOrganization(body Organization, headers, queryParams map[string]interface{}) (Organization, *http.Response, error)
- func (s *OrganizationsService) CreateNewOrganizationAPIKey(globalid string, body OrganizationAPIKey, ...) (OrganizationAPIKey, *http.Response, error)
- func (s *OrganizationsService) CreateNewSubOrganization(globalid string, body Organization, ...) (Organization, *http.Response, error)
- func (s *OrganizationsService) CreateOrganizationContracty(globalid string, body Contract, headers, queryParams map[string]interface{}) (Contract, *http.Response, error)
- func (s *OrganizationsService) CreateOrganizationDns(globalid string, body DnsAddress, headers, queryParams map[string]interface{}) (DnsAddress, *http.Response, error)
- func (s *OrganizationsService) CreateUserGrant(globalid string, body CreateGrantBody, ...) (UserGrants, *http.Response, error)
- func (s *OrganizationsService) DeleteAllUserGrants(username, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) DeleteDescription(langkey, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) DeleteOrgMember(globalid2, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) DeleteOrgOwner(globalid2, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) DeleteOrganization(globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) DeleteOrganizationAPIKey(label, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) DeleteOrganizationDns(dnsname, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) DeleteOrganizationLogo(globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) DeleteOrganizationRegistryEntry(key, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) DeleteRequiredScope(requiredscope, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) DeleteUserGrant(grant, username, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) Get2faValidityTime(globalid string, headers, queryParams map[string]interface{}) (ValidityTime, *http.Response, error)
- func (s *OrganizationsService) GetDescription(langkey, globalid string, headers, queryParams map[string]interface{}) (LocalizedInfoText, *http.Response, error)
- func (s *OrganizationsService) GetDescriptionWithFallback(langkey, globalid string, headers, queryParams map[string]interface{}) (LocalizedInfoText, *http.Response, error)
- func (s *OrganizationsService) GetInvitations(globalid string, headers, queryParams map[string]interface{}) ([]JoinOrganizationInvitation, *http.Response, error)
- func (s *OrganizationsService) GetOrganization(globalid string, headers, queryParams map[string]interface{}) (Organization, *http.Response, error)
- func (s *OrganizationsService) GetOrganizationAPIKey(label, globalid string, headers, queryParams map[string]interface{}) (OrganizationAPIKey, *http.Response, error)
- func (s *OrganizationsService) GetOrganizationAPIKeyLabels(globalid string, headers, queryParams map[string]interface{}) ([]APIKeyLabel, *http.Response, error)
- func (s *OrganizationsService) GetOrganizationContracts(globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) GetOrganizationLogo(globalid string, headers, queryParams map[string]interface{}) (OrganizationLogo, *http.Response, error)
- func (s *OrganizationsService) GetOrganizationRegistryEntry(key, globalid string, headers, queryParams map[string]interface{}) (RegistryEntry, *http.Response, error)
- func (s *OrganizationsService) GetOrganizationTree(globalid string, headers, queryParams map[string]interface{}) (OrganizationTreeItem, *http.Response, error)
- func (s *OrganizationsService) GetOrganizationUsers(globalid string, headers, queryParams map[string]interface{}) (GetOrganizationUsersResponseBody, *http.Response, error)
- func (s *OrganizationsService) GetUserGrants(username, globalid string, headers, queryParams map[string]interface{}) (UserGrants, *http.Response, error)
- func (s *OrganizationsService) ListOrganizationRegistry(globalid string, headers, queryParams map[string]interface{}) ([]RegistryEntry, *http.Response, error)
- func (s *OrganizationsService) ListUsersWithGrant(grant, globalid string, headers, queryParams map[string]interface{}) ([]string, *http.Response, error)
- func (s *OrganizationsService) RejectOrganizationInvite(invitingorg, role, globalid string, ...) (*http.Response, error)
- func (s *OrganizationsService) RemoveIncludeSubOrgsOf(orgmember, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) RemoveOrganizationMember(username, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) RemoveOrganizationOwner(username, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) RemovePendingOrganizationInvitation(username, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) Set2faValidityTime(globalid string, body ValidityTime, ...) (*http.Response, error)
- func (s *OrganizationsService) SetDescription(globalid string, body LocalizedInfoText, ...) (LocalizedInfoText, *http.Response, error)
- func (s *OrganizationsService) SetOrgMember(globalid string, body OrganizationsGlobalidOrgmembersPostReqBody, ...) (*http.Response, error)
- func (s *OrganizationsService) SetOrgOwner(globalid string, body OrganizationsGlobalidOrgownersPostReqBody, ...) (*http.Response, error)
- func (s *OrganizationsService) SetOrganizationLogo(globalid string, body OrganizationLogo, ...) (OrganizationLogo, *http.Response, error)
- func (s *OrganizationsService) UpdateDescription(globalid string, body LocalizedInfoText, ...) (LocalizedInfoText, *http.Response, error)
- func (s *OrganizationsService) UpdateOrganizationAPIKey(label, globalid string, body OrganizationsGlobalidApikeysLabelPutReqBody, ...) (*http.Response, error)
- func (s *OrganizationsService) UpdateOrganizationDns(dnsname, globalid string, body DnsAddress, ...) (*http.Response, error)
- func (s *OrganizationsService) UpdateOrganizationMemberShip(globalid string, body Membership, headers, queryParams map[string]interface{}) (Organization, *http.Response, error)
- func (s *OrganizationsService) UpdateOrganizationOrgMemberShip(globalid string, body OrganizationsGlobalidOrgmembersPutReqBody, ...) (Organization, *http.Response, error)
- func (s *OrganizationsService) UpdateRequiredScope(requiredscope, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *OrganizationsService) UpdateUserGrant(globalid string, body UpdateGrantBody, ...) (UserGrants, *http.Response, error)
- func (s *OrganizationsService) UserIsMember(username, globalid string, headers, queryParams map[string]interface{}) (IsMember, *http.Response, error)
- type Ownerof
- type Party
- type PhoneNumberValidation
- type Phonenumber
- type PublicKey
- type RegistryEntry
- type RequiredScope
- type See
- type SeeVersion
- type SeeView
- type Signature
- type TOTPSecret
- type TwoFAMethods
- type UpdateGrantBody
- type User
- type UserAPIKey
- type UserGrants
- type UserOrganizations
- type UsersService
- func (s *UsersService) AcceptMembership(globalid, role, username string, body JoinOrganizationInvitation, ...) (JoinOrganizationInvitation, *http.Response, error)
- func (s *UsersService) AddApiKey(username string, body UsersUsernameApikeysPostReqBody, ...) (UserAPIKey, *http.Response, error)
- func (s *UsersService) AddPublicKey(username string, body PublicKey, headers, queryParams map[string]interface{}) (PublicKey, *http.Response, error)
- func (s *UsersService) AddUserRegistryEntry(username string, body RegistryEntry, ...) (RegistryEntry, *http.Response, error)
- func (s *UsersService) CreateAvatarFromImage(label, username string, headers, queryParams map[string]interface{}) (Avatar, *http.Response, error)
- func (s *UsersService) CreateAvatarFromLink(username string, body Avatar, headers, queryParams map[string]interface{}) (Avatar, *http.Response, error)
- func (s *UsersService) CreateSeeObject(username string, body SeeView, headers, queryParams map[string]interface{}) (SeeView, *http.Response, error)
- func (s *UsersService) CreateUser(body User, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) CreateUserBankAccount(username string, body BankAccount, headers, queryParams map[string]interface{}) (BankAccount, *http.Response, error)
- func (s *UsersService) CreateUserContract(username string, body Contract, headers, queryParams map[string]interface{}) (Contract, *http.Response, error)
- func (s *UsersService) DeleteAPIkey(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) DeleteAuthorization(grantedTo, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) DeleteAvatar(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) DeleteDigitalAssetAddress(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) DeleteEmailAddress(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) DeleteFacebookAccount(username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) DeleteGithubAccount(username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) DeletePublicKey(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) DeleteUserAddress(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) DeleteUserBankAccount(username, label string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) DeleteUserPhonenumber(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) DeleteUserRegistryEntry(key, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) GenerateIyoID(username string, headers, queryParams map[string]interface{}) (IyoID, *http.Response, error)
- func (s *UsersService) GetAPIkey(label, username string, headers, queryParams map[string]interface{}) (UserAPIKey, *http.Response, error)
- func (s *UsersService) GetAllAuthorizations(username string, headers, queryParams map[string]interface{}) ([]Authorization, *http.Response, error)
- func (s *UsersService) GetAuthorization(grantedTo, username string, headers, queryParams map[string]interface{}) (Authorization, *http.Response, error)
- func (s *UsersService) GetAvatarImage(hash string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) GetAvatars(username string, headers, queryParams map[string]interface{}) (Avatar, *http.Response, error)
- func (s *UsersService) GetDigitalAssetAddressByLabel(label, username string, headers, queryParams map[string]interface{}) (DigitalAssetAddress, *http.Response, error)
- func (s *UsersService) GetDigitalWallet(username string, headers, queryParams map[string]interface{}) ([]DigitalAssetAddress, *http.Response, error)
- func (s *UsersService) GetEmailAddresses(username string, headers, queryParams map[string]interface{}) ([]EmailAddress, *http.Response, error)
- func (s *UsersService) GetKeyStore(username string, headers, queryParams map[string]interface{}) ([]KeyStoreKey, *http.Response, error)
- func (s *UsersService) GetKeyStoreKey(label, username string, headers, queryParams map[string]interface{}) (KeyStoreKey, *http.Response, error)
- func (s *UsersService) GetNotifications(username string, headers, queryParams map[string]interface{}) (Notification, *http.Response, error)
- func (s *UsersService) GetPublicKey(label, username string, headers, queryParams map[string]interface{}) (PublicKey, *http.Response, error)
- func (s *UsersService) GetSeeObject(uniqueid, globalid, username string, ...) (See, *http.Response, error)
- func (s *UsersService) GetSeeObjects(username string, headers, queryParams map[string]interface{}) ([]SeeView, *http.Response, error)
- func (s *UsersService) GetTOTPSecret(username string, headers, queryParams map[string]interface{}) (TOTPSecret, *http.Response, error)
- func (s *UsersService) GetTwoFAMethods(username string, headers, queryParams map[string]interface{}) (TwoFAMethods, *http.Response, error)
- func (s *UsersService) GetUser(username string, headers, queryParams map[string]interface{}) (User, *http.Response, error)
- func (s *UsersService) GetUserAddressByLabel(label, username string, headers, queryParams map[string]interface{}) (Address, *http.Response, error)
- func (s *UsersService) GetUserAddresses(username string, headers, queryParams map[string]interface{}) ([]Address, *http.Response, error)
- func (s *UsersService) GetUserBankAccountByLabel(username, label string, headers, queryParams map[string]interface{}) (BankAccount, *http.Response, error)
- func (s *UsersService) GetUserBankAccounts(username string, headers, queryParams map[string]interface{}) ([]BankAccount, *http.Response, error)
- func (s *UsersService) GetUserContracts(username string, headers, queryParams map[string]interface{}) ([]Contract, *http.Response, error)
- func (s *UsersService) GetUserInformation(username string, headers, queryParams map[string]interface{}) (userview, *http.Response, error)
- func (s *UsersService) GetUserOrganizations(username string, headers, queryParams map[string]interface{}) (UserOrganizations, *http.Response, error)
- func (s *UsersService) GetUserPhoneNumbers(username string, headers, queryParams map[string]interface{}) ([]Phonenumber, *http.Response, error)
- func (s *UsersService) GetUserPhonenumberByLabel(label, username string, headers, queryParams map[string]interface{}) (Phonenumber, *http.Response, error)
- func (s *UsersService) GetUserRegistryEntry(key, username string, headers, queryParams map[string]interface{}) (RegistryEntry, *http.Response, error)
- func (s *UsersService) LeaveOrganization(globalid, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) ListAPIKeys(username string, headers, queryParams map[string]interface{}) ([]UserAPIKey, *http.Response, error)
- func (s *UsersService) ListIyoIds(username string, headers, queryParams map[string]interface{}) (IyoID, *http.Response, error)
- func (s *UsersService) ListPublicKeys(username string, headers, queryParams map[string]interface{}) ([]PublicKey, *http.Response, error)
- func (s *UsersService) ListUserRegistry(username string, headers, queryParams map[string]interface{}) ([]RegistryEntry, *http.Response, error)
- func (s *UsersService) LookupIyoID(identifier string, headers, queryParams map[string]interface{}) (IyoID, *http.Response, error)
- func (s *UsersService) RegisterNewDigitalAssetAddress(username string, body DigitalAssetAddress, ...) (DigitalAssetAddress, *http.Response, error)
- func (s *UsersService) RegisterNewEmailAddress(username string, body EmailAddress, ...) (EmailAddress, *http.Response, error)
- func (s *UsersService) RegisterNewUserAddress(username string, body Address, headers, queryParams map[string]interface{}) (Address, *http.Response, error)
- func (s *UsersService) RegisterNewUserPhonenumber(username string, body Phonenumber, headers, queryParams map[string]interface{}) (Phonenumber, *http.Response, error)
- func (s *UsersService) RejectMembership(globalid, role, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) RemoveTOTP(username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) SaveKeyStoreKey(username string, body KeyStoreKey, headers, queryParams map[string]interface{}) (KeyStoreKey, *http.Response, error)
- func (s *UsersService) SetupTOTP(username string, body TOTPSecret, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) SignSeeObject(version, uniqueid, globalid, username string, body SeeView, ...) (SeeView, *http.Response, error)
- func (s *UsersService) UpdateAPIkey(label, username string, body UsersUsernameApikeysLabelPutReqBody, ...) (*http.Response, error)
- func (s *UsersService) UpdateAuthorization(grantedTo, username string, body Authorization, ...) (*http.Response, error)
- func (s *UsersService) UpdateAvatarFile(newlabel, label, username string, headers, queryParams map[string]interface{}) (Avatar, *http.Response, error)
- func (s *UsersService) UpdateAvatarLink(label, username string, body Avatar, ...) (Avatar, *http.Response, error)
- func (s *UsersService) UpdateDigitalAssetAddress(label, username string, body DigitalAssetAddress, ...) (*http.Response, error)
- func (s *UsersService) UpdateEmailAddress(label, username string, body EmailAddress, ...) (*http.Response, error)
- func (s *UsersService) UpdatePassword(username string, body UsersUsernamePasswordPutReqBody, ...) (*http.Response, error)
- func (s *UsersService) UpdatePublicKey(label, username string, body PublicKey, ...) (PublicKey, *http.Response, error)
- func (s *UsersService) UpdateSeeObject(uniqueid, globalid, username string, body SeeView, ...) (SeeView, *http.Response, error)
- func (s *UsersService) UpdateUserAddress(label, username string, body Address, ...) (*http.Response, error)
- func (s *UsersService) UpdateUserBankAccount(username, label string, body BankAccount, ...) (BankAccount, *http.Response, error)
- func (s *UsersService) UpdateUserName(username string, body UsersUsernameNamePutReqBody, ...) (*http.Response, error)
- func (s *UsersService) UpdateUserPhonenumber(label, username string, body Phonenumber, ...) (*http.Response, error)
- func (s *UsersService) ValidateEmailAddress(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
- func (s *UsersService) ValidatePhonenumber(label, username string, headers, queryParams map[string]interface{}) (PhoneNumberValidation, *http.Response, error)
- func (s *UsersService) VerifyPhoneNumber(label, username string, body UsersUsernamePhonenumbersLabelValidatePutReqBody, ...) (*http.Response, error)
- type UsersUsernameApikeysLabelPutReqBody
- type UsersUsernameApikeysPostReqBody
- type UsersUsernameNamePutReqBody
- type UsersUsernamePasswordPutReqBody
- type UsersUsernamePhonenumbersLabelValidatePutReqBody
- type ValidityTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyLabel ¶ added in v1.0.0
type APIKeyLabel string
func (APIKeyLabel) Validate ¶ added in v1.0.0
func (s APIKeyLabel) Validate() error
type Address ¶
type Address struct { City string `json:"city" validate:"max=30,nonzero"` Country string `json:"country" validate:"max=40,nonzero"` Label Label `json:"label" validate:"nonzero"` Nr string `json:"nr" validate:"max=10,nonzero"` Other string `json:"other,omitempty" validate:"max=30"` Postalcode string `json:"postalcode" validate:"max=20,nonzero"` Street string `json:"street" validate:"max=50,nonzero"` }
type Authorization ¶
type Authorization struct { Addresses []AuthorizationMap `json:"addresses,omitempty"` Bankaccounts []AuthorizationMap `json:"bankaccounts,omitempty"` Emailaddresses []AuthorizationMap `json:"emailaddresses,omitempty"` Facebook bool `json:"facebook,omitempty"` Github bool `json:"github,omitempty"` GrantedTo string `json:"grantedTo" validate:"nonzero"` Organizations []string `json:"organizations" validate:"nonzero"` Phonenumbers []AuthorizationMap `json:"phonenumbers,omitempty"` PublicKeys []AuthorizationMap `json:"publicKeys,omitempty"` Username string `json:"username" validate:"nonzero"` }
For an explanation about scopes and scopemapping, see https://github.com/itsyouonline/identityserver/blob/master/docs/oauth2/scopes.md
func (Authorization) Validate ¶
func (s Authorization) Validate() error
type AuthorizationMap ¶
type AuthorizationMap struct { Reallabel Label `json:"reallabel" validate:"nonzero"` Requestedlabel Label `json:"requestedlabel" validate:"nonzero"` }
Mapping between requested labels and real labels
func (AuthorizationMap) Validate ¶
func (s AuthorizationMap) Validate() error
type Avatar ¶ added in v0.9.14
type Avatar struct { Label Label `json:"label" validate:"nonzero"` Source string `json:"source" validate:"nonzero"` }
An avatar of a user
type BankAccount ¶
type BankAccount struct { Bic string `json:"bic" validate:"max=11,nonzero"` Country string `json:"country" validate:"max=40,nonzero"` Iban string `json:"iban" validate:"max=30,nonzero"` Label Label `json:"label" validate:"nonzero"` }
func (BankAccount) Validate ¶
func (s BankAccount) Validate() error
type Company ¶
type Company struct { Expire goraml.DateTime `json:"expire,omitempty"` Globalid string `json:"globalid" validate:"min=3,max=150,regexp=^[a-z\d\-_\s]{3,150}$,nonzero"` Info []string `json:"info,omitempty" validate:"max=20"` Organizations []string `json:"organizations,omitempty" validate:"max=100"` PublicKeys []string `json:"publicKeys" validate:"max=20,nonzero"` Taxnr string `json:"taxnr,omitempty"` }
type Contract ¶
type Contract struct { Content string `json:"content" validate:"nonzero"` ContractId string `json:"contractId" validate:"nonzero"` ContractType string `json:"contractType" validate:"max=40,nonzero"` Expires goraml.DateTime `json:"expires" validate:"nonzero"` Extends []string `json:"extends,omitempty" validate:"max=10"` Invalidates []string `json:"invalidates,omitempty" validate:"max=10"` Parties []Party `json:"parties" validate:"min=2,max=20,nonzero"` Signatures []Signature `json:"signatures" validate:"nonzero"` }
type ContractSigningRequest ¶
type ContractSigningRequest struct { ContractId string `json:"contractId" validate:"nonzero"` Party string `json:"party" validate:"nonzero"` }
func (ContractSigningRequest) Validate ¶
func (s ContractSigningRequest) Validate() error
type CreateGrantBody ¶ added in v1.0.0
type CreateGrantBody struct { Grant Grant `json:"grant" validate:"nonzero"` Username string `json:"username" validate:"nonzero"` }
func (CreateGrantBody) Validate ¶ added in v1.0.0
func (s CreateGrantBody) Validate() error
type Date ¶
Date represent RFC3399 date
func (*Date) MarshalJSON ¶
MarshalJSON override marshalJSON
func (*Date) MarshalText ¶
MarshalText override marshalText
func (*Date) UnmarshalJSON ¶
UnmarshalJSON override unmarshalJSON
func (*Date) UnmarshalText ¶
UnmarshalText override unmarshalText
type DigitalAssetAddress ¶
type DigitalAssetAddress struct { Address string `json:"address" validate:"nonzero"` Currencysymbol string `json:"currencysymbol" validate:"nonzero"` Expire goraml.DateTime `json:"expire" validate:"nonzero"` Label Label `json:"label" validate:"nonzero"` Noexpiration bool `json:"noexpiration,omitempty"` }
func (DigitalAssetAddress) Validate ¶
func (s DigitalAssetAddress) Validate() error
type DigitalWalletAuthorization ¶
type DigitalWalletAuthorization struct { Currency string `json:"currency" validate:"min=1,max=15,nonzero"` Reallabel Label `json:"reallabel" validate:"nonzero"` Requestedlabel Label `json:"requestedlabel" validate:"nonzero"` }
Mapping between requested labels and real label. Also has a 'currency' property
func (DigitalWalletAuthorization) Validate ¶
func (s DigitalWalletAuthorization) Validate() error
type DnsAddress ¶ added in v0.9.9
type DnsAddress struct {
Name string `json:"name" validate:"min=4,max=250,regexp=^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$,nonzero"`
}
func (DnsAddress) Validate ¶ added in v0.9.9
func (s DnsAddress) Validate() error
type EmailAddress ¶
type EmailAddress struct { Emailaddress string `json:"emailaddress" validate:"nonzero"` Label Label `json:"label" validate:"nonzero"` }
func (EmailAddress) Validate ¶
func (s EmailAddress) Validate() error
type EnumJoinOrganizationInvitationMethod ¶ added in v0.9.10
type EnumJoinOrganizationInvitationMethod string
const ( EnumJoinOrganizationInvitationMethodwebsite EnumJoinOrganizationInvitationMethod = "website" EnumJoinOrganizationInvitationMethodemail EnumJoinOrganizationInvitationMethod = "email" EnumJoinOrganizationInvitationMethodphone EnumJoinOrganizationInvitationMethod = "phone" )
type EnumJoinOrganizationInvitationRole ¶ added in v0.9.10
type EnumJoinOrganizationInvitationRole string
const ( EnumJoinOrganizationInvitationRoleowner EnumJoinOrganizationInvitationRole = "owner" EnumJoinOrganizationInvitationRolemember EnumJoinOrganizationInvitationRole = "member" EnumJoinOrganizationInvitationRoleorgowner EnumJoinOrganizationInvitationRole = "orgowner" EnumJoinOrganizationInvitationRoleorgmember EnumJoinOrganizationInvitationRole = "orgmember" )
type EnumJoinOrganizationInvitationStatus ¶ added in v0.9.10
type EnumJoinOrganizationInvitationStatus string
const ( EnumJoinOrganizationInvitationStatuspending EnumJoinOrganizationInvitationStatus = "pending" EnumJoinOrganizationInvitationStatusaccepted EnumJoinOrganizationInvitationStatus = "accepted" EnumJoinOrganizationInvitationStatusrejected EnumJoinOrganizationInvitationStatus = "rejected" )
type FacebookAccount ¶
type FacebookAccount struct { Id string `json:"id" validate:"nonzero"` Link string `json:"link" validate:"nonzero"` Name string `json:"name" validate:"nonzero"` Picture string `json:"picture" validate:"nonzero"` }
func (FacebookAccount) Validate ¶
func (s FacebookAccount) Validate() error
type GetOrganizationUsersResponseBody ¶
type GetOrganizationUsersResponseBody struct { Haseditpermissions bool `json:"haseditpermissions"` Users []OrganizationUser `json:"users" validate:"nonzero"` }
func (GetOrganizationUsersResponseBody) Validate ¶
func (s GetOrganizationUsersResponseBody) Validate() error
type GithubAccount ¶
type GithubAccount struct { Avatar_url string `json:"avatar_url" validate:"nonzero"` Html_url string `json:"html_url" validate:"nonzero"` Id int `json:"id" validate:"nonzero"` Login string `json:"login" validate:"nonzero"` Name string `json:"name" validate:"nonzero"` }
func (GithubAccount) Validate ¶
func (s GithubAccount) Validate() error
type Itsyouonline ¶
type Itsyouonline struct { AuthHeader string // Authorization header, will be sent on each request if not empty BaseURI string Organizations *OrganizationsService Users *UsersService // contains filtered or unexported fields }
func NewItsyouonline ¶
func NewItsyouonline() *Itsyouonline
func (*Itsyouonline) CreateJWTToken ¶
func (c *Itsyouonline) CreateJWTToken(scopes, auds []string) (string, error)
CreateJWTToken creates JWT token with scope=scopes and audience=auds. To execute it, client need to be logged in.
func (*Itsyouonline) GetOauth2AccessToken ¶ added in v0.9.10
func (c *Itsyouonline) GetOauth2AccessToken(clientID, clientSecret string, scopes, audiences []string) (string, error)
func (*Itsyouonline) LoginWithClientCredentials ¶
func (c *Itsyouonline) LoginWithClientCredentials(clientID, clientSecret string) (username, globalid, token string, err error)
LoginWithClientCredentials login to itsyouonline using the client ID and client secret. If succeed:
- the authenticated user in the username or the globalid of the authenticated organization
- returns the oauth2 access token
- set AuthHeader to `token TOKEN_VALUE`.
type IyoID ¶ added in v1.0.0
type IyoID struct { Azp string `json:"azp" validate:"nonzero"` Iyoids []string `json:"iyoids" validate:"nonzero"` Username string `json:"username" validate:"nonzero"` }
Mapping between an Iyo ID, username and azp
type JoinOrganizationInvitation ¶
type JoinOrganizationInvitation struct { Created goraml.DateTime `json:"created,omitempty"` Emailaddress string `json:"emailaddress" validate:"nonzero"` Isorganization bool `json:"isorganization"` Method EnumJoinOrganizationInvitationMethod `json:"method" validate:"nonzero"` Organization string `json:"organization" validate:"nonzero"` Phonenumber string `json:"phonenumber" validate:"nonzero"` Role EnumJoinOrganizationInvitationRole `json:"role" validate:"nonzero"` Status EnumJoinOrganizationInvitationStatus `json:"status" validate:"nonzero"` User string `json:"user" validate:"nonzero"` }
func (JoinOrganizationInvitation) Validate ¶
func (s JoinOrganizationInvitation) Validate() error
type KeyData ¶ added in v0.9.15
type KeyStoreKey ¶ added in v0.9.15
type KeyStoreKey struct { Globalid string `json:"globalid,omitempty"` Key string `json:"key" validate:"nonzero"` Keydata KeyData `json:"keydata" validate:"nonzero"` Label Label `json:"label" validate:"nonzero"` Username string `json:"username,omitempty"` }
func (KeyStoreKey) Validate ¶ added in v0.9.15
func (s KeyStoreKey) Validate() error
type LocalizedInfoText ¶ added in v0.9.9
type LocalizedInfoText struct { Langkey string `json:"langkey" validate:"nonzero"` Text string `json:"text" validate:"nonzero"` }
func (LocalizedInfoText) Validate ¶ added in v0.9.9
func (s LocalizedInfoText) Validate() error
type Membership ¶ added in v0.9.9
type Membership struct { Role string `json:"role" validate:"nonzero"` Username string `json:"username" validate:"nonzero"` }
func (Membership) Validate ¶ added in v0.9.9
func (s Membership) Validate() error
type MissingScopes ¶ added in v0.9.9
type MissingScopes struct { Organization string `json:"organization" validate:"nonzero"` Scopes []string `json:"scopes" validate:"nonzero"` }
func (MissingScopes) Validate ¶ added in v0.9.9
func (s MissingScopes) Validate() error
type Notification ¶ added in v1.0.0
type Notification struct { Approvals []JoinOrganizationInvitation `json:"approvals" validate:"nonzero"` ContractRequests []ContractSigningRequest `json:"contractRequests" validate:"nonzero"` Invitations []JoinOrganizationInvitation `json:"invitations" validate:"nonzero"` Missingscopes []MissingScopes `json:"missingscopes" validate:"nonzero"` }
func (Notification) Validate ¶ added in v1.0.0
func (s Notification) Validate() error
type Organization ¶
type Organization struct { Dns []string `json:"dns" validate:"max=100,nonzero"` Globalid string `json:"globalid" validate:"min=3,max=150,regexp=^[a-z\d\-_\s]{3,150}$,nonzero"` Includes []string `json:"includes" validate:"max=100,nonzero"` Includesuborgsof []string `json:"includesuborgsof" validate:"nonzero"` Members []string `json:"members" validate:"max=2000,nonzero"` Orgmembers []string `json:"orgmembers" validate:"nonzero"` Orgowners []string `json:"orgowners" validate:"nonzero"` Owners []string `json:"owners" validate:"max=20,nonzero"` PublicKeys []string `json:"publicKeys" validate:"max=20,nonzero"` Requiredscopes []RequiredScope `json:"requiredscopes" validate:"max=20,nonzero"` }
func (Organization) Validate ¶
func (s Organization) Validate() error
type OrganizationAPIKey ¶
type OrganizationAPIKey struct { CallbackURL string `json:"callbackURL,omitempty" validate:"max=250"` ClientCredentialsGrantType bool `json:"clientCredentialsGrantType,omitempty"` Label Label `json:"label" validate:"nonzero"` Secret string `json:"secret,omitempty" validate:"max=250"` }
func (OrganizationAPIKey) Validate ¶
func (s OrganizationAPIKey) Validate() error
type OrganizationLogo ¶ added in v1.0.0
type OrganizationLogo struct {
Logo string `json:"logo" validate:"nonzero"`
}
func (OrganizationLogo) Validate ¶ added in v1.0.0
func (s OrganizationLogo) Validate() error
type OrganizationTreeItem ¶
type OrganizationTreeItem struct { Children []OrganizationTreeItem `json:"children" validate:"nonzero"` Globalid string `json:"globalid" validate:"nonzero"` }
func (OrganizationTreeItem) Validate ¶
func (s OrganizationTreeItem) Validate() error
type OrganizationUser ¶
type OrganizationUser struct { Missingscopes []string `json:"missingscopes" validate:"nonzero"` Role string `json:"role" validate:"nonzero"` Username string `json:"username" validate:"nonzero"` }
func (OrganizationUser) Validate ¶
func (s OrganizationUser) Validate() error
type OrganizationsGlobalidApikeysLabelPutReqBody ¶
type OrganizationsGlobalidApikeysLabelPutReqBody struct {
Type OrganizationAPIKey `json:"type" validate:"nonzero"`
}
func (OrganizationsGlobalidApikeysLabelPutReqBody) Validate ¶
func (s OrganizationsGlobalidApikeysLabelPutReqBody) Validate() error
type OrganizationsGlobalidMembersPostReqBody ¶ added in v0.9.13
type OrganizationsGlobalidMembersPostReqBody struct {
Searchstring string `json:"searchstring" validate:"nonzero"`
}
func (OrganizationsGlobalidMembersPostReqBody) Validate ¶ added in v0.9.13
func (s OrganizationsGlobalidMembersPostReqBody) Validate() error
type OrganizationsGlobalidOrgmembersIncludesuborgsPostReqBody ¶ added in v0.9.10
type OrganizationsGlobalidOrgmembersIncludesuborgsPostReqBody struct {
Globalid string `json:"globalid" validate:"nonzero"`
}
func (OrganizationsGlobalidOrgmembersIncludesuborgsPostReqBody) Validate ¶ added in v0.9.10
func (s OrganizationsGlobalidOrgmembersIncludesuborgsPostReqBody) Validate() error
type OrganizationsGlobalidOrgmembersPostReqBody ¶
type OrganizationsGlobalidOrgmembersPostReqBody struct {
Orgmember string `json:"orgmember" validate:"nonzero"`
}
func (OrganizationsGlobalidOrgmembersPostReqBody) Validate ¶
func (s OrganizationsGlobalidOrgmembersPostReqBody) Validate() error
type OrganizationsGlobalidOrgmembersPutReqBody ¶
type OrganizationsGlobalidOrgmembersPutReqBody struct { Org string `json:"org" validate:"nonzero"` Role string `json:"role" validate:"nonzero"` }
func (OrganizationsGlobalidOrgmembersPutReqBody) Validate ¶
func (s OrganizationsGlobalidOrgmembersPutReqBody) Validate() error
type OrganizationsGlobalidOrgownersPostReqBody ¶
type OrganizationsGlobalidOrgownersPostReqBody struct {
Orgowner string `json:"orgowner" validate:"nonzero"`
}
func (OrganizationsGlobalidOrgownersPostReqBody) Validate ¶
func (s OrganizationsGlobalidOrgownersPostReqBody) Validate() error
type OrganizationsService ¶
type OrganizationsService service
func (*OrganizationsService) AcceptOrganizationInvite ¶ added in v0.9.10
func (s *OrganizationsService) AcceptOrganizationInvite(invitingorg, role, globalid string, body JoinOrganizationInvitation, headers, queryParams map[string]interface{}) (JoinOrganizationInvitation, *http.Response, error)
Accept the invite for one of your organizations
func (*OrganizationsService) AddIncludeSubOrgsOf ¶ added in v0.9.10
func (s *OrganizationsService) AddIncludeSubOrgsOf(globalid string, body OrganizationsGlobalidOrgmembersIncludesuborgsPostReqBody, headers, queryParams map[string]interface{}) (Organization, *http.Response, error)
Add an orgmember or orgowner organization to the includesuborgsof list
func (*OrganizationsService) AddOrganizationMember ¶
func (s *OrganizationsService) AddOrganizationMember(globalid string, body OrganizationsGlobalidMembersPostReqBody, headers, queryParams map[string]interface{}) (JoinOrganizationInvitation, *http.Response, error)
Invite someone to become member of an organization.
func (*OrganizationsService) AddOrganizationOwner ¶
func (s *OrganizationsService) AddOrganizationOwner(globalid string, body Member, headers, queryParams map[string]interface{}) (JoinOrganizationInvitation, *http.Response, error)
Invite someone to become owner of an organization.
func (*OrganizationsService) AddOrganizationRegistryEntry ¶
func (s *OrganizationsService) AddOrganizationRegistryEntry(globalid string, body RegistryEntry, headers, queryParams map[string]interface{}) (RegistryEntry, *http.Response, error)
Adds a RegistryEntry to the organization's registry, if the key is already used, it is overwritten.
func (*OrganizationsService) AddRequiredScope ¶
func (s *OrganizationsService) AddRequiredScope(globalid string, body RequiredScope, headers, queryParams map[string]interface{}) (*http.Response, error)
Adds a required scope
func (*OrganizationsService) CreateNewOrganization ¶
func (s *OrganizationsService) CreateNewOrganization(body Organization, headers, queryParams map[string]interface{}) (Organization, *http.Response, error)
Create a new organization. 1 user should be in the owners list. Validation is performed to check if the securityScheme allows management on this user.
func (*OrganizationsService) CreateNewOrganizationAPIKey ¶
func (s *OrganizationsService) CreateNewOrganizationAPIKey(globalid string, body OrganizationAPIKey, headers, queryParams map[string]interface{}) (OrganizationAPIKey, *http.Response, error)
Create a new API Key, a secret itself should not be provided, it will be generated serverside.
func (*OrganizationsService) CreateNewSubOrganization ¶
func (s *OrganizationsService) CreateNewSubOrganization(globalid string, body Organization, headers, queryParams map[string]interface{}) (Organization, *http.Response, error)
Create a new suborganization.
func (*OrganizationsService) CreateOrganizationContracty ¶
func (s *OrganizationsService) CreateOrganizationContracty(globalid string, body Contract, headers, queryParams map[string]interface{}) (Contract, *http.Response, error)
Create a new contract.
func (*OrganizationsService) CreateOrganizationDns ¶ added in v0.9.9
func (s *OrganizationsService) CreateOrganizationDns(globalid string, body DnsAddress, headers, queryParams map[string]interface{}) (DnsAddress, *http.Response, error)
Creates a new DNS name associated with an organization
func (*OrganizationsService) CreateUserGrant ¶ added in v1.0.0
func (s *OrganizationsService) CreateUserGrant(globalid string, body CreateGrantBody, headers, queryParams map[string]interface{}) (UserGrants, *http.Response, error)
Create a new grant for a user
func (*OrganizationsService) DeleteAllUserGrants ¶ added in v1.0.0
func (s *OrganizationsService) DeleteAllUserGrants(username, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Delete all grants for this user
func (*OrganizationsService) DeleteDescription ¶ added in v0.9.9
func (s *OrganizationsService) DeleteDescription(langkey, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Delete the description for this organization for a given language key
func (*OrganizationsService) DeleteOrgMember ¶
func (s *OrganizationsService) DeleteOrgMember(globalid2, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Remove an organization as a member
func (*OrganizationsService) DeleteOrgOwner ¶
func (s *OrganizationsService) DeleteOrgOwner(globalid2, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Remove an organization as an owner
func (*OrganizationsService) DeleteOrganization ¶
func (s *OrganizationsService) DeleteOrganization(globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Deletes an organization and all data linked to it (join-organization-invitations, oauth_access_tokens, oauth_clients, logo)
func (*OrganizationsService) DeleteOrganizationAPIKey ¶
func (s *OrganizationsService) DeleteOrganizationAPIKey(label, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Removes an API key
func (*OrganizationsService) DeleteOrganizationDns ¶ added in v0.9.9
func (s *OrganizationsService) DeleteOrganizationDns(dnsname, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Removes a DNS name associated with an organization
func (*OrganizationsService) DeleteOrganizationLogo ¶
func (s *OrganizationsService) DeleteOrganizationLogo(globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Removes the Logo from an organization
func (*OrganizationsService) DeleteOrganizationRegistryEntry ¶
func (s *OrganizationsService) DeleteOrganizationRegistryEntry(key, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Removes a RegistryEntry from the organization's registry
func (*OrganizationsService) DeleteRequiredScope ¶
func (s *OrganizationsService) DeleteRequiredScope(requiredscope, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Deletes a required scope
func (*OrganizationsService) DeleteUserGrant ¶ added in v1.0.0
func (s *OrganizationsService) DeleteUserGrant(grant, username, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Delete a specified grant for this user
func (*OrganizationsService) Get2faValidityTime ¶
func (s *OrganizationsService) Get2faValidityTime(globalid string, headers, queryParams map[string]interface{}) (ValidityTime, *http.Response, error)
Get the 2FA validity time for the organization, in seconds
func (*OrganizationsService) GetDescription ¶ added in v0.9.9
func (s *OrganizationsService) GetDescription(langkey, globalid string, headers, queryParams map[string]interface{}) (LocalizedInfoText, *http.Response, error)
Get the description for an organization for this langkey
func (*OrganizationsService) GetDescriptionWithFallback ¶ added in v0.9.9
func (s *OrganizationsService) GetDescriptionWithFallback(langkey, globalid string, headers, queryParams map[string]interface{}) (LocalizedInfoText, *http.Response, error)
Get the description for an organization for this langkey, try to use the English is there is no description for this langkey
func (*OrganizationsService) GetInvitations ¶ added in v0.9.10
func (s *OrganizationsService) GetInvitations(globalid string, headers, queryParams map[string]interface{}) ([]JoinOrganizationInvitation, *http.Response, error)
Get the list of pending invitations for users to join this organization.
func (*OrganizationsService) GetOrganization ¶
func (s *OrganizationsService) GetOrganization(globalid string, headers, queryParams map[string]interface{}) (Organization, *http.Response, error)
Get organization info
func (*OrganizationsService) GetOrganizationAPIKey ¶
func (s *OrganizationsService) GetOrganizationAPIKey(label, globalid string, headers, queryParams map[string]interface{}) (OrganizationAPIKey, *http.Response, error)
Get an api key from an organization
func (*OrganizationsService) GetOrganizationAPIKeyLabels ¶
func (s *OrganizationsService) GetOrganizationAPIKeyLabels(globalid string, headers, queryParams map[string]interface{}) ([]APIKeyLabel, *http.Response, error)
Get the list of active api keys.
func (*OrganizationsService) GetOrganizationContracts ¶
func (s *OrganizationsService) GetOrganizationContracts(globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Get the contracts where the organization is 1 of the parties. Order descending by date.
func (*OrganizationsService) GetOrganizationLogo ¶
func (s *OrganizationsService) GetOrganizationLogo(globalid string, headers, queryParams map[string]interface{}) (OrganizationLogo, *http.Response, error)
Get the Logo from an organization
func (*OrganizationsService) GetOrganizationRegistryEntry ¶
func (s *OrganizationsService) GetOrganizationRegistryEntry(key, globalid string, headers, queryParams map[string]interface{}) (RegistryEntry, *http.Response, error)
Get a RegistryEntry from the organization's registry.
func (*OrganizationsService) GetOrganizationTree ¶
func (s *OrganizationsService) GetOrganizationTree(globalid string, headers, queryParams map[string]interface{}) (OrganizationTreeItem, *http.Response, error)
Tree structure of all suborganizations
func (*OrganizationsService) GetOrganizationUsers ¶
func (s *OrganizationsService) GetOrganizationUsers(globalid string, headers, queryParams map[string]interface{}) (GetOrganizationUsersResponseBody, *http.Response, error)
Get all users from this organization, not including suborganizations.
func (*OrganizationsService) GetUserGrants ¶ added in v1.0.0
func (s *OrganizationsService) GetUserGrants(username, globalid string, headers, queryParams map[string]interface{}) (UserGrants, *http.Response, error)
Get all grants for a user
func (*OrganizationsService) ListOrganizationRegistry ¶
func (s *OrganizationsService) ListOrganizationRegistry(globalid string, headers, queryParams map[string]interface{}) ([]RegistryEntry, *http.Response, error)
Lists the RegistryEntries in an organization's registry.
func (*OrganizationsService) ListUsersWithGrant ¶ added in v1.0.0
func (s *OrganizationsService) ListUsersWithGrant(grant, globalid string, headers, queryParams map[string]interface{}) ([]string, *http.Response, error)
Delete a specified grant for this user
func (*OrganizationsService) RejectOrganizationInvite ¶ added in v0.9.10
func (s *OrganizationsService) RejectOrganizationInvite(invitingorg, role, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Reject the invite for one of your organizations
func (*OrganizationsService) RemoveIncludeSubOrgsOf ¶ added in v0.9.10
func (s *OrganizationsService) RemoveIncludeSubOrgsOf(orgmember, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Remove an orgmember or orgowner organization to the includesuborgsof list
func (*OrganizationsService) RemoveOrganizationMember ¶
func (s *OrganizationsService) RemoveOrganizationMember(username, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Remove a member from an organization.
func (*OrganizationsService) RemoveOrganizationOwner ¶
func (s *OrganizationsService) RemoveOrganizationOwner(username, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Remove an owner from organization
func (*OrganizationsService) RemovePendingOrganizationInvitation ¶
func (s *OrganizationsService) RemovePendingOrganizationInvitation(username, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Cancel a pending invitation.
func (*OrganizationsService) Set2faValidityTime ¶
func (s *OrganizationsService) Set2faValidityTime(globalid string, body ValidityTime, headers, queryParams map[string]interface{}) (*http.Response, error)
Update the 2FA validity time for the organization
func (*OrganizationsService) SetDescription ¶ added in v0.9.9
func (s *OrganizationsService) SetDescription(globalid string, body LocalizedInfoText, headers, queryParams map[string]interface{}) (LocalizedInfoText, *http.Response, error)
Set the description for this organization for a given language key
func (*OrganizationsService) SetOrgMember ¶
func (s *OrganizationsService) SetOrgMember(globalid string, body OrganizationsGlobalidOrgmembersPostReqBody, headers, queryParams map[string]interface{}) (*http.Response, error)
Add another organization as a member of this one
func (*OrganizationsService) SetOrgOwner ¶
func (s *OrganizationsService) SetOrgOwner(globalid string, body OrganizationsGlobalidOrgownersPostReqBody, headers, queryParams map[string]interface{}) (*http.Response, error)
Add another organization as an owner of this one
func (*OrganizationsService) SetOrganizationLogo ¶
func (s *OrganizationsService) SetOrganizationLogo(globalid string, body OrganizationLogo, headers, queryParams map[string]interface{}) (OrganizationLogo, *http.Response, error)
Set the organization Logo for the organization
func (*OrganizationsService) UpdateDescription ¶ added in v0.9.9
func (s *OrganizationsService) UpdateDescription(globalid string, body LocalizedInfoText, headers, queryParams map[string]interface{}) (LocalizedInfoText, *http.Response, error)
Update the description for this organization for a given language key
func (*OrganizationsService) UpdateOrganizationAPIKey ¶
func (s *OrganizationsService) UpdateOrganizationAPIKey(label, globalid string, body OrganizationsGlobalidApikeysLabelPutReqBody, headers, queryParams map[string]interface{}) (*http.Response, error)
Updates the label or other properties of a key.
func (*OrganizationsService) UpdateOrganizationDns ¶ added in v0.9.9
func (s *OrganizationsService) UpdateOrganizationDns(dnsname, globalid string, body DnsAddress, headers, queryParams map[string]interface{}) (*http.Response, error)
Updates an existing DNS name associated with an organization
func (*OrganizationsService) UpdateOrganizationMemberShip ¶
func (s *OrganizationsService) UpdateOrganizationMemberShip(globalid string, body Membership, headers, queryParams map[string]interface{}) (Organization, *http.Response, error)
Update an organization membership
func (*OrganizationsService) UpdateOrganizationOrgMemberShip ¶
func (s *OrganizationsService) UpdateOrganizationOrgMemberShip(globalid string, body OrganizationsGlobalidOrgmembersPutReqBody, headers, queryParams map[string]interface{}) (Organization, *http.Response, error)
Update the membership status of an organization
func (*OrganizationsService) UpdateRequiredScope ¶
func (s *OrganizationsService) UpdateRequiredScope(requiredscope, globalid string, headers, queryParams map[string]interface{}) (*http.Response, error)
Updates a required scope
func (*OrganizationsService) UpdateUserGrant ¶ added in v1.0.0
func (s *OrganizationsService) UpdateUserGrant(globalid string, body UpdateGrantBody, headers, queryParams map[string]interface{}) (UserGrants, *http.Response, error)
Update an existing grant for a user
func (*OrganizationsService) UserIsMember ¶ added in v0.9.15
func (s *OrganizationsService) UserIsMember(username, globalid string, headers, queryParams map[string]interface{}) (IsMember, *http.Response, error)
Checks if the user has memberschip rights on the organization
type Ownerof ¶ added in v0.9.15
type Ownerof struct {
Emailaddresses []EmailAddress `json:"emailaddresses" validate:"nonzero"`
}
type Party ¶
type PhoneNumberValidation ¶ added in v1.0.0
type PhoneNumberValidation struct {
Validationkey string `json:"validationkey" validate:"nonzero"`
}
func (PhoneNumberValidation) Validate ¶ added in v1.0.0
func (s PhoneNumberValidation) Validate() error
type Phonenumber ¶
type Phonenumber struct { Label Label `json:"label" validate:"nonzero"` Phonenumber string `json:"phonenumber" validate:"regexp=\+[0-9]{6,50}$,nonzero"` }
func (Phonenumber) Validate ¶
func (s Phonenumber) Validate() error
type PublicKey ¶
type PublicKey struct { Label Label `json:"label" validate:"nonzero"` Publickey string `json:"publickey" validate:"nonzero"` }
PublicKey of a user
type RegistryEntry ¶
type RegistryEntry struct { Key string `json:"Key" validate:"min=1,max=256,nonzero"` Value string `json:"Value" validate:"max=1024,nonzero"` }
func (RegistryEntry) Validate ¶
func (s RegistryEntry) Validate() error
type RequiredScope ¶
type RequiredScope struct { Accessscopes []string `json:"accessscopes" validate:"nonzero"` Scope string `json:"scope" validate:"max=1024,nonzero"` }
func (RequiredScope) Validate ¶
func (s RequiredScope) Validate() error
type See ¶ added in v0.9.15
type See struct { Globalid string `json:"globalid" validate:"nonzero"` Uniqueid string `json:"uniqueid" validate:"nonzero"` Username string `json:"username" validate:"nonzero"` Versions []SeeVersion `json:"versions" validate:"nonzero"` }
See object
type SeeVersion ¶ added in v0.9.15
type SeeVersion struct { Category string `json:"category" validate:"nonzero"` Content_type string `json:"content_type" validate:"nonzero"` Creation_date string `json:"creation_date" validate:"nonzero"` End_date string `json:"end_date" validate:"nonzero"` Keystore_label string `json:"keystore_label" validate:"nonzero"` Link string `json:"link" validate:"nonzero"` Markdown_full_description string `json:"markdown_full_description" validate:"nonzero"` Markdown_short_description string `json:"markdown_short_description" validate:"nonzero"` Signature string `json:"signature" validate:"nonzero"` Start_date string `json:"start_date" validate:"nonzero"` Version int `json:"version" validate:"nonzero"` }
See version object
func (SeeVersion) Validate ¶ added in v0.9.15
func (s SeeVersion) Validate() error
type SeeView ¶ added in v0.9.15
type SeeView struct { Category string `json:"category" validate:"nonzero"` Content_type string `json:"content_type" validate:"nonzero"` Creation_date string `json:"creation_date" validate:"nonzero"` End_date string `json:"end_date" validate:"nonzero"` Globalid string `json:"globalid" validate:"nonzero"` Keystore_label string `json:"keystore_label" validate:"nonzero"` Link string `json:"link" validate:"nonzero"` Markdown_full_description string `json:"markdown_full_description" validate:"nonzero"` Markdown_short_description string `json:"markdown_short_description" validate:"nonzero"` Signature string `json:"signature" validate:"nonzero"` Start_date string `json:"start_date" validate:"nonzero"` Uniqueid string `json:"uniqueid" validate:"nonzero"` Username string `json:"username" validate:"nonzero"` Version int `json:"version" validate:"nonzero"` }
See view object
type Signature ¶
type TOTPSecret ¶ added in v1.0.0
type TOTPSecret struct { Totpcode string `json:"totpcode" validate:"nonzero"` Totpsecret string `json:"totpsecret" validate:"nonzero"` }
func (TOTPSecret) Validate ¶ added in v1.0.0
func (s TOTPSecret) Validate() error
type TwoFAMethods ¶ added in v1.0.0
type TwoFAMethods struct { Sms []Phonenumber `json:"sms" validate:"nonzero"` Totp bool `json:"totp"` }
func (TwoFAMethods) Validate ¶ added in v1.0.0
func (s TwoFAMethods) Validate() error
type UpdateGrantBody ¶ added in v1.0.0
type UpdateGrantBody struct { Newgrant Grant `json:"newgrant" validate:"nonzero"` Oldgrant Grant `json:"oldgrant" validate:"nonzero"` Username string `json:"username" validate:"nonzero"` }
func (UpdateGrantBody) Validate ¶ added in v1.0.0
func (s UpdateGrantBody) Validate() error
type User ¶
type User struct { Addresses []Address `json:"addresses" validate:"nonzero"` Bankaccounts []BankAccount `json:"bankaccounts" validate:"nonzero"` Digitalwallet []DigitalAssetAddress `json:"digitalwallet" validate:"nonzero"` Emailaddresses []EmailAddress `json:"emailaddresses" validate:"nonzero"` Expire goraml.DateTime `json:"expire,omitempty"` Facebook FacebookAccount `json:"facebook,omitempty"` Firstname string `json:"firstname" validate:"nonzero"` Github GithubAccount `json:"github,omitempty"` Lastname string `json:"lastname" validate:"nonzero"` Phonenumbers []Phonenumber `json:"phonenumbers" validate:"nonzero"` PublicKeys []string `json:"publicKeys" validate:"nonzero"` Username string `json:"username" validate:"min=2,max=30,regexp=^[a-z0-9]{2,30}$,nonzero"` }
type UserAPIKey ¶
type UserAPIKey struct { Apikey string `json:"apikey" validate:"nonzero"` Applicationid string `json:"applicationid" validate:"nonzero"` Label Label `json:"label" validate:"nonzero"` Scopes []string `json:"scopes" validate:"nonzero"` Username string `json:"username" validate:"nonzero"` }
User specific API key
func (UserAPIKey) Validate ¶
func (s UserAPIKey) Validate() error
type UserGrants ¶ added in v1.0.0
type UserGrants []Grant
All the grants a user has
func (UserGrants) Validate ¶ added in v1.0.0
func (s UserGrants) Validate() error
type UserOrganizations ¶ added in v1.0.0
type UserOrganizations struct { Member []string `json:"member" validate:"nonzero"` Owner []string `json:"owner" validate:"nonzero"` }
func (UserOrganizations) Validate ¶ added in v1.0.0
func (s UserOrganizations) Validate() error
type UsersService ¶
type UsersService service
func (*UsersService) AcceptMembership ¶
func (s *UsersService) AcceptMembership(globalid, role, username string, body JoinOrganizationInvitation, headers, queryParams map[string]interface{}) (JoinOrganizationInvitation, *http.Response, error)
Accept membership in organization
func (*UsersService) AddApiKey ¶
func (s *UsersService) AddApiKey(username string, body UsersUsernameApikeysPostReqBody, headers, queryParams map[string]interface{}) (UserAPIKey, *http.Response, error)
Adds an APIKey to the user
func (*UsersService) AddPublicKey ¶ added in v0.9.9
func (s *UsersService) AddPublicKey(username string, body PublicKey, headers, queryParams map[string]interface{}) (PublicKey, *http.Response, error)
Add a public key
func (*UsersService) AddUserRegistryEntry ¶
func (s *UsersService) AddUserRegistryEntry(username string, body RegistryEntry, headers, queryParams map[string]interface{}) (RegistryEntry, *http.Response, error)
Adds a RegistryEntry to the user's registry, if the key is already used, it is overwritten.
func (*UsersService) CreateAvatarFromImage ¶ added in v0.9.15
func (s *UsersService) CreateAvatarFromImage(label, username string, headers, queryParams map[string]interface{}) (Avatar, *http.Response, error)
Create a new avatar with the specified label from a provided image file
func (*UsersService) CreateAvatarFromLink ¶ added in v0.9.15
func (s *UsersService) CreateAvatarFromLink(username string, body Avatar, headers, queryParams map[string]interface{}) (Avatar, *http.Response, error)
Create a new avatar with the specified label from a link
func (*UsersService) CreateSeeObject ¶ added in v0.9.15
func (s *UsersService) CreateSeeObject(username string, body SeeView, headers, queryParams map[string]interface{}) (SeeView, *http.Response, error)
Create new see object
func (*UsersService) CreateUser ¶
func (s *UsersService) CreateUser(body User, headers, queryParams map[string]interface{}) (*http.Response, error)
Create a new user
func (*UsersService) CreateUserBankAccount ¶
func (s *UsersService) CreateUserBankAccount(username string, body BankAccount, headers, queryParams map[string]interface{}) (BankAccount, *http.Response, error)
Create new bank account
func (*UsersService) CreateUserContract ¶
func (s *UsersService) CreateUserContract(username string, body Contract, headers, queryParams map[string]interface{}) (Contract, *http.Response, error)
Create a new contract.
func (*UsersService) DeleteAPIkey ¶
func (s *UsersService) DeleteAPIkey(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Removes an API key
func (*UsersService) DeleteAuthorization ¶
func (s *UsersService) DeleteAuthorization(grantedTo, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Remove the authorization for an organization, the granted organization will no longer have access the user's information.
func (*UsersService) DeleteAvatar ¶ added in v0.9.15
func (s *UsersService) DeleteAvatar(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Delete the avatar with the specified label
func (*UsersService) DeleteDigitalAssetAddress ¶
func (s *UsersService) DeleteDigitalAssetAddress(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Removes an address
func (*UsersService) DeleteEmailAddress ¶
func (s *UsersService) DeleteEmailAddress(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Removes an email address
func (*UsersService) DeleteFacebookAccount ¶
func (s *UsersService) DeleteFacebookAccount(username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Delete the associated facebook account
func (*UsersService) DeleteGithubAccount ¶
func (s *UsersService) DeleteGithubAccount(username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Unlink Github Account
func (*UsersService) DeletePublicKey ¶ added in v0.9.9
func (s *UsersService) DeletePublicKey(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Delete a public key
func (*UsersService) DeleteUserAddress ¶
func (s *UsersService) DeleteUserAddress(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Removes an address
func (*UsersService) DeleteUserBankAccount ¶
func (s *UsersService) DeleteUserBankAccount(username, label string, headers, queryParams map[string]interface{}) (*http.Response, error)
Delete a BankAccount
func (*UsersService) DeleteUserPhonenumber ¶
func (s *UsersService) DeleteUserPhonenumber(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Removes a phonenumber
func (*UsersService) DeleteUserRegistryEntry ¶
func (s *UsersService) DeleteUserRegistryEntry(key, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Removes a RegistryEntry from the user's registry
func (*UsersService) GenerateIyoID ¶ added in v1.0.0
func (s *UsersService) GenerateIyoID(username string, headers, queryParams map[string]interface{}) (IyoID, *http.Response, error)
Generate a new iyo id for this user
func (*UsersService) GetAPIkey ¶
func (s *UsersService) GetAPIkey(label, username string, headers, queryParams map[string]interface{}) (UserAPIKey, *http.Response, error)
Get an API key by label
func (*UsersService) GetAllAuthorizations ¶
func (s *UsersService) GetAllAuthorizations(username string, headers, queryParams map[string]interface{}) ([]Authorization, *http.Response, error)
Get the list of authorizations.
func (*UsersService) GetAuthorization ¶
func (s *UsersService) GetAuthorization(grantedTo, username string, headers, queryParams map[string]interface{}) (Authorization, *http.Response, error)
Get the authorization for a specific organization.
func (*UsersService) GetAvatarImage ¶ added in v0.9.15
func (s *UsersService) GetAvatarImage(hash string, headers, queryParams map[string]interface{}) (*http.Response, error)
Get the avatar file associated with this id
func (*UsersService) GetAvatars ¶ added in v0.9.15
func (s *UsersService) GetAvatars(username string, headers, queryParams map[string]interface{}) (Avatar, *http.Response, error)
List all avatars for the user
func (*UsersService) GetDigitalAssetAddressByLabel ¶
func (s *UsersService) GetDigitalAssetAddressByLabel(label, username string, headers, queryParams map[string]interface{}) (DigitalAssetAddress, *http.Response, error)
Get the details of a digital wallet address.
func (*UsersService) GetDigitalWallet ¶
func (s *UsersService) GetDigitalWallet(username string, headers, queryParams map[string]interface{}) ([]DigitalAssetAddress, *http.Response, error)
List all of the user his digital wallets.
func (*UsersService) GetEmailAddresses ¶
func (s *UsersService) GetEmailAddresses(username string, headers, queryParams map[string]interface{}) ([]EmailAddress, *http.Response, error)
Get a list of the user his email addresses.
func (*UsersService) GetKeyStore ¶ added in v0.9.15
func (s *UsersService) GetKeyStore(username string, headers, queryParams map[string]interface{}) ([]KeyStoreKey, *http.Response, error)
Lists all keys written to this users keystore by the accessing organization
func (*UsersService) GetKeyStoreKey ¶ added in v0.9.15
func (s *UsersService) GetKeyStoreKey(label, username string, headers, queryParams map[string]interface{}) (KeyStoreKey, *http.Response, error)
Gets the key written to this users keystore for the given label by the accessing organization
func (*UsersService) GetNotifications ¶
func (s *UsersService) GetNotifications(username string, headers, queryParams map[string]interface{}) (Notification, *http.Response, error)
Get the list of notifications, these are pending invitations or approvals or other requests.
func (*UsersService) GetPublicKey ¶ added in v0.9.9
func (s *UsersService) GetPublicKey(label, username string, headers, queryParams map[string]interface{}) (PublicKey, *http.Response, error)
Get a public key
func (*UsersService) GetSeeObject ¶ added in v0.9.15
func (s *UsersService) GetSeeObject(uniqueid, globalid, username string, headers, queryParams map[string]interface{}) (See, *http.Response, error)
Get a see object
func (*UsersService) GetSeeObjects ¶ added in v0.9.15
func (s *UsersService) GetSeeObjects(username string, headers, queryParams map[string]interface{}) ([]SeeView, *http.Response, error)
Get a list of all see objects.
func (*UsersService) GetTOTPSecret ¶
func (s *UsersService) GetTOTPSecret(username string, headers, queryParams map[string]interface{}) (TOTPSecret, *http.Response, error)
Get a TOTP secret and issuer that can be used for setting up two-factor authentication.
func (*UsersService) GetTwoFAMethods ¶
func (s *UsersService) GetTwoFAMethods(username string, headers, queryParams map[string]interface{}) (TwoFAMethods, *http.Response, error)
Get the possible two-factor authentication methods"
func (*UsersService) GetUserAddressByLabel ¶
func (s *UsersService) GetUserAddressByLabel(label, username string, headers, queryParams map[string]interface{}) (Address, *http.Response, error)
Get the details of an address.
func (*UsersService) GetUserAddresses ¶
func (s *UsersService) GetUserAddresses(username string, headers, queryParams map[string]interface{}) ([]Address, *http.Response, error)
List of all of the user his addresses.
func (*UsersService) GetUserBankAccountByLabel ¶
func (s *UsersService) GetUserBankAccountByLabel(username, label string, headers, queryParams map[string]interface{}) (BankAccount, *http.Response, error)
Get the details of a bank account
func (*UsersService) GetUserBankAccounts ¶
func (s *UsersService) GetUserBankAccounts(username string, headers, queryParams map[string]interface{}) ([]BankAccount, *http.Response, error)
List of the user his bank accounts.
func (*UsersService) GetUserContracts ¶
func (s *UsersService) GetUserContracts(username string, headers, queryParams map[string]interface{}) ([]Contract, *http.Response, error)
Get the contracts where the user is 1 of the parties. Order descending by date.
func (*UsersService) GetUserInformation ¶
func (s *UsersService) GetUserInformation(username string, headers, queryParams map[string]interface{}) (userview, *http.Response, error)
Get all of the user his information. This will be limited to the scopes that the user has authorized. See https://gig.gitbooks.io/itsyouonline/content/oauth2/scopes.html and https://gig.gitbooks.io/itsyouonline/content/oauth2/availableScopes.html for more information.
func (*UsersService) GetUserOrganizations ¶
func (s *UsersService) GetUserOrganizations(username string, headers, queryParams map[string]interface{}) (UserOrganizations, *http.Response, error)
Get the list organizations a user is owner or member of
func (*UsersService) GetUserPhoneNumbers ¶
func (s *UsersService) GetUserPhoneNumbers(username string, headers, queryParams map[string]interface{}) ([]Phonenumber, *http.Response, error)
List of all of the user his phone numbers.
func (*UsersService) GetUserPhonenumberByLabel ¶
func (s *UsersService) GetUserPhonenumberByLabel(label, username string, headers, queryParams map[string]interface{}) (Phonenumber, *http.Response, error)
Get the details of a phone number.
func (*UsersService) GetUserRegistryEntry ¶
func (s *UsersService) GetUserRegistryEntry(key, username string, headers, queryParams map[string]interface{}) (RegistryEntry, *http.Response, error)
Get a RegistryEntry from the user's registry.
func (*UsersService) LeaveOrganization ¶
func (s *UsersService) LeaveOrganization(globalid, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Removes the user from an organization
func (*UsersService) ListAPIKeys ¶
func (s *UsersService) ListAPIKeys(username string, headers, queryParams map[string]interface{}) ([]UserAPIKey, *http.Response, error)
Lists the API keys
func (*UsersService) ListIyoIds ¶ added in v1.0.0
func (s *UsersService) ListIyoIds(username string, headers, queryParams map[string]interface{}) (IyoID, *http.Response, error)
List all generated iyo ids generated for a user by a party
func (*UsersService) ListPublicKeys ¶ added in v0.9.9
func (s *UsersService) ListPublicKeys(username string, headers, queryParams map[string]interface{}) ([]PublicKey, *http.Response, error)
Lists all public keys
func (*UsersService) ListUserRegistry ¶
func (s *UsersService) ListUserRegistry(username string, headers, queryParams map[string]interface{}) ([]RegistryEntry, *http.Response, error)
Lists the Registry entries
func (*UsersService) LookupIyoID ¶ added in v1.0.0
func (s *UsersService) LookupIyoID(identifier string, headers, queryParams map[string]interface{}) (IyoID, *http.Response, error)
Lookup the username for an iyo id
func (*UsersService) RegisterNewDigitalAssetAddress ¶
func (s *UsersService) RegisterNewDigitalAssetAddress(username string, body DigitalAssetAddress, headers, queryParams map[string]interface{}) (DigitalAssetAddress, *http.Response, error)
Register a new digital asset address
func (*UsersService) RegisterNewEmailAddress ¶
func (s *UsersService) RegisterNewEmailAddress(username string, body EmailAddress, headers, queryParams map[string]interface{}) (EmailAddress, *http.Response, error)
Register a new email address
func (*UsersService) RegisterNewUserAddress ¶
func (s *UsersService) RegisterNewUserAddress(username string, body Address, headers, queryParams map[string]interface{}) (Address, *http.Response, error)
Register a new address
func (*UsersService) RegisterNewUserPhonenumber ¶
func (s *UsersService) RegisterNewUserPhonenumber(username string, body Phonenumber, headers, queryParams map[string]interface{}) (Phonenumber, *http.Response, error)
Register a new phonenumber
func (*UsersService) RejectMembership ¶ added in v0.9.15
func (s *UsersService) RejectMembership(globalid, role, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Reject membership invitation in an organization.
func (*UsersService) RemoveTOTP ¶
func (s *UsersService) RemoveTOTP(username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Disable TOTP two-factor authentication.
func (*UsersService) SaveKeyStoreKey ¶ added in v0.9.15
func (s *UsersService) SaveKeyStoreKey(username string, body KeyStoreKey, headers, queryParams map[string]interface{}) (KeyStoreKey, *http.Response, error)
Saves a new key to this users keystore. The username, globalid and timestamp will be overwritten
func (*UsersService) SetupTOTP ¶
func (s *UsersService) SetupTOTP(username string, body TOTPSecret, headers, queryParams map[string]interface{}) (*http.Response, error)
Enable two-factor authentication using TOTP.
func (*UsersService) SignSeeObject ¶ added in v0.9.15
func (s *UsersService) SignSeeObject(version, uniqueid, globalid, username string, body SeeView, headers, queryParams map[string]interface{}) (SeeView, *http.Response, error)
Sign a see object
func (*UsersService) UpdateAPIkey ¶
func (s *UsersService) UpdateAPIkey(label, username string, body UsersUsernameApikeysLabelPutReqBody, headers, queryParams map[string]interface{}) (*http.Response, error)
Updates the label for the API key
func (*UsersService) UpdateAuthorization ¶
func (s *UsersService) UpdateAuthorization(grantedTo, username string, body Authorization, headers, queryParams map[string]interface{}) (*http.Response, error)
Modify which information an organization is able to see.
func (*UsersService) UpdateAvatarFile ¶ added in v0.9.15
func (s *UsersService) UpdateAvatarFile(newlabel, label, username string, headers, queryParams map[string]interface{}) (Avatar, *http.Response, error)
Update the avatar and possibly the avatar file stored on itsyou.online
func (*UsersService) UpdateAvatarLink ¶ added in v0.9.15
func (s *UsersService) UpdateAvatarLink(label, username string, body Avatar, headers, queryParams map[string]interface{}) (Avatar, *http.Response, error)
Update the avatar and possibly the link to the avatar
func (*UsersService) UpdateDigitalAssetAddress ¶
func (s *UsersService) UpdateDigitalAssetAddress(label, username string, body DigitalAssetAddress, headers, queryParams map[string]interface{}) (*http.Response, error)
Update the label and/or value of an existing address.
func (*UsersService) UpdateEmailAddress ¶
func (s *UsersService) UpdateEmailAddress(label, username string, body EmailAddress, headers, queryParams map[string]interface{}) (*http.Response, error)
Updates the label and/or value of an email address
func (*UsersService) UpdatePassword ¶
func (s *UsersService) UpdatePassword(username string, body UsersUsernamePasswordPutReqBody, headers, queryParams map[string]interface{}) (*http.Response, error)
Update the user his password
func (*UsersService) UpdatePublicKey ¶ added in v0.9.9
func (s *UsersService) UpdatePublicKey(label, username string, body PublicKey, headers, queryParams map[string]interface{}) (PublicKey, *http.Response, error)
Upates the label and/or key of an existing public key
func (*UsersService) UpdateSeeObject ¶ added in v0.9.15
func (s *UsersService) UpdateSeeObject(uniqueid, globalid, username string, body SeeView, headers, queryParams map[string]interface{}) (SeeView, *http.Response, error)
Updates a see object
func (*UsersService) UpdateUserAddress ¶
func (s *UsersService) UpdateUserAddress(label, username string, body Address, headers, queryParams map[string]interface{}) (*http.Response, error)
Update the label and/or value of an existing address.
func (*UsersService) UpdateUserBankAccount ¶
func (s *UsersService) UpdateUserBankAccount(username, label string, body BankAccount, headers, queryParams map[string]interface{}) (BankAccount, *http.Response, error)
Update an existing bankaccount and label.
func (*UsersService) UpdateUserName ¶
func (s *UsersService) UpdateUserName(username string, body UsersUsernameNamePutReqBody, headers, queryParams map[string]interface{}) (*http.Response, error)
Update the user his firstname and lastname
func (*UsersService) UpdateUserPhonenumber ¶
func (s *UsersService) UpdateUserPhonenumber(label, username string, body Phonenumber, headers, queryParams map[string]interface{}) (*http.Response, error)
Update the label and/or value of an existing phonenumber.
func (*UsersService) ValidateEmailAddress ¶
func (s *UsersService) ValidateEmailAddress(label, username string, headers, queryParams map[string]interface{}) (*http.Response, error)
Sends validation email to email address
func (*UsersService) ValidatePhonenumber ¶
func (s *UsersService) ValidatePhonenumber(label, username string, headers, queryParams map[string]interface{}) (PhoneNumberValidation, *http.Response, error)
Sends a validation text message to the phone number.
func (*UsersService) VerifyPhoneNumber ¶
func (s *UsersService) VerifyPhoneNumber(label, username string, body UsersUsernamePhonenumbersLabelValidatePutReqBody, headers, queryParams map[string]interface{}) (*http.Response, error)
Verifies a phone number
type UsersUsernameApikeysLabelPutReqBody ¶
type UsersUsernameApikeysLabelPutReqBody struct {
Label Label `json:"label" validate:"nonzero"`
}
func (UsersUsernameApikeysLabelPutReqBody) Validate ¶
func (s UsersUsernameApikeysLabelPutReqBody) Validate() error
type UsersUsernameApikeysPostReqBody ¶
type UsersUsernameApikeysPostReqBody struct {
Label Label `json:"label" validate:"nonzero"`
}
func (UsersUsernameApikeysPostReqBody) Validate ¶
func (s UsersUsernameApikeysPostReqBody) Validate() error
type UsersUsernameNamePutReqBody ¶
type UsersUsernameNamePutReqBody struct { Firstname string `json:"firstname" validate:"nonzero"` Lastname string `json:"lastname" validate:"nonzero"` }
func (UsersUsernameNamePutReqBody) Validate ¶
func (s UsersUsernameNamePutReqBody) Validate() error
type UsersUsernamePasswordPutReqBody ¶
type UsersUsernamePasswordPutReqBody struct { Currentpassword string `json:"currentpassword" validate:"nonzero"` Newpassword string `json:"newpassword" validate:"nonzero"` }
func (UsersUsernamePasswordPutReqBody) Validate ¶
func (s UsersUsernamePasswordPutReqBody) Validate() error
type UsersUsernamePhonenumbersLabelValidatePutReqBody ¶ added in v0.9.14
type UsersUsernamePhonenumbersLabelValidatePutReqBody struct { Smscode string `json:"smscode" validate:"nonzero"` Validationkey string `json:"validationkey" validate:"nonzero"` }
func (UsersUsernamePhonenumbersLabelValidatePutReqBody) Validate ¶ added in v0.9.14
func (s UsersUsernamePhonenumbersLabelValidatePutReqBody) Validate() error
type ValidityTime ¶ added in v1.0.0
type ValidityTime int
func (ValidityTime) Validate ¶ added in v1.0.0
func (s ValidityTime) Validate() error
Source Files ¶
- APIKeyLabel.go
- Address.go
- Authorization.go
- AuthorizationMap.go
- Avatar.go
- BankAccount.go
- Company.go
- Contract.go
- ContractSigningRequest.go
- CreateGrantBody.go
- DigitalAssetAddress.go
- DigitalWalletAuthorization.go
- DnsAddress.go
- EmailAddress.go
- EnumJoinOrganizationInvitationMethod.go
- EnumJoinOrganizationInvitationRole.go
- EnumJoinOrganizationInvitationStatus.go
- Error.go
- FacebookAccount.go
- GetOrganizationUsersResponseBody.go
- GithubAccount.go
- Grant.go
- IsMember.go
- IyoID.go
- JoinOrganizationInvitation.go
- KeyData.go
- KeyStoreKey.go
- Label.go
- LocalizedInfoText.go
- Member.go
- Membership.go
- MissingScopes.go
- Notification.go
- Organization.go
- OrganizationAPIKey.go
- OrganizationLogo.go
- OrganizationTreeItem.go
- OrganizationUser.go
- OrganizationsGlobalidApikeysLabelPutReqBody.go
- OrganizationsGlobalidMembersPostReqBody.go
- OrganizationsGlobalidOrgmembersIncludesuborgsPostReqBody.go
- OrganizationsGlobalidOrgmembersPostReqBody.go
- OrganizationsGlobalidOrgmembersPutReqBody.go
- OrganizationsGlobalidOrgownersPostReqBody.go
- Ownerof.go
- Party.go
- PhoneNumberValidation.go
- Phonenumber.go
- PublicKey.go
- RegistryEntry.go
- RequiredScope.go
- See.go
- SeeVersion.go
- SeeView.go
- Signature.go
- TOTPSecret.go
- TwoFAMethods.go
- UpdateGrantBody.go
- User.go
- UserAPIKey.go
- UserGrants.go
- UserOrganizations.go
- UsersUsernameApikeysLabelPutReqBody.go
- UsersUsernameApikeysPostReqBody.go
- UsersUsernameNamePutReqBody.go
- UsersUsernamePasswordPutReqBody.go
- UsersUsernamePhonenumbersLabelValidatePutReqBody.go
- ValidityTime.go
- client_itsyouonline.go
- client_utils.go
- companyview.go
- oauth.go
- oauth2_client_oauth_2_0.go
- organizations_service.go
- users_service.go
- userview.go