carddav

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: 12 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 RepositoryCardDAV) (carddav.Backend, error)

Types

type RepositoryCardDAV

type RepositoryCardDAV interface {
	GetUserAccess(ctx context.Context, currentUserPrincipal string) ([]string, error)
	CreateFolder(ctx context.Context, homeSetPath string, addressbook *carddav.AddressBook) error
	ListFolders(ctx context.Context, homeSetPath string) ([]carddav.AddressBook, error)
	GetFolder(ctx context.Context, urlPath string) (*carddav.AddressBook, error)
	DeleteFolder(ctx context.Context, urlPath string) error
	GetFolderAccess(ctx context.Context, addressbook *carddav.AddressBook) ([]string, error)
	PutFile(ctx context.Context, homeSetPath string, object *carddav.AddressObject, opts *carddav.PutAddressObjectOptions) error
	ListFiles(ctx context.Context, homeSetPath, abUID string) ([]carddav.AddressObject, error)
	GetFile(ctx context.Context, urlPath string) (*carddav.AddressObject, error)
	DeleteFile(ctx context.Context, urlPath string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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