caldav

package
v0.0.0-...-ea2d26f Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(upBackend webdav.UserPrincipalBackend, prefix string, repository RepositoryCalDAV) (caldav.Backend, error)

func NewCalGRPC

func NewCalGRPC(repository RepositoryCalDAV) caldavGRPC.CalendarServer

Types

type RepositoryCalDAV

type RepositoryCalDAV interface {
	GetUserAccess(ctx context.Context, currentUserPrincipal string) (*caldavGRPC.PrivilegesResponse, error)
	GetFolderAccess(ctx context.Context, req *caldavGRPC.CalendarUserAccessRequest) (*caldavGRPC.PrivilegesResponse, error)
	CreateFolder(ctx context.Context, calendarInfo *caldavGRPC.CreateCalendarRequest) error
	ListFolders(ctx context.Context, currentUserPrincipal string) (*caldavGRPC.ListCalendarsResponse, error)
	GetFolder(ctx context.Context, req *caldavGRPC.CalendarRequest) (*caldavGRPC.CalendarInfo, error)
	DeleteFolder(ctx context.Context, req *caldavGRPC.CalendarRequest) error
	//PutFile(ctx context.Context, req *caldavGRPC.CalendarObjectInfo) (*caldavGRPC.PutCalendarObjectResponse, error)
	PutFile(ctx context.Context, uid, eventType string, object *caldav.CalendarObject, opts *caldav.PutCalendarObjectOptions) (*caldav.CalendarObject, error)
	ListFiles(ctx context.Context, req *caldavGRPC.CalendarRequest) (*caldavGRPC.ListCalendarObjectsResponse, error)
	GetFile(ctx context.Context, req *caldavGRPC.CalendarObjectRequest) (*caldavGRPC.CalendarObjectInfo, error)
	//DeleteFile(ctx context.Context, req *caldavGRPC.CalendarObjectRequest) (*caldavGRPC.DeleteCalendarObjectResponse, error)
	DeleteFile(ctx context.Context, uid string) error
}

type VCalendarDTO

type VCalendarDTO ical.Calendar

func NewVCalendarDTO

func NewVCalendarDTO(object *caldavGRPC.CalendarObjectInfo) *VCalendarDTO

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

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