auth0admin

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package auth0admin provides auth0admin service helpers.

Index

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.

func GetRaw

func GetRaw(ctx context.Context, s *Auth0AdminService, rawURL string) result.Result[string]

GetRaw performs an http GET with the given path and query against the given WorkbenchService. The response body is marshaled into a string and returned as a result.

func Post

func Post[T any](ctx context.Context, s *Auth0AdminService, path string, body any) result.Result[T]

Post performs an http POST 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.

Types

type API

type API struct {
	Version int    `json:"version,omitempty"`
	Links   []Link `json:"links,omitempty"`
}

API is the API specification for the Auth0Admin service.

func GetAPI

func GetAPI(
	ctx context.Context,
	s *Auth0AdminService,
) (API, error)

GetAPI returns the API from the WorkbenchService.

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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL