MCPcopy Create free account
hub / github.com/auth0/auth0-cli / ClientAPI

Interface ClientAPI

internal/auth0/client.go:11–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9)
10
11type ClientAPI interface {
12 // Create a new client application.
13 Create(ctx context.Context, c *management.Client, opts ...management.RequestOption) (err error)
14
15 // Read a client by its id.
16 Read(ctx context.Context, id string, opts ...management.RequestOption) (c *management.Client, err error)
17
18 // List all client applications.
19 List(ctx context.Context, opts ...management.RequestOption) (c *management.ClientList, err error)
20
21 // Update a client.
22 Update(ctx context.Context, id string, c *management.Client, opts ...management.RequestOption) (err error)
23
24 // RotateSecret rotates a client secret.
25 RotateSecret(ctx context.Context, id string, opts ...management.RequestOption) (c *management.Client, err error)
26
27 // Delete a client and all its related assets (like rules, connections, etc)
28 // given its id.
29 Delete(ctx context.Context, id string, opts ...management.RequestOption) error
30}

Callers

nothing calls this directly

Implementers 2

MockClientAPIinternal/auth0/mock/client_mock.go
MockClientAPIMockRecorderinternal/auth0/mock/client_mock.go

Calls

no outgoing calls

Tested by

no test coverage detected