Versions in this module Expand all Collapse all v0 v0.1.0 Nov 28, 2026 Changes in this version + func FriendlyError(err error) error + type ConnectFunc func(ctx context.Context, domain, username, password string) (IServClient, error) + func NewConnector(timeout time.Duration, allowInsecureHTTP bool, logger *slog.Logger) ConnectFunc + type IServClient interface + BaseURL func() string + Close func(ctx context.Context) error + Domain func() string + DownloadFile func(ctx context.Context, path string) (*iserv.FileDownload, error) + GetAvatar func(ctx context.Context) (*iserv.Avatar, error) + GetEmail func(ctx context.Context, folder, uid string) (*iserv.EmailDetail, error) + GetGroup func(ctx context.Context, id string) (*iserv.GroupDetail, error) + GetProfile func(ctx context.Context) (*iserv.Profile, error) + GetTask func(ctx context.Context, id string) (*iserv.TaskDetail, error) + ListCalendars func(ctx context.Context) ([]iserv.CalendarSource, error) + ListEmails func(ctx context.Context, opts iserv.EmailListOptions) (*iserv.EmailPage, error) + ListEvents func(ctx context.Context, opts iserv.CalendarEventsOptions) ([]iserv.CalendarEvent, error) + ListFiles func(ctx context.Context, path string) ([]iserv.FileEntry, error) + ListFolders func(ctx context.Context) ([]iserv.Folder, error) + ListGroups func(ctx context.Context) ([]iserv.Group, error) + ListNotifications func(ctx context.Context) ([]iserv.Notification, error) + ListTasks func(ctx context.Context, status iserv.TaskStatus) ([]iserv.TaskSummary, error) + MarkAllNotificationsRead func(ctx context.Context) error + MarkNotificationRead func(ctx context.Context, id string) error + SearchUsers func(ctx context.Context, query string) ([]iserv.DirectoryUser, error) + Username func() string + type SDKAdapter struct + Client *iserv.Client + func (a *SDKAdapter) BaseURL() string + func (a *SDKAdapter) Close(ctx context.Context) error + func (a *SDKAdapter) Domain() string + func (a *SDKAdapter) DownloadFile(ctx context.Context, path string) (*iserv.FileDownload, error) + func (a *SDKAdapter) GetAvatar(ctx context.Context) (*iserv.Avatar, error) + func (a *SDKAdapter) GetEmail(ctx context.Context, folder, uid string) (*iserv.EmailDetail, error) + func (a *SDKAdapter) GetGroup(ctx context.Context, id string) (*iserv.GroupDetail, error) + func (a *SDKAdapter) GetProfile(ctx context.Context) (*iserv.Profile, error) + func (a *SDKAdapter) GetTask(ctx context.Context, id string) (*iserv.TaskDetail, error) + func (a *SDKAdapter) ListCalendars(ctx context.Context) ([]iserv.CalendarSource, error) + func (a *SDKAdapter) ListEmails(ctx context.Context, opts iserv.EmailListOptions) (*iserv.EmailPage, error) + func (a *SDKAdapter) ListEvents(ctx context.Context, opts iserv.CalendarEventsOptions) ([]iserv.CalendarEvent, error) + func (a *SDKAdapter) ListFiles(ctx context.Context, path string) ([]iserv.FileEntry, error) + func (a *SDKAdapter) ListFolders(ctx context.Context) ([]iserv.Folder, error) + func (a *SDKAdapter) ListGroups(ctx context.Context) ([]iserv.Group, error) + func (a *SDKAdapter) ListNotifications(ctx context.Context) ([]iserv.Notification, error) + func (a *SDKAdapter) ListTasks(ctx context.Context, status iserv.TaskStatus) ([]iserv.TaskSummary, error) + func (a *SDKAdapter) MarkAllNotificationsRead(ctx context.Context) error + func (a *SDKAdapter) MarkNotificationRead(ctx context.Context, id string) error + func (a *SDKAdapter) SearchUsers(ctx context.Context, query string) ([]iserv.DirectoryUser, error) + func (a *SDKAdapter) Username() string