onedrive

package
v0.0.0-...-16924cb Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Drive

type Drive struct {
	Id        string `json:"id"`
	DriveType string `json:"driveType"`
	Quota     struct {
		Total     int64 `json:"total"`
		Used      int64 `json:"used"`
		Remaining int64 `json:"remaining"`
	} `json:"quota"`
	WebUrl string `json:"webUrl"`
}

type DriveItem

type DriveItem struct {
	Id   string `json:"id"`
	Name string `json:"name"`
	Size int64  `json:"size"`
	File *struct {
		MIMEType string `json:"mimeType"`
		Hashes   struct {
			SHA1Hash     string `json:"sha1Hash,omitempty"`
			CRC32Hash    string `json:"crc32Hash,omitempty"`
			QuickXorHash string `json:"quickXorHash,omitempty"`
		} `json:"hashes,omitempty"`
	} `json:"file"`
	Folder *struct {
		ChildCount int `json:"childCount"`
	} `json:"folder"`
	Shared struct {
		Scope string `json:"scope"`
	} `json:"shared"`
	ParentReference struct {
		Name string `json:"name"`
		Path string `json:"path"`
	} `json:"parentReference"`
}

func (DriveItem) IsFile

func (item DriveItem) IsFile() bool

func (DriveItem) IsFolder

func (item DriveItem) IsFolder() bool

func (DriveItem) VerifyQuickXorHash

func (item DriveItem) VerifyQuickXorHash(target []byte) bool

type ErrorResponse

type ErrorResponse struct {
	Error struct {
		Code       string `json:"code"`
		Message    string `json:"message"`
		InnerError struct {
			Code string `json:"code"`
		} `json:"innererror"`
		Details []interface{} `json:"details"`
	} `json:"error"`
}
type ShareLink struct {
	Type   string `json:"type"`
	WebUrl string `json:"webUrl"`
}

Jump to

Keyboard shortcuts

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