Documentation
¶
Index ¶
- func UseMicrosoftGraphAPIMeDrivecreateUploadSessionPath(str string) string
- type MicrosoftGraphAPI
- type UploadSession
- type UploadSessionDescription
- func (usd *UploadSessionDescription) GetContentChunkSize() string
- func (usd *UploadSessionDescription) GetContentChunkSizeInt64() int64
- func (usd *UploadSessionDescription) GetContentLength() string
- func (usd *UploadSessionDescription) GetContentRange() string
- func (usd *UploadSessionDescription) SetContentRangTo() int64
- type UploadSessionDescriptionContentRange
- type Uploader
- type UploaderCollection
- type UploaderDescription
- type UploaderReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MicrosoftGraphAPI ¶
type UploadSession ¶
type UploadSession struct {
UploadSessionDescription *UploadSessionDescription `json:"uploadSessionDescription"`
UploadSessionReference *graphapi.MicrosoftGraphUploadSession `json:"uploadSessionReference"`
}
func NewUploadSession ¶
func NewUploadSession(size int64, microsoftGraphUploadSession *graphapi.MicrosoftGraphUploadSession) (*UploadSession, error)
func NewUploadSessionsFromRange ¶
func NewUploadSessionsFromRange(size int64, microsoftGraphUploadSession *graphapi.MicrosoftGraphUploadSession) ([]UploadSession, error)
func (*UploadSession) Put ¶
func (us *UploadSession) Put(url string, payload io.Reader) (*graphapi.MicrosoftGraphUploadSession, error)
type UploadSessionDescription ¶
type UploadSessionDescription struct {
Status string `json:"status"`
ContentLength int64 `json:"contentLength"`
ContentRange UploadSessionDescriptionContentRange `json:"contentRange"`
}
ContentLength: 26
func (*UploadSessionDescription) GetContentChunkSize ¶
func (usd *UploadSessionDescription) GetContentChunkSize() string
func (*UploadSessionDescription) GetContentChunkSizeInt64 ¶
func (usd *UploadSessionDescription) GetContentChunkSizeInt64() int64
func (*UploadSessionDescription) GetContentLength ¶
func (usd *UploadSessionDescription) GetContentLength() string
func (*UploadSessionDescription) GetContentRange ¶
func (usd *UploadSessionDescription) GetContentRange() string
func (*UploadSessionDescription) SetContentRangTo ¶
func (usd *UploadSessionDescription) SetContentRangTo() int64
type UploadSessionDescriptionContentRange ¶
type UploadSessionDescriptionContentRange struct {
Type string `json:"type"`
From int64 `json:"from"`
To int64 `json:"to"`
}
ContentRange: bytes 0-25/128
type Uploader ¶
type Uploader struct {
UploaderDescription *UploaderDescription `json:"uploaderDescription"`
UploadSessions []UploadSession `json:"uploadSessions,omitempty"`
}
func NewUploader ¶
func NewUploader(input *UploaderDescription) (*Uploader, error)
func (*Uploader) Close ¶
func (u *Uploader) Close(api MicrosoftGraphAPI)
func (*Uploader) Copy ¶
func (u *Uploader) Copy(api MicrosoftGraphAPI)
func (*Uploader) Start ¶
func (u *Uploader) Start(api MicrosoftGraphAPI)
type UploaderCollection ¶
type UploaderCollection struct {
Uploaders []*Uploader `json:"uploaders"`
}
func (*UploaderCollection) Init ¶
func (uc *UploaderCollection) Init(api MicrosoftGraphAPI) error
func (*UploaderCollection) Load ¶
func (uc *UploaderCollection) Load(driveID string) error
func (*UploaderCollection) Save ¶
func (uc *UploaderCollection) Save(driveID string) error
type UploaderDescription ¶
type UploaderDescription struct {
UploaderReference *UploaderReference `json:"uploaderReference"`
UploadableProperties *graphapi.MicrosoftGraphDriveItemUploadableProperties `json:"uploadableProperties"`
}
Click to show internal directories.
Click to hide internal directories.