myofficefiles

package
v3.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// ListMyOfficeFiles returns all recent Office files of a user.
	ListMyOfficeFiles(ctx context.Context, user *userpb.User, filetype OfficeFileType, projects []string) ([]*provider.ResourceInfo, error)
}

Manager defines an interface for a MyOfficeFiles manager.

func New

func New(ctx context.Context, gatewayEndpoint string, allowedProjectsList []string) (Manager, error)

type OfficeFileType

type OfficeFileType string
const (
	TypeWord       OfficeFileType = "doc"
	TypeExcel      OfficeFileType = "xls"
	TypePowerpoint OfficeFileType = "ppt"
)

func FileType

func FileType(filetype string) (OfficeFileType, error)

Jump to

Keyboard shortcuts

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