MCPcopy Create free account
hub / github.com/algolia/cli / errMissingACLs

Function errMissingACLs

pkg/auth/auth_check.go:31–37  ·  view source on GitHub ↗

errMissingACLs return an error with the missing ACLs

(missing []string)

Source from the content-addressed store, hash-verified

29
30// errMissingACLs return an error with the missing ACLs
31func errMissingACLs(missing []string) error {
32 err := fmt.Sprintf("Missing API key ACL(s): %s\n", strings.Join(missing, ", "))
33 err += "Edit your profile or use the `--api-key` flag to provide an API key with the missing ACLs.\n"
34 err += "See https://www.algolia.com/doc/guides/security/api-keys/#rights-and-restrictions for more information"
35
36 return errors.New(err)
37}
38
39// errAdminAPIKeyRequired is returned when the command requires an admin API Key
40var errAdminAPIKeyRequired = errors.New(

Callers 1

CheckACLsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected