Files

95 lines
4.2 KiB
Go
Raw Permalink Normal View History

package shared
import (
"fmt"
2022-05-04 14:49:59 +02:00
"github.com/owncloud/ocis/v2/ocis-pkg/config/defaults"
)
func MissingMachineAuthApiKeyError(service string) error {
2022-04-29 13:45:12 +02:00
return fmt.Errorf("The Machineauth API key has not been configured for %s. "+
"Make sure your %s config contains the proper values "+
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
2022-04-29 13:45:12 +02:00
"the config/corresponding environment variable).",
service, defaults.BaseConfigPath())
}
func MissingSystemUserApiKeyError(service string) error {
return fmt.Errorf("The SystemUser API key has not been configured for %s. "+
"Make sure your %s config contains the proper values "+
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
"the config/corresponding environment variable).",
service, defaults.BaseConfigPath())
}
func MissingJWTTokenError(service string) error {
return fmt.Errorf("The jwt_secret has not been set properly in your config for %s. "+
"Make sure your %s config contains the proper values "+
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
2022-04-29 13:45:12 +02:00
"the config/corresponding environment variable).",
service, defaults.BaseConfigPath())
}
func MissingRevaTransferSecretError(service string) error {
return fmt.Errorf("The transfer_secret has not been set properly in your config for %s. "+
"Make sure your %s config contains the proper values "+
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
2022-04-29 13:45:12 +02:00
"the config/corresponding environment variable).",
service, defaults.BaseConfigPath())
}
2022-04-29 11:55:56 +02:00
func MissingLDAPBindPassword(service string) error {
return fmt.Errorf("The ldap bind_password has not been set properly in your config for %s. "+
2022-04-29 11:55:56 +02:00
"Make sure your %s config contains the proper values "+
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
2022-04-29 13:45:12 +02:00
"the config/corresponding environment variable).",
2022-04-29 11:55:56 +02:00
service, defaults.BaseConfigPath())
}
2022-04-29 13:07:25 +02:00
func MissingServiceUserPassword(service, serviceUser string) error {
return fmt.Errorf("The password of service user %s has not been set properly in your config for %s. "+
2022-04-29 13:07:25 +02:00
"Make sure your %s config contains the proper values "+
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
2022-04-29 13:45:12 +02:00
"the config/corresponding environment variable).",
2022-04-29 13:07:25 +02:00
serviceUser, service, defaults.BaseConfigPath())
}
2022-05-02 12:36:30 +00:00
2022-05-04 11:41:37 +02:00
func MissingSystemUserID(service string) error {
2022-05-04 17:36:31 +02:00
return fmt.Errorf("The system user ID has not been configured for %s. "+
2022-05-02 12:36:30 +00:00
"Make sure your %s config contains the proper values "+
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
2022-05-02 12:36:30 +00:00
"the config/corresponding environment variable).",
service, defaults.BaseConfigPath())
}
2022-05-03 12:31:53 +02:00
func MissingAdminUserID(service string) error {
return fmt.Errorf("The admin user ID has not been configured for %s. "+
"Make sure your %s config contains the proper values "+
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
2022-05-03 12:31:53 +02:00
"the config/corresponding environment variable).",
service, defaults.BaseConfigPath())
}
2024-02-29 11:19:01 +01:00
func MissingServiceAccountID(service string) error {
return fmt.Errorf("The service account id has not been configured for %s. "+
"Make sure your %s config contains the proper values "+
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
2024-02-29 11:19:01 +01:00
"the config/corresponding environment variable).",
service, defaults.BaseConfigPath())
}
func MissingServiceAccountSecret(service string) error {
return fmt.Errorf("The service account secret has not been configured for %s. "+
"Make sure your %s config contains the proper values "+
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
2024-02-29 11:19:01 +01:00
"the config/corresponding environment variable).",
service, defaults.BaseConfigPath())
}
2024-05-24 14:04:47 +02:00
func MissingWOPISecretError(service string) error {
return fmt.Errorf("The WOPI secret has not been set properly in your config for %s. "+
"Make sure your %s config contains the proper values "+
"(e.g. by using 'ocis init --diff' and applying the patch or setting a value manually in "+
2024-05-24 14:04:47 +02:00
"the config/corresponding environment variable).",
service, defaults.BaseConfigPath())
}