25 lines
720 B
Go
25 lines
720 B
Go
package emgql
|
|
|
|
import (
|
|
"context"
|
|
|
|
"go.infratographer.com/x/gidx"
|
|
|
|
"go.equinixmetal.net/infra9-metal-bridge/internal/metal/models"
|
|
)
|
|
|
|
// GetUserDetails fetches the provided user id.
|
|
func (c *Client) GetUserDetails(ctx context.Context, id gidx.PrefixedID) (*models.UserDetails, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
// GetUserOrganizationRole returns collaborator for all organizations.
|
|
func (c *Client) GetUserOrganizationRole(ctx context.Context, userID, orgID gidx.PrefixedID) (string, error) {
|
|
return "collaborator", nil
|
|
}
|
|
|
|
// GetUserProjectRole returns collaborator for all projects.
|
|
func (c *Client) GetUserProjectRole(ctx context.Context, userID, projID gidx.PrefixedID) (string, error) {
|
|
return "collaborator", nil
|
|
}
|