models

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomProperties

type CustomProperties map[string]string

func (CustomProperties) Bytes

func (cp CustomProperties) Bytes() []byte

func (CustomProperties) String

func (cp CustomProperties) String() string

type DeviceAccessCodeResponse

type DeviceAccessCodeResponse struct {
	ExpIn           int64  `json:"expires_in"`
	Interval        int    `json:"interval"`
	DeviceCode      string `json:"device_code"`
	UserCode        string `json:"user_code"`
	VerificationUrl string `json:"verification_url"`
}

type DiskInfo

type DiskInfo struct {
	TrashSize     int64             `json:"trash_size"`
	TotalSpace    int64             `json:"total_space"`
	UsedSpace     int64             `json:"used_space"`
	SystemFolders map[string]string `json:"system_folders"`
}

type ErrorResponse

type ErrorResponse struct {
	ErrDesc string `json:"error_description"`
	Error   string `json:"error"`
}

type FileResourceList

type FileResourceList struct {
	Items  []Resource `json:"items"`
	Limit  *int       `json:"limit"`
	Offset *int       `json:"offset"`
}

type LastUploadedResourceList

type LastUploadedResourceList struct {
	Items []Resource `json:"items"`
	Limit *int       `json:"limit"`
}
type Link struct {
	Href      string `json:"href"`
	Method    string `json:"method"`
	Templated bool   `json:"templated"`
}

type OAuthTokenResponse

type OAuthTokenResponse struct {
	ExpIn        int64  `json:"expires_in"`
	TokenType    string `json:"token_type"`
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
}

type Option

type Option struct {
	Key   string
	Value string
}

type Resource

type Resource struct {
	PublicKey        *string          `json:"public_key"`
	Embedded         *ResourceList    `json:"_embedded"`
	Name             *string          `json:"name"`
	Preview          *string          `json:"preview"`
	Created          *time.Time       `json:"created"`
	Modified         *time.Time       `json:"modified"`
	CustomProperties CustomProperties `json:"custom_properties"`
	PublicUrl        *string          `json:"public_url"`
	Path             *string          `json:"path"`
	OriginPath       *string          `json:"origin_path"`
	Md5              *string          `json:"md5"`
	Type             *string          `json:"type"`
	MimeType         *string          `json:"mime_type"`
	Size             *int64           `json:"size"`
}

type ResourceList

type ResourceList struct {
	Sort      *string    `json:"sort"`
	PublicKey *string    `json:"public_key"`
	Items     []Resource `json:"items"`
	Path      *string    `json:"path"`
	Limit     *int       `json:"limit"`
	Offset    *int       `json:"offset"`
	Total     *int       `json:"total"`
}

Jump to

Keyboard shortcuts

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