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

Interface EmailTemplateAPI

internal/auth0/email_template.go:11–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9)
10
11type EmailTemplateAPI interface {
12 // Create an email template.
13 //
14 // See: https://auth0.com/docs/api/management/v2#!/Email_Templates/post_email_templates
15 Create(ctx context.Context, template *management.EmailTemplate, opts ...management.RequestOption) error
16
17 // Read an email template by pre-defined name.
18 //
19 // These names are `verify_email`, `reset_email`, `welcome_email`,
20 // `blocked_account`, `stolen_credentials`, `enrollment_email`, and
21 // `mfa_oob_code`.
22 //
23 // The names `change_password`, and `password_reset` are also supported for
24 // legacy scenarios.
25 //
26 // See: https://auth0.com/docs/api/management/v2#!/Email_Templates/get_email_templates_by_templateName
27 Read(ctx context.Context, template string, opts ...management.RequestOption) (e *management.EmailTemplate, err error)
28
29 // Update an email template.
30 //
31 // See: https://auth0.com/docs/api/management/v2#!/Email_Templates/patch_email_templates_by_templateName
32 Update(ctx context.Context, template string, e *management.EmailTemplate, opts ...management.RequestOption) (err error)
33}

Callers

nothing calls this directly

Implementers 15

MockTokenExchangeAPIinternal/auth0/mock/token_exchange_moc
MockTokenExchangeAPIMockRecorderinternal/auth0/mock/token_exchange_moc
MockEmailProviderAPIinternal/auth0/mock/email_provider_moc
MockEmailProviderAPIMockRecorderinternal/auth0/mock/email_provider_moc
MockNetworkACLAPIinternal/auth0/mock/network_acl_mock.g
MockNetworkACLAPIMockRecorderinternal/auth0/mock/network_acl_mock.g
MockActionAPIinternal/auth0/mock/action_mock.go
MockActionAPIMockRecorderinternal/auth0/mock/action_mock.go
MockBrandingThemeAPIinternal/auth0/mock/branding_theme_moc
MockBrandingThemeAPIMockRecorderinternal/auth0/mock/branding_theme_moc
MockClientAPIinternal/auth0/mock/client_mock.go
MockClientAPIMockRecorderinternal/auth0/mock/client_mock.go

Calls

no outgoing calls

Tested by

no test coverage detected