interactions

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadBoxFile added in v1.0.1

func DownloadBoxFile(client *http.Client, boxFilePath string, localPath string) (string, error)

func DownloadBoxFolder added in v1.0.1

func DownloadBoxFolder(client *http.Client, boxFolderPath string) error

func DownloadFile added in v0.3.0

func DownloadFile(srv *drive.Service, drivePath string) (string, error)

func DownloadFolder added in v0.3.0

func DownloadFolder(srv *drive.Service, drivePath string) error

func GetBoxClient added in v1.0.1

func GetBoxClient(credentialsFile string) (*http.Client, error)

func GetDriveService added in v0.3.0

func GetDriveService(credentialsFile string) (*drive.Service, error)

func HumanReadableBoxSize added in v1.0.1

func HumanReadableBoxSize(size int64) string

func HumanReadableSize added in v0.3.0

func HumanReadableSize(size int64) string

func ListBoxContents added in v1.0.1

func ListBoxContents(client *http.Client, folderPath string) ([]BoxItemDisplay, []BoxItemDisplay, error)

func ListDriveContents added in v0.3.0

func ListDriveContents(srv *drive.Service, folderName string) ([]DriveItem, []DriveItem, error)

func UploadBoxFile added in v1.0.1

func UploadBoxFile(client *http.Client, localPath string, boxFolderPath string) error

func UploadBoxFolder added in v1.0.1

func UploadBoxFolder(client *http.Client, localPath string, boxFolderPath string) error

func UploadFile added in v0.3.0

func UploadFile(srv *drive.Service, localPath string, driveFolder string) (*drive.File, error)

func UploadFolder added in v0.3.0

func UploadFolder(srv *drive.Service, localPath string, driveFolder string) error

Types

type BoxCredentials added in v1.0.1

type BoxCredentials struct {
	ClientID     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
}

type BoxError added in v1.0.1

type BoxError struct {
	Type    string `json:"type"`
	Status  int    `json:"status"`
	Code    string `json:"code"`
	Message string `json:"message"`
}

type BoxFolderItems added in v1.0.1

type BoxFolderItems struct {
	TotalCount int       `json:"total_count"`
	Entries    []BoxItem `json:"entries"`
}

type BoxItem added in v1.0.1

type BoxItem struct {
	Type   string `json:"type"`
	ID     string `json:"id"`
	Name   string `json:"name"`
	Size   *int64 `json:"size"`
	Parent *struct {
		ID string `json:"id"`
	} `json:"parent"`
	ModifiedAt *string `json:"modified_at"`
}

type BoxItemDisplay added in v1.0.1

type BoxItemDisplay struct {
	Name         string
	ModifiedTime string
	Size         int64
	Type         string
}

type DriveItem added in v0.3.0

type DriveItem struct {
	Name         string
	ModifiedTime string
	Size         int64
}

type QueryResult

type QueryResult struct {
	Query  string           `json:"query"`
	Result []map[string]any `json:"result"`
}

func ExecuteNeo4jQueries

func ExecuteNeo4jQueries(ctx context.Context, uri, user, password, database string, queries []string, writeMode bool) ([]QueryResult, error)

func ExecuteNeo4jQueriesFromFile

func ExecuteNeo4jQueriesFromFile(ctx context.Context, uri, user, password, database, filePath string, writeMode bool) ([]QueryResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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