Versions in this module Expand all Collapse all v0 v0.8.8 Feb 19, 2025 v0.8.7 Feb 19, 2025 v0.8.6 Jan 12, 2025 v0.8.5 Jan 11, 2025 v0.8.4 Dec 8, 2024 v0.3.4 Nov 20, 2024 v0.3.3 May 31, 2024 Changes in this version + type DriveList struct + Value []struct{ ... } + type FsGet struct + CTag string + CreatedBy struct{ ... } + CreatedDateTime time.Time + ETag string + Folder struct{ ... } + ID string + LastModifiedBy struct{ ... } + LastModifiedDateTime time.Time + Name string + Root struct{} + Size int + WebURL string + type FsList struct + OdataContext string + OdataCount int + Value []Value + type MicrosoftError struct + Code string + Message string + type MicrosoftUserInfo struct + DisplayName string + GivenName string + ID string + Mail string + OdataContext string + PreferredLanguage string + Surname string + UserPrincipalName string v0.3.2 Jan 6, 2024 v0.2.1 Dec 26, 2023 v0.2.0 Dec 26, 2023 Changes in this version + type Application struct + DisplayName string + ID string + type Client struct + func NewClient(clientID, clientSecret, redirectURL string, opt ...ClientOption) *Client + func (c *Client) AuthCodeURL(state string) string + func (c *Client) Do(req *http.Request) (*http.Response, error) + func (c *Client) DriveList() (*DriveListResp, error) + func (c *Client) FsDownload(path string, opt ...FsOptionFunc) (string, error) + func (c *Client) FsGet(path string, opt ...FsOptionFunc) (*FsGetResp, error) + func (c *Client) FsList(path string, opt ...FsOptionFunc) (*FsListResp, error) + func (c *Client) GetToken(code string) (*oauth2.Token, error) + func (c *Client) GetUserInfo() (*microsoftUserInfo, error) + func (c *Client) HttpClient() (*http.Client, error) + func (c *Client) Login(code string) error + func (c *Client) NewRequest(method, relative string, data any) (req *http.Request, err error) + func (c *Client) RefreshToken(refresh string) (*oauth2.Token, error) + func (c *Client) SetToken(tk oauth2.Token) + func (c *Client) Token() (*oauth2.Token, error) + type ClientOption func(*Client) + func WithBaseURL(baseURL string) ClientOption + func WithContext(ctx context.Context) ClientOption + func WithToken(tk oauth2.Token) ClientOption + type CreatedBy struct + Application Application + Device Device + OneDriveSync OneDriveSync + User User + type Device struct + ID string + type DriveListResp struct + Value []struct{ ... } + type File struct + Hashes Hashes + MimeType string + type FileSystemInfo struct + CreatedDateTime time.Time + LastModifiedDateTime time.Time + type Folder struct + ChildCount int + View View + type FsGetResp struct + CTag string + CreatedBy struct{ ... } + CreatedDateTime time.Time + ETag string + Folder struct{ ... } + ID string + LastModifiedBy struct{ ... } + LastModifiedDateTime time.Time + Name string + Root struct{} + Size int + WebURL string + type FsListResp struct + OdataContext string + OdataCount int + Value []Value + type FsOption struct + DriveID string + type FsOptionFunc func(*FsOption) + func WithDriveID(driveID string) FsOptionFunc + type Hashes struct + QuickXorHash string + Sha1Hash string + Sha256Hash string + type LastModifiedBy struct + Application Application + Device Device + OneDriveSync OneDriveSync + User User + type OneDriveSync struct + ID string + OdataType string + type ParentReference struct + DriveID string + DriveType string + ID string + Path string + type Reactions struct + CommentCount int + type SpecialFolder struct + Name string + type User struct + DisplayName string + ID string + type Value struct + CTag string + CreatedBy CreatedBy + CreatedDateTime time.Time + ETag string + File File + FileSystemInfo FileSystemInfo + Folder Folder + ID string + LastModifiedBy LastModifiedBy + LastModifiedDateTime time.Time + MicrosoftGraphDownloadURL string + Name string + ParentReference ParentReference + Reactions Reactions + Size int + SpecialFolder SpecialFolder + WebURL string + type View struct + SortBy string + SortOrder string + ViewType string