add remaining org/proj/user initial sync
This commit is contained in:
@@ -3,10 +3,11 @@ package metal
|
||||
import (
|
||||
"context"
|
||||
|
||||
"go.equinixmetal.net/infra9-metal-bridge/internal/metal/models"
|
||||
provider "go.equinixmetal.net/infra9-metal-bridge/internal/metal/providers"
|
||||
"go.infratographer.com/x/gidx"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"go.equinixmetal.net/infra9-metal-bridge/internal/metal/models"
|
||||
provider "go.equinixmetal.net/infra9-metal-bridge/internal/metal/providers"
|
||||
)
|
||||
|
||||
// Client is the Equinix Metal API Client struct.
|
||||
@@ -28,6 +29,14 @@ func (c *Client) GetUserDetails(ctx context.Context, id gidx.PrefixedID) (*model
|
||||
return c.provider.GetUserDetails(ctx, id)
|
||||
}
|
||||
|
||||
func (c *Client) GetUserOrganizationRole(ctx context.Context, userID, orgID gidx.PrefixedID) (string, error) {
|
||||
return c.provider.GetUserOrganizationRole(ctx, userID, orgID)
|
||||
}
|
||||
|
||||
func (c *Client) GetUserProjectRole(ctx context.Context, userID, projID gidx.PrefixedID) (string, error) {
|
||||
return c.provider.GetUserProjectRole(ctx, userID, projID)
|
||||
}
|
||||
|
||||
// New creates a new Client.
|
||||
func New(options ...Option) (*Client, error) {
|
||||
client := new(Client)
|
||||
|
||||
Reference in New Issue
Block a user