organization

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: 30 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultLanguage = "en"
)
View Source
const ItsyouonlineClientID = "itsyouonline"

Variables

This section is empty.

Functions

func OrganizationsInterfaceRoutes

func OrganizationsInterfaceRoutes(r *mux.Router, i OrganizationsInterface)

OrganizationsInterfaceRoutes is routing for /organizations root endpoint

func SearchUser

func SearchUser(r *http.Request, searchString string) (*user.User, error)

SearchUser identifies a user based on a valid user identifier

Types

type APIKey

type APIKey struct {
	CallbackURL                string `json:"callbackURL,omitempty" validate:"max=250"`
	ClientCredentialsGrantType bool   `json:"clientCredentialsGrantType,omitempty"`
	Label                      string `json:"label" validate:"min=2,max=50, pattern=^[a-zA-Z\d\-_\s]{2,50}$"`
	Secret                     string `json:"secret,omitempty" validate:"max=250,nonzero"`
}

func FromOAuthClient

func FromOAuthClient(client *oauthservice.Oauth2Client) APIKey

FromOAuthClient creates an APIKey instance from an oauthservice.Oauth2Client

func (APIKey) Validate added in v0.9.9

func (a APIKey) Validate() bool

type DnsAddress

type DnsAddress struct {
	Name string `json:"name" validate:"min=4,max=250,nonzero,regexp=^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$"`
}

func (DnsAddress) Validate added in v0.9.9

func (d DnsAddress) Validate() bool

type Membership

type Membership struct {
	Username string `json:"username"`
	Role     string `json:"role"`
}

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) CheckScopes

func (om *Oauth2oauth_2_0Middleware) CheckScopes(scopes []string) bool

CheckScopes checks whether user has needed scopes

func (*Oauth2oauth_2_0Middleware) Handler

Handler return HTTP handler representation of this middleware

type OrganizationTreeItem

type OrganizationTreeItem struct {
	Children []*OrganizationTreeItem `json:"children"`
	GlobalID string                  `json:"globalid"`
}

type OrganizationsAPI

type OrganizationsAPI struct {
	PhonenumberValidationService  *validation.IYOPhonenumberValidationService
	EmailAddressValidationService *validation.IYOEmailAddressValidationService
}

OrganizationsAPI is the implementation for /organizations root endpoint

func (OrganizationsAPI) AcceptOrganizationInvite added in v0.9.10

func (api OrganizationsAPI) AcceptOrganizationInvite(w http.ResponseWriter, r *http.Request)

AcceptOrganizationInvite is the handler for POST /organizations/{globalid}/organizations/{invitingorg}/roles/{role} Accept the organization invite for one of your organizations

func (OrganizationsAPI) AddIncludeSubOrgsOf added in v0.9.10

func (api OrganizationsAPI) AddIncludeSubOrgsOf(w http.ResponseWriter, r *http.Request)

AddIncludeSubOrgsOf is the handler for POST /organization/{globalid}/orgmembers/includesuborgs Include the suborganizations of the given organization in the member/owner hierarchy of this organization

func (OrganizationsAPI) AddOrganizationMember

func (api OrganizationsAPI) AddOrganizationMember(w http.ResponseWriter, r *http.Request)

AddOrganizationMember Assign a member to organization It is handler for POST /organizations/{globalid}/members

func (OrganizationsAPI) AddOrganizationOwner

func (api OrganizationsAPI) AddOrganizationOwner(w http.ResponseWriter, r *http.Request)

AddOrganizationOwner It is handler for POST /organizations/{globalid}/owners

func (OrganizationsAPI) AddOrganizationRegistryEntry

func (api OrganizationsAPI) AddOrganizationRegistryEntry(w http.ResponseWriter, r *http.Request)

AddOrganizationRegistryEntry is the handler for POST /organizations/{globalid}/registry Adds a RegistryEntry to the organization's registry, if the key is already used, it is overwritten.

func (OrganizationsAPI) AddRequiredScope

func (api OrganizationsAPI) AddRequiredScope(w http.ResponseWriter, r *http.Request)

AddRequiredScope is the handler for POST /organizations/{globalid}/requiredscope Adds a required scope

func (OrganizationsAPI) CreateNewAPIKey

func (api OrganizationsAPI) CreateNewAPIKey(w http.ResponseWriter, r *http.Request)

CreateNewAPIKey is the handler for POST /organizations/{globalid}/apikeys Create a new API Key, a secret itself should not be provided, it will be generated serverside.

func (OrganizationsAPI) CreateNewOrganization

func (api OrganizationsAPI) CreateNewOrganization(w http.ResponseWriter, r *http.Request)

CreateNewOrganization is the handler for POST /organizations 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 (OrganizationsAPI) CreateNewSubOrganization

func (api OrganizationsAPI) CreateNewSubOrganization(w http.ResponseWriter, r *http.Request)

CreateNewSubOrganization is the handler for POST /organizations/{globalid} Create a new suborganization.

func (OrganizationsAPI) CreateOrganizationDns

func (api OrganizationsAPI) CreateOrganizationDns(w http.ResponseWriter, r *http.Request)

CreateOrganizationDns is the handler for POST /organizations/{globalid}/dns Adds a dns address to an organization

func (OrganizationsAPI) CreateUserGrant added in v1.0.0

func (api OrganizationsAPI) CreateUserGrant(w http.ResponseWriter, r *http.Request)

CreateUserGrant gives a new grant to a user

func (OrganizationsAPI) DeleteAPIKey

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

DeleteAPIKey is the handler for DELETE /organizations/{globalid}/apikeys/{label} Removes an API key

func (OrganizationsAPI) DeleteAllUserGrants added in v1.0.0

func (api OrganizationsAPI) DeleteAllUserGrants(w http.ResponseWriter, r *http.Request)

DeleteAllUserGrants removes all grants for a user given by an organization

func (OrganizationsAPI) DeleteDescription

func (api OrganizationsAPI) DeleteDescription(w http.ResponseWriter, r *http.Request)

DeleteDescription is the handler for GET /organizations/{globalid}/description/{langkey} Delete the description for this organization for this langKey

func (OrganizationsAPI) DeleteOrgMember

func (api OrganizationsAPI) DeleteOrgMember(w http.ResponseWriter, r *http.Request)

DeleteOrgMember is the handler for Delete /organizations/globalid/orgmember/globalid2 Removes an organization as a member of this one.

func (OrganizationsAPI) DeleteOrgOwner

func (api OrganizationsAPI) DeleteOrgOwner(w http.ResponseWriter, r *http.Request)

DeleteOrgOwner is the handler for Delete /organizations/globalid/orgowner/globalid2 Removes an organization as an owner of this one.

func (OrganizationsAPI) DeleteOrganization

func (api OrganizationsAPI) DeleteOrganization(w http.ResponseWriter, r *http.Request)

DeleteOrganization is the handler for DELETE /organizations/{globalid} Deletes an organization and all data linked to it (join-organization-invitations, oauth_access_tokens, oauth_clients, authorizations)

func (OrganizationsAPI) DeleteOrganizationDns

func (api OrganizationsAPI) DeleteOrganizationDns(w http.ResponseWriter, r *http.Request)

DeleteOrganizationDns is the handler for DELETE /organizations/{globalid}/dns/{dnsname} Removes a DNS name associated with an organization

func (api OrganizationsAPI) DeleteOrganizationLogo(w http.ResponseWriter, r *http.Request)

DeleteOrganizationLogo is the handler for DELETE /organizations/globalid/logo Removes the Logo from an organization

func (OrganizationsAPI) DeleteOrganizationRegistryEntry

func (api OrganizationsAPI) DeleteOrganizationRegistryEntry(w http.ResponseWriter, r *http.Request)

DeleteOrganizationRegistryEntry is the handler for DELETE /organizations/{username}/globalid/{key} Removes a RegistryEntry from the organization's registry

func (OrganizationsAPI) DeleteRequiredScope

func (api OrganizationsAPI) DeleteRequiredScope(w http.ResponseWriter, r *http.Request)

DeleteRequiredScope is the handler for DELETE /organizations/{globalid}/requiredscope/{requiredscope} Updates a required scope

func (OrganizationsAPI) DeleteUserGrant added in v1.0.0

func (api OrganizationsAPI) DeleteUserGrant(w http.ResponseWriter, r *http.Request)

DeleteUserGrant removes a single named grant for the user

func (OrganizationsAPI) Get2faValidityTime

func (api OrganizationsAPI) Get2faValidityTime(w http.ResponseWriter, r *http.Request)

Get2faValidityTime is the handler for GET /organizations/globalid/2fa/validity Get the 2fa validity time for the organization, in seconds

func (OrganizationsAPI) GetAPIKey

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

GetAPIKey is the handler for GET /organizations/{globalid}/apikeys/{label}

func (OrganizationsAPI) GetAPIKeyLabels

func (api OrganizationsAPI) GetAPIKeyLabels(w http.ResponseWriter, r *http.Request)

GetAPIKeyLabels is the handler for GET /organizations/{globalid}/apikeys Get the list of active api keys. The secrets themselves are not included.

func (OrganizationsAPI) GetContracts

func (api OrganizationsAPI) GetContracts(w http.ResponseWriter, r *http.Request)

GetContracts is the handler for GET /organizations/{globalid}/contracts Get the contracts where the organization is 1 of the parties. Order descending by date.

func (OrganizationsAPI) GetDescription

func (api OrganizationsAPI) GetDescription(w http.ResponseWriter, r *http.Request)

GetDescription is the handler for GET /organizations/{globalid}/description/{langkey} Get the description for this organization for this langKey

func (OrganizationsAPI) GetDescriptionWithFallback

func (api OrganizationsAPI) GetDescriptionWithFallback(w http.ResponseWriter, r *http.Request)

GetDescriptionWithFallback is the handler for GET /organizations/{globalid}/description/{langkey}/withfallback Get the description for this organization for this langKey. If it doesn't exist, get the desription for the default langKey

func (OrganizationsAPI) GetInvitations added in v0.9.9

func (api OrganizationsAPI) GetInvitations(w http.ResponseWriter, r *http.Request)

GetInvitations is the handler for GET /organizations/{globalid}/invitations Get the list of pending invitations for users to join this organization.

func (OrganizationsAPI) GetOrganization

func (api OrganizationsAPI) GetOrganization(w http.ResponseWriter, r *http.Request)

GetOrganization Get organization info It is handler for GET /organizations/{globalid}

func (api OrganizationsAPI) GetOrganizationLogo(w http.ResponseWriter, r *http.Request)

GetOrganizationLogo is the handler for GET /organizations/globalid/logo Get the Logo from an organization

func (OrganizationsAPI) GetOrganizationRegistryEntry

func (api OrganizationsAPI) GetOrganizationRegistryEntry(w http.ResponseWriter, r *http.Request)

GetOrganizationRegistryEntry is the handler for GET /organizations/{username}/globalid/{key} Get a RegistryEntry from the organization's registry.

func (OrganizationsAPI) GetOrganizationTree

func (api OrganizationsAPI) GetOrganizationTree(w http.ResponseWriter, r *http.Request)

GetOrganizationTree is the handler for GET /organizations/{globalid}/tree Get organization tree.

func (OrganizationsAPI) GetOrganizationUsers

func (api OrganizationsAPI) GetOrganizationUsers(w http.ResponseWriter, r *http.Request)

GetOrganizationUsers is the handler for GET /organizations/{globalid}/users Get the list of all users in this organization

func (OrganizationsAPI) GetUserGrants added in v1.0.0

func (api OrganizationsAPI) GetUserGrants(w http.ResponseWriter, r *http.Request)

GetUserGrants lists all grants for a user

func (OrganizationsAPI) ListOrganizationRegistry

func (api OrganizationsAPI) ListOrganizationRegistry(w http.ResponseWriter, r *http.Request)

ListOrganizationRegistry is the handler for GET /organizations/{globalid}/registry Lists the Registry entries

func (OrganizationsAPI) ListUsersWithGrant added in v1.0.0

func (api OrganizationsAPI) ListUsersWithGrant(w http.ResponseWriter, r *http.Request)

ListUsersWithGrant lists all users with a given grant

func (OrganizationsAPI) RegisterNewContract

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

RegisterNewContract is handler for POST /organizations/{globalId}/contracts

func (OrganizationsAPI) RejectOrganizationInvite added in v0.9.10

func (api OrganizationsAPI) RejectOrganizationInvite(w http.ResponseWriter, r *http.Request)

RejectOrganizationInvite is the handler for DELETE /organizations/{globalid}/organizations/{invitingorg}/role/{role} Reject the organization invite for one of your organizations

func (OrganizationsAPI) RemoveIncludeSubOrgsOf added in v0.9.10

func (api OrganizationsAPI) RemoveIncludeSubOrgsOf(w http.ResponseWriter, r *http.Request)

RemoveIncludeSubOrgsOf is the handler for DELETE /organization/{globalid}/orgmembers/includesuborgs/{orgmember} Removes the suborganizations of the given organization from the member/owner hierarchy of this organization

func (OrganizationsAPI) RemoveOrganizationMember

func (api OrganizationsAPI) RemoveOrganizationMember(w http.ResponseWriter, r *http.Request)

RemoveOrganizationMember Remove a member from organization It is handler for DELETE /organizations/{globalid}/members/{username}

func (OrganizationsAPI) RemoveOrganizationOwner

func (api OrganizationsAPI) RemoveOrganizationOwner(w http.ResponseWriter, r *http.Request)

RemoveOrganizationOwner Remove a member from organization It is handler for DELETE /organizations/{globalid}/owners/{username}

func (OrganizationsAPI) RemovePendingInvitation

func (api OrganizationsAPI) RemovePendingInvitation(w http.ResponseWriter, r *http.Request)

RemovePendingInvitation is the handler for DELETE /organizations/{globalid}/invitations/{username} Cancel a pending invitation.

func (OrganizationsAPI) Set2faValidityTime

func (api OrganizationsAPI) Set2faValidityTime(w http.ResponseWriter, r *http.Request)

Set2faValidityTime is the handler for PUT /organizations/globalid/2fa/validity Sets the 2fa validity time for the organization, in days

func (OrganizationsAPI) SetDescription

func (api OrganizationsAPI) SetDescription(w http.ResponseWriter, r *http.Request)

SetDescription is the handler for POST /organizations/{globalid}/description Set the description for this organization for this langKey

func (OrganizationsAPI) SetOrgMember

func (api OrganizationsAPI) SetOrgMember(w http.ResponseWriter, r *http.Request)

SetOrgMember is the handler for POST /organizations/{globalid}/orgmember Sets an organization as a member of this one.

func (OrganizationsAPI) SetOrgOwner

func (api OrganizationsAPI) SetOrgOwner(w http.ResponseWriter, r *http.Request)

SetOrgOwner is the handler for POST /organizations/globalid/orgowner Sets an organization as an owner of this one.

func (api OrganizationsAPI) SetOrganizationLogo(w http.ResponseWriter, r *http.Request)

SetOrganizationLogo is the handler for PUT /organizations/globalid/logo Set the organization Logo for the organization

func (OrganizationsAPI) UpdateAPIKey

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

UpdateAPIKey is the handler for PUT /organizations/{globalid}/apikeys/{label} Updates the label or other properties of a key.

func (OrganizationsAPI) UpdateDescription

func (api OrganizationsAPI) UpdateDescription(w http.ResponseWriter, r *http.Request)

UpdateDescription is the handler for PUT /organizations/{globalid}/description Updates the description for this organization for this langKey

func (OrganizationsAPI) UpdateOrganizationDns

func (api OrganizationsAPI) UpdateOrganizationDns(w http.ResponseWriter, r *http.Request)

UpdateOrganizationDns is the handler for PUT /organizations/{globalid}/dns/{dnsname} Updates an existing DNS name associated with an organization

func (OrganizationsAPI) UpdateOrganizationMemberShip

func (api OrganizationsAPI) UpdateOrganizationMemberShip(w http.ResponseWriter, r *http.Request)

func (OrganizationsAPI) UpdateOrganizationOrgMemberShip

