Documentation ¶
Index ¶
- Constants
- type ApiKeyHelper
- func (c *ApiKeyHelper) Create(tx dal.Transaction, user *common.User, name string, expiredAt *time.Time, ...) (*models.ApiKey, errors.Error)
- func (c *ApiKeyHelper) CreateForPlugin(tx dal.Transaction, user *common.User, name string, pluginName string, ...) (*models.ApiKey, errors.Error)
- func (c *ApiKeyHelper) Delete(id uint64) errors.Error
- func (c *ApiKeyHelper) DeleteForPlugin(tx dal.Transaction, pluginName string, extra string) errors.Error
- func (c *ApiKeyHelper) DigestToken(token string) (string, errors.Error)
- func (c *ApiKeyHelper) GenApiKeyNameForPlugin(pluginName string, connectionId uint64) string
- func (c *ApiKeyHelper) GetApiKey(tx dal.Dal, additionalClauses ...dal.Clause) (*models.ApiKey, errors.Error)
- func (c *ApiKeyHelper) Put(user *common.User, id uint64) (*models.ApiKey, errors.Error)
Constants ¶
View Source
const (
EncodeKeyEnvStr = "ENCRYPTION_SECRET"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiKeyHelper ¶
type ApiKeyHelper struct {
// contains filtered or unexported fields
}
func NewApiKeyHelper ¶
func NewApiKeyHelper(basicRes context.BasicRes, logger log.Logger) *ApiKeyHelper
func (*ApiKeyHelper) CreateForPlugin ¶
func (*ApiKeyHelper) DeleteForPlugin ¶
func (c *ApiKeyHelper) DeleteForPlugin(tx dal.Transaction, pluginName string, extra string) errors.Error
func (*ApiKeyHelper) DigestToken ¶
func (c *ApiKeyHelper) DigestToken(token string) (string, errors.Error)
func (*ApiKeyHelper) GenApiKeyNameForPlugin ¶
func (c *ApiKeyHelper) GenApiKeyNameForPlugin(pluginName string, connectionId uint64) string
Click to show internal directories.
Click to hide internal directories.