dropbox

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnector

func NewConnector() (*sdk.ConnectorPlugin, error)

Types

type CopyFileOperation

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

func NewCopyFileOperation

func NewCopyFileOperation() *CopyFileOperation

func (*CopyFileOperation) GetInfo

func (c *CopyFileOperation) GetInfo() *sdk.OperationInfo

func (*CopyFileOperation) Run

func (c *CopyFileOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*CopyFileOperation) Test

func (c *CopyFileOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type CopyFolderOperation

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

func NewCopyFolderOperation

func NewCopyFolderOperation() *CopyFolderOperation

func (*CopyFolderOperation) GetInfo

func (c *CopyFolderOperation) GetInfo() *sdk.OperationInfo

func (*CopyFolderOperation) Run

func (c *CopyFolderOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*CopyFolderOperation) Test

func (c *CopyFolderOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type CreateFolderOperation

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

func NewCreateFolderOperation

func NewCreateFolderOperation() *CreateFolderOperation

func (*CreateFolderOperation) GetInfo

func (c *CreateFolderOperation) GetInfo() *sdk.OperationInfo

func (*CreateFolderOperation) Run

func (*CreateFolderOperation) Test

func (c *CreateFolderOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type DeleteFileOperation

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

func NewDeleteFileOperation

func NewDeleteFileOperation() *DeleteFileOperation

func (*DeleteFileOperation) GetInfo

func (c *DeleteFileOperation) GetInfo() *sdk.OperationInfo

func (*DeleteFileOperation) Run

func (c *DeleteFileOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*DeleteFileOperation) Test

func (c *DeleteFileOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type DeleteFolderOperation

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

func NewDeleteFolderOperation

func NewDeleteFolderOperation() *DeleteFolderOperation

func (*DeleteFolderOperation) GetInfo

func (c *DeleteFolderOperation) GetInfo() *sdk.OperationInfo

func (*DeleteFolderOperation) Run

func (*DeleteFolderOperation) Test

func (c *DeleteFolderOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type FileMove

type FileMove struct {
	AllowOwnershipTransfer bool   `json:"allow_ownership_transfer"`
	Autorename             bool   `json:"autorename"`
	FromPath               string `json:"from_path"`
	ToPath                 string `json:"to_path"`
}

type FileMoveMetadata

type FileMoveMetadata struct {
	Metadata struct {
		Tag            string `json:".tag"`
		ClientModified string `json:"client_modified"`
		ContentHash    string `json:"content_hash"`
		FileLockInfo   struct {
			Created        string `json:"created"`
			IsLockholder   bool   `json:"is_lockholder"`
			LockholderName string `json:"lockholder_name"`
		} `json:"file_lock_info"`
		HasExplicitSharedMembers bool   `json:"has_explicit_shared_members"`
		ID                       string `json:"id"`
		IsDownloadable           bool   `json:"is_downloadable"`
		Name                     string `json:"name"`
		PathDisplay              string `json:"path_display"`
		PathLower                string `json:"path_lower"`
		PropertyGroups           []struct {
			Fields []struct {
				Name  string `json:"name"`
				Value string `json:"value"`
			} `json:"fields"`
			TemplateID string `json:"template_id"`
		} `json:"property_groups"`
		Rev            string `json:"rev"`
		ServerModified string `json:"server_modified"`
		SharingInfo    struct {
			ModifiedBy           string `json:"modified_by"`
			ParentSharedFolderID string `json:"parent_shared_folder_id"`
			ReadOnly             bool   `json:"read_only"`
		} `json:"sharing_info"`
		Size int64 `json:"size"`
	} `json:"metadata"`
}

type GetFileLinkOperation

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

func NewGetFileLinkOperation

func NewGetFileLinkOperation() *GetFileLinkOperation

func (*GetFileLinkOperation) GetInfo

func (c *GetFileLinkOperation) GetInfo() *sdk.OperationInfo

func (*GetFileLinkOperation) Run

func (c *GetFileLinkOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*GetFileLinkOperation) Test

func (c *GetFileLinkOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type ListFolderOperation

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

func NewListFolderOperation

func NewListFolderOperation() *ListFolderOperation

func (*ListFolderOperation) GetInfo

func (c *ListFolderOperation) GetInfo() *sdk.OperationInfo

func (*ListFolderOperation) Run

func (c *ListFolderOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*ListFolderOperation) Test

func (c *ListFolderOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type MoveFileOperation

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

func NewMoveFileOperation

func NewMoveFileOperation() *MoveFileOperation

func (*MoveFileOperation) GetInfo

func (c *MoveFileOperation) GetInfo() *sdk.OperationInfo

func (*MoveFileOperation) Run

func (c *MoveFileOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*MoveFileOperation) Test

func (c *MoveFileOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type MoveFolderOperation

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

func NewMoveFolderOperation

func NewMoveFolderOperation() *MoveFolderOperation

func (*MoveFolderOperation) GetInfo

func (c *MoveFolderOperation) GetInfo() *sdk.OperationInfo

func (*MoveFolderOperation) Run

func (c *MoveFolderOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*MoveFolderOperation) Test

func (c *MoveFolderOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

Jump to

Keyboard shortcuts

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