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

Interface ActionAPI

internal/auth0/action.go:12–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11type (
12 ActionAPI interface {
13 // Create a new action.
14 //
15 // See: https://auth0.com/docs/api/management/v2#!/Actions/post_action
16 Create(ctx context.Context, a *management.Action, opts ...management.RequestOption) error
17
18 // Read action details.
19 //
20 // See: https://auth0.com/docs/api/management/v2#!/Actions/get_action
21 Read(ctx context.Context, id string, opts ...management.RequestOption) (*management.Action, error)
22
23 // Update an existing action.
24 //
25 // See: https://auth0.com/docs/api/management/v2#!/Actions/patch_action
26 Update(ctx context.Context, id string, a *management.Action, opts ...management.RequestOption) error
27
28 // Delete an action
29 //
30 // See: https://auth0.com/docs/api/management/v2#!/Actions/delete_action
31 Delete(ctx context.Context, id string, opts ...management.RequestOption) error
32
33 // List all actions.
34 //
35 // See: https://auth0.com/docs/api/management/v2#!/Actions/get_actions
36 List(ctx context.Context, opts ...management.RequestOption) (c *management.ActionList, err error)
37
38 // Triggers available.
39 //
40 // https://auth0.com/docs/api/management/v2/#!/Actions/get_triggers
41 Triggers(ctx context.Context, opts ...management.RequestOption) (l *management.ActionTriggerList, err error)
42
43 // Bindings lists the bindings of a trigger.
44 //
45 // See: https://auth0.com/docs/api/management/v2/#!/Actions/get_bindings
46 Bindings(ctx context.Context, triggerID string, opts ...management.RequestOption) (bl *management.ActionBindingList, err error)
47
48 // Deploy an action.
49 //
50 // See: https://auth0.com/docs/api/management/v2/#!/Actions/post_deploy_action
51 Deploy(ctx context.Context, id string, opts ...management.RequestOption) (v *management.ActionVersion, err error)
52
53 // Versions lists versions of an action.
54 //
55 // See: https://auth0.com/docs/api/management/v2/#!/Actions/get_action_versions
56 Versions(ctx context.Context, id string, opts ...management.RequestOption) (c *management.ActionVersionList, err error)
57 }
58)

Callers 6

getCurrentTriggersFunction · 0.65
FetchDataMethod · 0.65
TestActionsDeployCmdFunction · 0.65
deployActionCmdFunction · 0.65
diffActionCmdFunction · 0.65

Implementers 2

MockActionAPIinternal/auth0/mock/action_mock.go
MockActionAPIMockRecorderinternal/auth0/mock/action_mock.go

Calls

no outgoing calls

Tested by

no test coverage detected