func (api OrganizationsAPI) UpdateOrganizationOrgMemberShip(w http.ResponseWriter, r *http.Request)

func (OrganizationsAPI) UpdateRequiredScope

func (api OrganizationsAPI) UpdateRequiredScope(w http.ResponseWriter, r *http.Request)

UpdateRequiredScope is the handler for PUT /organizations/{globalid}/requiredscope/{requiredscope} Updates a required scope

func (OrganizationsAPI) UpdateUserGrant added in v1.0.0

func (api OrganizationsAPI) UpdateUserGrant(w http.ResponseWriter, r *http.Request)

UpdateUserGrant changes an existing grant to a new one

func (OrganizationsAPI) UserIsMember added in v0.9.12

func (api OrganizationsAPI) UserIsMember(w http.ResponseWriter, r *http.Request)

UserIsMember is the handler for GET /organization/{globalid}/users/ismember/{username} Checks if the user has membership rights on the organization

type OrganizationsInterface

type OrganizationsInterface interface {
	// 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.
	CreateNewOrganization(http.ResponseWriter, *http.Request)
	// GetOrganization is the handler for GET /organizations/{globalid}
	// Get organization info
	GetOrganization(http.ResponseWriter, *http.Request)
	// CreateNewSubOrganization is the handler for POST /organizations/{globalid}
	// Create a new suborganization.
	CreateNewSubOrganization(http.ResponseWriter, *http.Request)
	// DeleteOrganization is the handler for DELETE /organizations/{globalid}
	// Removes an organization and all associated data.
	DeleteOrganization(http.ResponseWriter, *http.Request)
	// GetAPIKeyLabels is the handler for GET /organizations/{globalid}/apikeys
	// Get the list of active api keys. The secrets themselves are not included.
	GetAPIKeyLabels(http.ResponseWriter, *http.Request)
	// CreateNewAPIKey is the handler for POST /organizations/{globalid}/apikeys
	// Create a new API Key, a secret itself should not be provided, it will be generated
	// serverside.
	CreateNewAPIKey(http.ResponseWriter, *http.Request)
	// GetAPIKey is the handler for GET /organizations/{globalid}/apikeys/{label}
	GetAPIKey(http.ResponseWriter, *http.Request)
	// UpdateAPIKey is the handler for PUT /organizations/{globalid}/apikeys/{label}
	// Updates the label or other properties of a key.
	UpdateAPIKey(http.ResponseWriter, *http.Request)
	// DeleteAPIKey is the handler for DELETE /organizations/{globalid}/apikeys/{label}
	// Removes an API key
	DeleteAPIKey(http.ResponseWriter, *http.Request)
	// GetOrganizationTree is the handler for GET /organizations/{globalid}/tree
	GetOrganizationTree(http.ResponseWriter, *http.Request)
	// UpdateOrganizationMemberShip is the handler for PUT /organizations/{globalid}/members
	UpdateOrganizationMemberShip(http.ResponseWriter, *http.Request)
	// AddOrganizationMember is the handler for POST /organizations/{globalid}/members
	// Assign a member to organization.
	AddOrganizationMember(http.ResponseWriter, *http.Request)
	// RemoveOrganizationMember is the handler for DELETE /organizations/{globalid}/members/{username}
	// Remove a member from organization
	RemoveOrganizationMember(http.ResponseWriter, *http.Request)
	// AddOrganizationOwner is the handler for POST /organizations/{globalid}/owners
	// Invite a user to become owner of an organization.
	AddOrganizationOwner(http.ResponseWriter, *http.Request)
	RemoveOrganizationOwner(http.ResponseWriter, *http.Request)
	// GetContracts is the handler for GET /organizations/{globalid}/contracts
	// Get the contracts where the organization is 1 of the parties. Order descending by
	// date.
	GetContracts(http.ResponseWriter, *http.Request)
	// GetInvitations is the handler for GET /organizations/{globalid}/invitations
	// Get the list of invitations for users to join this organization.
	GetInvitations(http.ResponseWriter, *http.Request)
	// RegisterNewContract is handler for POST /organizations/{globalId}/contracts
	RegisterNewContract(http.ResponseWriter, *http.Request)
	// RemovePendingInvitation is the handler for DELETE /organizations/{globalid}/invitations/{username}
	// Cancel a pending invitation.
	RemovePendingInvitation(http.ResponseWriter, *http.Request)
	// CreateOrganizationDns is the handler for POST /organizations/{globalid}/dns
	// Creates a new DNS name associated with an organization
	CreateOrganizationDns(http.ResponseWriter, *http.Request)
	// UpdateOrganizationDns is the handler for PUT /organizations/{globalid}/dns/{dnsname}
	// Updates an existing DNS name associated with an organization
	UpdateOrganizationDns(http.ResponseWriter, *http.Request)
	// DeleteOrganizationDns is the handler for DELETE /organizations/{globalid}/dns/{dnsname}
	// Removes a DNS name associated with an organization
	DeleteOrganizationDns(http.ResponseWriter, *http.Request)
	// ListOrganizationRegistry is the handler for GET /organizations/{globalid}/registry
	// Lists the Registry entries
	ListOrganizationRegistry(http.ResponseWriter, *http.Request)
	// AddOrganizationRegistryEntry is the handler for POST /organizations/{globalid}/registry
	// Adds a RegistryEntry to the organization's registry, if the key is already used, it is overwritten.
	AddOrganizationRegistryEntry(http.ResponseWriter, *http.Request)
	// GetOrganizationRegistryEntry is the handler for GET /organizations/{username}/globalid/{key}
	// Get a RegistryEntry from the organization's registry.
	GetOrganizationRegistryEntry(http.ResponseWriter, *http.Request)
	// DeleteOrganizationRegistryEntry is the handler for DELETE /organizations/{username}/globalid/{key}
	// Removes a RegistryEntry from the organization's registry
	DeleteOrganizationRegistryEntry(http.ResponseWriter, *http.Request)
	// Set the organization Logo for the organization
	SetOrganizationLogo(http.ResponseWriter, *http.Request)
	// Get the Logo from an organization
	GetOrganizationLogo(http.ResponseWriter, *http.Request)
	// Removes the Logo from an organization
	DeleteOrganizationLogo(http.ResponseWriter, *http.Request)
	// Get2faValidityTime is the handler for GET /organizations/globalid/2fa/validity
	// Get the 2fa validity time for the organization, in seconds
	Get2faValidityTime(w http.ResponseWriter, r *http.Request)
	// Set2faValidityTime is the handler for PUT /organizations/globalid/2fa/validity
	// Sets the 2fa validity time for the organization, in seconds
	Set2faValidityTime(w http.ResponseWriter, r *http.Request)
	// SetOrgMember is the handler for POST /organizations/globalid/orgmembers
	// Sets an organization as a member of this one.
	SetOrgMember(w http.ResponseWriter, r *http.Request)
	// SetOrgOwner is the handler for POST /organizations/globalid/orgowners
	// Sets an organization as an owner of this one.
	SetOrgOwner(w http.ResponseWriter, r *http.Request)
	// DeleteOrgMember is the handler for Delete /organizations/globalid/orgmembers/globalid2
	// Removes an organization as a member of this one.
	DeleteOrgMember(w http.ResponseWriter, r *http.Request)
	// DeleteOrgOwner is the handler for Delete /organizations/globalid/orgowners/globalid2
	// Removes an organization as an owner of this one.
	DeleteOrgOwner(w http.ResponseWriter, r *http.Request)
	// UpdateOrganizationOrgMemberShip is the handler for Put /organizations/globalid/orgmembers
	// Updates an organizations membership as part of another organization
	UpdateOrganizationOrgMemberShip(w http.ResponseWriter, r *http.Request)
	// AddRequiredScope is the handler for POST /organizations/globalid/requiredscopes
	// Adds a required scope
	AddRequiredScope(w http.ResponseWriter, r *http.Request)
	// UpdateRequiredScope is the handler for PUT /organizations/globalid/requiredscopes/{requiredscope}
	// Updates a required scope
	UpdateRequiredScope(w http.ResponseWriter, r *http.Request)
	// DeleteRequiredScope is the handler for DELETE /organizations/globalid/requiredscopes/{requiredscope}
	// Deletes a required scope
	DeleteRequiredScope(w http.ResponseWriter, r *http.Request)
	// GetOrganizationUsers is the handler for GET /organizations/{globalid}/members
	// Get the list of all users in this organization
	GetOrganizationUsers(w http.ResponseWriter, r *http.Request)
	// GetDescription is the handler for GET /organizations/{globalid}/description/{langkey}
	// Get the description for this organization for this langKey
	GetDescription(w http.ResponseWriter, r *http.Request)
	// DeleteDescription is the handler for DELETE /organizations/{globalid}/description/{langkey}
	// Delete the description for this organization for this langKey
	DeleteDescription(w http.ResponseWriter, r *http.Request)
	// SetDescription is the handler for POST /organizations/{globalid}/description
	// Set the description for this organization for this langKey
	SetDescription(w http.ResponseWriter, r *http.Request)
	// UpdateDescription is the handler for PUT /organizations/{globalid}/description
	// Updates the description for this organization for this langKey
	UpdateDescription(w http.ResponseWriter, r *http.Request)
	// GetDescriptionWithFallback is the handler for GET /organizations/{globalid}/description/{langkey}/withfallback
	// Get the description for this organization for this langKey. If it doesn't exist, get the desription for the default langKey
	GetDescriptionWithFallback(w http.ResponseWriter, r *http.Request)
	// AcceptOrganizationInvite is the handler for POST /organizations/{globalid}/organizations/{invitingorg}/roles/{role}
	// Accept the organization invite for one of your organizations
	AcceptOrganizationInvite(w http.ResponseWriter, r *http.Request)
	// Rejectorganizationinvite is the handler for DELETE /organization/{globalid}/organizations/{invitingorg}/roles/{role}
	// Reject the organization invite for one of your organizations
	RejectOrganizationInvite(w http.ResponseWriter, r *http.Request)
	// AddIncludeSubOrgsOf is the handler for POST /organization/{globalid}/orgmembers/includesuborgs
	// Include the suborganizations of the given organization in the member/owner hierarchy of this organization
	AddIncludeSubOrgsOf(w http.ResponseWriter, r *http.Request)
	// RemoveIncludeSubOrgsOf is the handler for DELETE /organization/{globalid}/orgmembers/includesuborgs/{orgmember}
	// Removes the suborganizations of the given organization from the member/owner hierarchy of this organization
	RemoveIncludeSubOrgsOf(w http.ResponseWriter, r *http.Request)
	// UserIsMember is the handler for GET /organization/{globalid}/users/ismember/{username}
	// Checks if the user has membership rights on the organization
	UserIsMember(w http.ResponseWriter, r *http.Request)
	// GetUserGrants is the handler for GET /organization/{globalid}/grants/{user}
	// Lists all grants for a user
	GetUserGrants(w http.ResponseWriter, r *http.Request)
	// DeleteUserGrant is the handler for DELETE /organization/{globalid}/grants/{user}/{grant}
	// Removes a single named grant for the user
	DeleteUserGrant(w http.ResponseWriter, r *http.Request)
	// DeleteAllUserGrants is the handler for DELETE /organization/{globalid}/grants/{user}
	// Removes all grants for a user given by an organization
	DeleteAllUserGrants(w http.ResponseWriter, r *http.Request)
	// CreateUserGrant is the handler for POST /organization/{globalid}/grants
	// Gives a new grant to a user
	CreateUserGrant(w http.ResponseWriter, r *http.Request)
	// UpdateUserGrant is the handler for PUT /organization/{globalid}/grants
	// Changes an existing grant to a new one
	UpdateUserGrant(w http.ResponseWriter, r *http.Request)
	// ListUsersWithGrant is the handler for GET /organization/{globalid}/grants/havegrant/{grant}
	// Lists all users with a given grant
	ListUsersWithGrant(w http.ResponseWriter, r *http.Request)
}

OrganizationsInterface is interface for /organizations root endpoint

Jump to

Keyboard shortcuts

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