Documentation ¶
Index ¶
- func InitClient(APIGwURL string, eventService events.Service)
- type Client
- func (osc *Client) CreateOrg(ctx context.Context, companyName, signingEntityName, companyWebsite string) (*models.Organization, error)
- func (osc *Client) CreateOrgUserRoleOrgScope(ctx context.Context, emailID string, organizationID string, roleID string) error
- func (osc *Client) CreateOrgUserRoleOrgScopeProjectOrg(ctx context.Context, emailID string, projectID string, organizationID string, ...) error
- func (osc *Client) DeleteOrgUserRoleOrgScopeProjectOrg(ctx context.Context, organizationID string, roleID string, scopeID string, ...) error
- func (osc *Client) DeleteRolePermissions(ctx context.Context, organizationID, projectID, role string, ...) error
- func (osc *Client) GetOrganization(ctx context.Context, orgID string) (*models.Organization, error)
- func (osc *Client) GetScopeID(ctx context.Context, organizationID string, projectID string, roleName string, ...) (string, error)
- func (osc *Client) IsCompanyOwner(ctx context.Context, userSFID string, orgs []string) (bool, error)
- func (osc *Client) IsUserHaveRoleScope(ctx context.Context, roleName string, userSFID string, organizationID string, ...) (bool, error)
- func (osc *Client) ListOrg(ctx context.Context, orgName string) (*models.OrganizationList, error)
- func (osc *Client) ListOrgUserAdminScopes(ctx context.Context, orgID string, role *string) (*models.UserrolescopesList, error)
- func (osc *Client) ListOrgUserScopes(ctx context.Context, orgID string, roleName []string) (*models.UserrolescopesList, error)
- func (osc *Client) SearchOrgLookup(ctx context.Context, orgName, websiteName *string) (*organizations.LookupOK, error)
- func (osc *Client) SearchOrganization(ctx context.Context, orgName string, websiteName string, filter string) ([]*models.Organization, error)
- func (osc *Client) UpdateOrg(ctx context.Context, existingCompanyModel *models.Organization, ...) (*models.Organization, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitClient ¶
InitClient initializes the user_service client
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is client for organization_service
func (*Client) CreateOrg ¶
func (osc *Client) CreateOrg(ctx context.Context, companyName, signingEntityName, companyWebsite string) (*models.Organization, error)
CreateOrg creates company based on name and website with additional data for required fields
func (*Client) CreateOrgUserRoleOrgScope ¶
func (osc *Client) CreateOrgUserRoleOrgScope(ctx context.Context, emailID string, organizationID string, roleID string) error
CreateOrgUserRoleOrgScope attached role scope for particular org and user
func (*Client) CreateOrgUserRoleOrgScopeProjectOrg ¶
func (osc *Client) CreateOrgUserRoleOrgScopeProjectOrg(ctx context.Context, emailID string, projectID string, organizationID string, roleID string) error
CreateOrgUserRoleOrgScopeProjectOrg assigns role scope to user
func (*Client) DeleteOrgUserRoleOrgScopeProjectOrg ¶
func (osc *Client) DeleteOrgUserRoleOrgScopeProjectOrg(ctx context.Context, organizationID string, roleID string, scopeID string, userName *string, userEmail *string) error
DeleteOrgUserRoleOrgScopeProjectOrg removes role scope for user
func (*Client) DeleteRolePermissions ¶
func (osc *Client) DeleteRolePermissions(ctx context.Context, organizationID, projectID, role string, authUser *auth.User) error
DeleteRolePermissions removes the specified Org/Project user permissions for with the given role
func (*Client) GetOrganization ¶
GetOrganization gets organization from organization id
func (*Client) GetScopeID ¶
func (osc *Client) GetScopeID(ctx context.Context, organizationID string, projectID string, roleName string, objectTypeName string, userLFID string) (string, error)
GetScopeID will return scopeID for a give role
func (*Client) IsCompanyOwner ¶
func (osc *Client) IsCompanyOwner(ctx context.Context, userSFID string, orgs []string) (bool, error)
IsCompanyOwner checks if User is company owner
func (*Client) IsUserHaveRoleScope ¶
func (osc *Client) IsUserHaveRoleScope(ctx context.Context, roleName string, userSFID string, organizationID string, projectSFID string) (bool, error)
IsUserHaveRoleScope checks if user have required role and scope
func (*Client) ListOrgUserAdminScopes ¶
func (osc *Client) ListOrgUserAdminScopes(ctx context.Context, orgID string, role *string) (*models.UserrolescopesList, error)
ListOrgUserAdminScopes returns admin role scope of organization
func (*Client) ListOrgUserScopes ¶
func (osc *Client) ListOrgUserScopes(ctx context.Context, orgID string, roleName []string) (*models.UserrolescopesList, error)
ListOrgUserScopes returns role scope of organization, rolename is optional filter
func (*Client) SearchOrgLookup ¶
func (osc *Client) SearchOrgLookup(ctx context.Context, orgName, websiteName *string) (*organizations.LookupOK, error)
SearchOrgLookup returns organization