Documentation ¶
Index ¶
- Variables
- type Client
- func (cli *Client) Checker(ctx context.Context, check *health.CheckState) error
- func (cli *Client) GetGroup(ctx context.Context, id string) (*GroupsResponse, apiError.Error)
- func (cli *Client) GetGroups(ctx context.Context, sort *sortParam) (*GroupsResponse, apiError.Error)
- func (cli *Client) GetGroupsReport(ctx context.Context) (*GroupsReportResponse, apiError.Error)
- func (cli *Client) GetToken(ctx context.Context, credentials models.UserSignIn) (*TokenResponse, apiError.Error)
- func (cli *Client) Health() *healthcheck.Client
- func (cli *Client) URL() string
- type Group
- type GroupResponse
- type GroupsReportItem
- type GroupsReportResponse
- type GroupsResponse
- type ResponseInfo
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SortCreated sortParam = "created" SortName sortParam = "name" SortNameAsc sortParam = "name:asc" SortNameDesc sortParam = "name:desc" )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewWithHealthClient ¶
func NewWithHealthClient(hcCli *healthcheck.Client) *Client
NewWithHealthClient creates a new instance of topic API Client, reusing the URL and Clienter from the provided healthcheck client
func (*Client) Checker ¶
Checker calls identity api health endpoint and returns a check object to the caller
func (*Client) GetGroups ¶ added in v1.53.0
func (cli *Client) GetGroups(ctx context.Context, sort *sortParam) (*GroupsResponse, apiError.Error)
GetGroups gets a list of groups
func (*Client) GetGroupsReport ¶ added in v1.53.0
GetGroupsReport gets a list of groups-report
func (*Client) GetToken ¶
func (cli *Client) GetToken(ctx context.Context, credentials models.UserSignIn) (*TokenResponse, apiError.Error)
GetToken attempts to sign in and obtain a JWT token from the API
func (*Client) Health ¶
func (cli *Client) Health() *healthcheck.Client
Health returns the underlying Healthcheck Client for this identity API client
type GroupResponse ¶ added in v1.53.0
type GroupResponse struct {
Group Group `json:"group"`
}
type GroupsReportItem ¶ added in v1.53.0
GroupsReportItem represents an item in the /groups-report response.
type GroupsReportResponse ¶ added in v1.53.0
type GroupsReportResponse []GroupsReportItem
GroupsReportResponse represents the response structure containing a list of GroupsReportItems.
type GroupsResponse ¶ added in v1.53.0
Click to show internal directories.
Click to hide internal directories.