()
| 26 | } |
| 27 | |
| 28 | func NewClient() (ret *Client) { |
| 29 | |
| 30 | label := "Sofya" |
| 31 | |
| 32 | ret = &Client{ |
| 33 | PluginBase: &plugins.PluginBase{ |
| 34 | Name: i18n.T("sofya_label"), |
| 35 | SetupDescription: i18n.T("sofya_setup_description") + " " + i18n.T("optional_marker"), |
| 36 | EnvNamePrefix: plugins.BuildEnvVariablePrefix(label), |
| 37 | }, |
| 38 | } |
| 39 | |
| 40 | ret.ApiKey = ret.AddSetupQuestion("API Key", false) |
| 41 | |
| 42 | return |
| 43 | } |
| 44 | |
| 45 | // IsConfigured reports whether an API key is set; the key is optional during setup. |
| 46 | func (c *Client) IsConfigured() bool { |