Documentation
¶
Overview ¶
Package auth0admin provides auth0admin service helpers.
Index ¶
- func Get[T any](ctx context.Context, s *Auth0AdminService, path string, query url.Values) result.Result[T]
- func GetAccessToken(s *Auth0AdminService) string
- func GetRaw(ctx context.Context, s *Auth0AdminService, rawURL string) result.Result[string]
- func Post[T any](ctx context.Context, s *Auth0AdminService, path string, body any) result.Result[T]
- type API
- type Auth0AdminService
- type Link
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get[T any](ctx context.Context, s *Auth0AdminService, path string, query url.Values) result.Result[T]
Get performs an http GET with the given path and query against the given WorkbenchService. The response body is marshaled from JSON into the given type T and returned as a result.
func GetAccessToken ¶
func GetAccessToken(s *Auth0AdminService) string
GetAccessToken gets the access token from the given WorkbenchService.
Types ¶
type Auth0AdminService ¶
type Auth0AdminService struct {
// contains filtered or unexported fields
}
Auth0AdminService is an exported type. nolint:revive
func NewAuth0AdminService ¶
func NewAuth0AdminService(endpoint, accessToken string) *Auth0AdminService
NewAuth0AdminService returns a new workbench service.
type Link ¶
type Link struct {
Method string `json:"method,omitempty"`
Rel string `json:"rel,omitempty"`
Href string `json:"href,omitempty"`
URI string `json:"uri,omitempty"`
MediaType string `json:"type,omitempty"`
ResponseType string `json:"responseType,omitempty"`
ItemType string `json:"itemType,omitempty"`
ResponseItemType string `json:"responseItemType,omitempty"`
Title string `json:"title,omitempty"`
}
Link is the respresentation of a service link.