Documentation
¶
Index ¶
- func IsErrNotFound(err error) bool
- type ErrNotFound
- type PluginStore
- func (s *PluginStore) DeleteIcon(iconType string) error
- func (s *PluginStore) GetAppID(tenantID string) (string, error)
- func (s *PluginStore) GetIcon(iconType string) ([]byte, error)
- func (s *PluginStore) GetUser(mattermostUserID string) (*User, error)
- func (s *PluginStore) StoreAppID(tenantID, appID string) error
- func (s *PluginStore) StoreIcon(iconType string, data []byte) error
- func (s *PluginStore) StoreUser(user *User) error
- func (s *PluginStore) UserExists(mattermostUserID string) (bool, error)
- type Store
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrNotFound ¶
IsErrNotFound returns true if the error is of type ErrNotFound, even if wrapped.
Types ¶
type ErrNotFound ¶
type ErrNotFound struct {
Message string
}
func NewErrNotFound ¶
func NewErrNotFound(msg string) *ErrNotFound
NewErrNotFound creates a new ErrNotFound with the given message.
func (*ErrNotFound) Error ¶
func (e *ErrNotFound) Error() string
type PluginStore ¶
func NewPluginStore ¶
func NewPluginStore(api plugin.API) *PluginStore
func (*PluginStore) DeleteIcon ¶
func (s *PluginStore) DeleteIcon(iconType string) error
DeleteIcon removes icon data from the KV store
func (*PluginStore) GetIcon ¶
func (s *PluginStore) GetIcon(iconType string) ([]byte, error)
GetIcon retrieves icon data from the KV store
func (*PluginStore) StoreAppID ¶
func (s *PluginStore) StoreAppID(tenantID, appID string) error
func (*PluginStore) StoreIcon ¶
func (s *PluginStore) StoreIcon(iconType string, data []byte) error
StoreIcon stores icon data in the KV store
func (*PluginStore) StoreUser ¶
func (s *PluginStore) StoreUser(user *User) error
func (*PluginStore) UserExists ¶
func (s *PluginStore) UserExists(mattermostUserID string) (bool, error)
UserExists checks if a user exists in the plugin store.
type Store ¶
type Store interface {
StoreUser(user *User) error
GetUser(mattermostUserID string) (*User, error)
StoreAppID(tenantID, appID string) error
GetAppID(tenantID string) (string, error)
UserExists(mattermostUserID string) (bool, error)
StoreIcon(iconType string, data []byte) error
GetIcon(iconType string) ([]byte, error)
DeleteIcon(iconType string) error
}
Click to show internal directories.
Click to hide internal directories.