Documentation ¶
Index ¶
- type Client
- func (c *Client) GetGroup(ctx context.Context, groupID string) (*Group, error)
- func (c *Client) GetProject(ctx context.Context, projectID string) (*Project, error)
- func (c *Client) GetRole(ctx context.Context, roleID string) (*Role, error)
- func (c *Client) GetUser(ctx context.Context, userID string) (*User, error)
- func (c *Client) ListGroups(ctx context.Context) ([]*Group, error)
- func (c *Client) ListProjects(ctx context.Context) ([]*Project, error)
- func (c *Client) ListRoles(ctx context.Context) ([]*Role, error)
- func (c *Client) ListUsers(ctx context.Context) ([]*User, error)
- type Group
- type Project
- type Role
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a simple example client. While this client would normally be responsible for communicating with an upstream. API, for this demo the client is only working with in-memory data.
func (*Client) GetProject ¶
GetProject returns the project requested if it exists, else returns an error.
func (*Client) ListGroups ¶
ListGroups returns all the groups from the database.
func (*Client) ListProjects ¶
ListProjects returns all the projects from the database.
Click to show internal directories.
Click to hide internal directories.