Documentation
¶
Index ¶
- type Client
- func (c *Client) CheckResourceAccess(userID, resourceID string) (bool, error)
- func (c *Client) CleanResource(resourceID string) error
- func (c *Client) Create(id, ownerID string, dtoCreateTeam *body.TeamCreate) (*model.Team, error)
- func (c *Client) Delete(id string) error
- func (c *Client) Get(id string, opts ...opts.GetOpts) (*model.Team, error)
- func (c *Client) Join(id string, dtoTeamJoin *body.TeamJoin) (*model.Team, error)
- func (c *Client) List(opts ...opts.ListOpts) ([]model.Team, error)
- func (c *Client) ListIDs(opts ...opts.ListOpts) ([]string, error)
- func (c *Client) RefreshTeam(id string, tmc *team_repo.Client) (*model.Team, error)
- func (c *Client) RefreshUser(id string, umc *user_repo.Client) (*model.User, error)
- func (c *Client) Team(id string, tmc *team_repo.Client) (*model.Team, error)
- func (c *Client) Teams(tmc *team_repo.Client) ([]model.Team, error)
- func (c *Client) Update(id string, dtoUpdateTeam *body.TeamUpdate) (*model.Team, error)
- func (c *Client) User(id string, umc *user_repo.Client) (*model.User, error)
- func (c *Client) Users(umc *user_repo.Client) ([]model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // V2 is a reference to the parent client. V2 clients.V2 // Cache is used to cache the resources fetched inside the service. Cache *core.Cache }
Client is the client for the User service.
func (*Client) CheckResourceAccess ¶
func (*Client) CleanResource ¶
CleanResource cleans a resource from all teams
func (*Client) Create ¶
Create creates a new team
Notifications are sent out if the owner of the team is not admin
func (*Client) ListIDs ¶
ListIDs lists team IDs
This is a more lightweight version of List when only the IDs are needed TODO: Fetch only IDs, right now ListIDs == List
func (*Client) RefreshTeam ¶
RefreshTeam refreshes the Team with the given ID. After a successful fetch, the Team will be cached.
func (*Client) RefreshUser ¶
RefreshUser refreshes the User with the given ID. After a successful fetch, the User will be cached.
func (*Client) Team ¶
Team returns the Team with the given ID. After a successful fetch, the Team will be cached.
func (*Client) Teams ¶
Teams returns a list of Teams. After a successful fetch, the Teams will be cached.