custom

package
v0.0.0-...-880cb89 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetParentName

func SetParentName(orig *itemReference, driveName string) *itemReference

Types

type DriveItem

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

--------------------------------------------------------------------------- DriveItem ---------------------------------------------------------------------------

func NewDriveItem

func NewDriveItem(
	id, name string,
) *DriveItem

func ToCustomDriveItem

func ToCustomDriveItem(item models.DriveItemable) *DriveItem

ToCustomDriveItem converts a DriveItemable to a flattened DriveItem struct that stores only the properties we care about during the backup operation.

func (*DriveItem) GetAdditionalData

func (c *DriveItem) GetAdditionalData() map[string]any

func (*DriveItem) GetCreatedBy

func (c *DriveItem) GetCreatedBy() *identitySet

func (*DriveItem) GetCreatedByUser

func (c *DriveItem) GetCreatedByUser() *user

func (*DriveItem) GetCreatedDateTime

func (c *DriveItem) GetCreatedDateTime() *time.Time

func (*DriveItem) GetDeleted

func (c *DriveItem) GetDeleted() *struct{}

func (*DriveItem) GetFile

func (c *DriveItem) GetFile() *fileItem

func (*DriveItem) GetFolder

func (c *DriveItem) GetFolder() *struct{}

func (*DriveItem) GetId

func (c *DriveItem) GetId() *string

Disable revive linter since we want to follow naming scheme used by graph SDK here. nolint: revive

func (*DriveItem) GetLastModifiedByUser

func (c *DriveItem) GetLastModifiedByUser() *user

func (*DriveItem) GetLastModifiedDateTime

func (c *DriveItem) GetLastModifiedDateTime() *time.Time

func (*DriveItem) GetMalware

func (c *DriveItem) GetMalware() *malware

func (*DriveItem) GetName

func (c *DriveItem) GetName() *string

func (*DriveItem) GetPackageEscaped

func (c *DriveItem) GetPackageEscaped() *struct{}

func (*DriveItem) GetParentReference

func (c *DriveItem) GetParentReference() *itemReference

func (*DriveItem) GetRoot

func (c *DriveItem) GetRoot() *struct{}

func (*DriveItem) GetShared

func (c *DriveItem) GetShared() *struct{}

func (*DriveItem) GetSize

func (c *DriveItem) GetSize() *int64

func (*DriveItem) SetParentReference

func (c *DriveItem) SetParentReference(parent *itemReference)

Jump to

Keyboard shortcuts

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