| 9 | ) |
| 10 | |
| 11 | type 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected