adapter

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalendarAdapter

type CalendarAdapter struct {
	// contains filtered or unexported fields
}

func NewCalendarAdapter

func NewCalendarAdapter(exec *clipkg.Executor, meta *cache.MetadataCache, namer *naming.Resolver) *CalendarAdapter

func (*CalendarAdapter) CreateEvent

func (a *CalendarAdapter) CreateEvent(ctx context.Context, data []byte) error

func (*CalendarAdapter) ListEvents

func (a *CalendarAdapter) ListEvents(ctx context.Context) ([]doctype.Entry, error)

func (*CalendarAdapter) ReadEvent

func (a *CalendarAdapter) ReadEvent(ctx context.Context, eventID string) ([]byte, error)

type CalendarEvent

type CalendarEvent struct {
	EventID  string `json:"event_id"`
	Summary  string `json:"summary"`
	Start    string `json:"start_time"`
	End      string `json:"end_time"`
	Location string `json:"location,omitempty"`
}

type Chat

type Chat struct {
	ChatID string `json:"chat_id"`
	Name   string `json:"name"`
}

type DriveAdapter

type DriveAdapter struct {
	// contains filtered or unexported fields
}

func NewDriveAdapter

func NewDriveAdapter(exec *clipkg.Executor, registry *doctype.Registry, meta *cache.MetadataCache, namer *naming.Resolver) *DriveAdapter

func (*DriveAdapter) Create

func (a *DriveAdapter) Create(ctx context.Context, parentToken, name string, dt doctype.DocType, data []byte) (string, error)

func (*DriveAdapter) Delete

func (a *DriveAdapter) Delete(ctx context.Context, token string, dt doctype.DocType) error

func (*DriveAdapter) ListByType added in v0.0.5

func (a *DriveAdapter) ListByType(ctx context.Context, token string, dt doctype.DocType) ([]doctype.Entry, error)

func (*DriveAdapter) ListFolder

func (a *DriveAdapter) ListFolder(ctx context.Context, token string) ([]doctype.Entry, error)

func (*DriveAdapter) ListRoot

func (a *DriveAdapter) ListRoot(ctx context.Context) ([]doctype.Entry, error)

func (*DriveAdapter) Read

func (a *DriveAdapter) Read(ctx context.Context, token string, dt doctype.DocType) ([]byte, error)

func (*DriveAdapter) Write

func (a *DriveAdapter) Write(ctx context.Context, token string, dt doctype.DocType, data []byte) error

type IMAdapter

type IMAdapter struct {
	// contains filtered or unexported fields
}

func NewIMAdapter

func NewIMAdapter(exec *clipkg.Executor, meta *cache.MetadataCache, namer *naming.Resolver) *IMAdapter

func (*IMAdapter) ListChatContents

func (a *IMAdapter) ListChatContents(_ context.Context, chatID string) ([]doctype.Entry, error)

func (*IMAdapter) ListChatFiles added in v0.0.5

func (a *IMAdapter) ListChatFiles(ctx context.Context, chatID string) ([]doctype.Entry, error)

func (*IMAdapter) ListChats

func (a *IMAdapter) ListChats(ctx context.Context) ([]doctype.Entry, error)

func (*IMAdapter) ReadMessages

func (a *IMAdapter) ReadMessages(ctx context.Context, chatID string) ([]byte, error)

func (*IMAdapter) SendMessage

func (a *IMAdapter) SendMessage(ctx context.Context, chatID string, content []byte) error

type MailAdapter

type MailAdapter struct {
	// contains filtered or unexported fields
}

func NewMailAdapter

func NewMailAdapter(exec *clipkg.Executor, meta *cache.MetadataCache, namer *naming.Resolver) *MailAdapter

func (*MailAdapter) ListFolders

func (a *MailAdapter) ListFolders(ctx context.Context) ([]doctype.Entry, error)

func (*MailAdapter) ListMessages

func (a *MailAdapter) ListMessages(ctx context.Context, folder string) ([]doctype.Entry, error)

func (*MailAdapter) ReadMessage

func (a *MailAdapter) ReadMessage(ctx context.Context, messageID string) ([]byte, error)

func (*MailAdapter) Reply

func (a *MailAdapter) Reply(ctx context.Context, messageID, body string) error

func (*MailAdapter) Send

func (a *MailAdapter) Send(ctx context.Context, to, subject, body string) error

func (*MailAdapter) Trash

func (a *MailAdapter) Trash(ctx context.Context, messageID string) error

type Meeting

type Meeting struct {
	MeetingID string `json:"meeting_id"`
	Topic     string `json:"topic"`
	StartTime string `json:"start_time"`
}

type MeetingAdapter

type MeetingAdapter struct {
	// contains filtered or unexported fields
}

func NewMeetingAdapter

func NewMeetingAdapter(exec *clipkg.Executor, meta *cache.MetadataCache, namer *naming.Resolver, cacheDir string) *MeetingAdapter

func (*MeetingAdapter) ListDateDirs

func (a *MeetingAdapter) ListDateDirs() []doctype.Entry

func (*MeetingAdapter) ListMeetingContents

func (a *MeetingAdapter) ListMeetingContents(meetingID string) []doctype.Entry

func (*MeetingAdapter) ListMeetings

func (a *MeetingAdapter) ListMeetings(ctx context.Context, date string) ([]doctype.Entry, error)

func (*MeetingAdapter) ReadMeta

func (a *MeetingAdapter) ReadMeta(ctx context.Context, meetingID string) ([]byte, error)

func (*MeetingAdapter) ReadRecording added in v0.0.4

func (a *MeetingAdapter) ReadRecording(ctx context.Context, meetingID string) ([]byte, error)

func (*MeetingAdapter) ReadSummary

func (a *MeetingAdapter) ReadSummary(ctx context.Context, meetingID string) ([]byte, error)

func (*MeetingAdapter) ReadTranscript

func (a *MeetingAdapter) ReadTranscript(ctx context.Context, meetingID string) ([]byte, error)

type Task

type Task struct {
	TaskID  string `json:"task_id"`
	Summary string `json:"summary"`
	Due     string `json:"due,omitempty"`
	Status  string `json:"status,omitempty"`
}

type TaskAdapter

type TaskAdapter struct {
	// contains filtered or unexported fields
}

func NewTaskAdapter

func NewTaskAdapter(exec *clipkg.Executor, meta *cache.MetadataCache, namer *naming.Resolver) *TaskAdapter

func (*TaskAdapter) CreateTask

func (a *TaskAdapter) CreateTask(ctx context.Context, data []byte) error

func (*TaskAdapter) ListTasks

func (a *TaskAdapter) ListTasks(ctx context.Context) ([]doctype.Entry, error)

func (*TaskAdapter) ReadTask

func (a *TaskAdapter) ReadTask(ctx context.Context, taskID string) ([]byte, error)

type WikiAdapter

type WikiAdapter struct {
	// contains filtered or unexported fields
}

func NewWikiAdapter

func NewWikiAdapter(exec *clipkg.Executor, registry *doctype.Registry, meta *cache.MetadataCache, namer *naming.Resolver) *WikiAdapter

func (*WikiAdapter) ListNodes

func (a *WikiAdapter) ListNodes(ctx context.Context, spaceID string) ([]doctype.Entry, error)

func (*WikiAdapter) ListSpaces

func (a *WikiAdapter) ListSpaces(ctx context.Context) ([]doctype.Entry, error)

func (*WikiAdapter) Read

func (a *WikiAdapter) Read(ctx context.Context, nodeToken string) ([]byte, error)

func (*WikiAdapter) ResolveNode

func (a *WikiAdapter) ResolveNode(ctx context.Context, nodeToken string) (doctype.DocType, string, error)

func (*WikiAdapter) Write

func (a *WikiAdapter) Write(ctx context.Context, nodeToken string, data []byte) error

type WikiSpace

type WikiSpace struct {
	SpaceID string `json:"space_id"`
	Name    string `json:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL