custombrowserstructs

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CUSTOMBROWSER_TABLE_COLUMN_TYPE_STRING = "string"
	CUSTOMBROWSER_TABLE_COLUMN_TYPE_NUMBER = "number"
	CUSTOMBROWSER_TABLE_COLUMN_TYPE_DATE   = "date"
	CUSTOMBROWSER_TABLE_COLUMN_TYPE_SIZE   = "size"
)
View Source
const (
	CUSTOMBROWSER_TYPE_FILE = "file"
)

Variables

View Source
var (
	AllCustomBrowserData containerCustomBrowserData
)

Functions

This section is empty.

Types

type CUSTOMBROWSER_TABLE_COLUMN_TYPE

type CUSTOMBROWSER_TABLE_COLUMN_TYPE string

type CUSTOMBROWSER_TYPE

type CUSTOMBROWSER_TYPE string

type CustomBrowserDefinition

type CustomBrowserDefinition struct {
	Name                       string                                `json:"name"`
	Description                string                                `json:"description"`
	Author                     string                                `json:"author"`
	SemVer                     string                                `json:"semver"`
	Type                       CUSTOMBROWSER_TYPE                    `json:"type"`
	PathSeparator              string                                `json:"separator"`
	Columns                    []CustomBrowserTableColumn            `json:"columns"`
	DefaultVisibleColumns      []string                              `json:"default_visible_columns"`
	IndicatePartialListingInUI bool                                  `json:"indicate_partial_listing"`
	ShowCurrentPathAboveTable  bool                                  `json:"show_current_path"`
	RowActions                 []CustomBrowserRowAction              `json:"row_actions"`
	ExtraTableTaskingInputs    []CustomBrowserExtraTableTaskingInput `json:"extra_table_inputs"`

	ExportFunction           CustomBrowserExportFunction                                                               `json:"export_function"`
	OnContainerStartFunction func(sharedStructs.ContainerOnStartMessage) sharedStructs.ContainerOnStartMessageResponse `json:"-"`
}

type CustomBrowserExportFunction

type CustomBrowserExportFunction func(message ExportFunctionMessage) ExportFunctionMessageResponse

func (CustomBrowserExportFunction) MarshalJSON

func (f CustomBrowserExportFunction) MarshalJSON() ([]byte, error)

type CustomBrowserExtraTableTaskingInput

type CustomBrowserExtraTableTaskingInput struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	DisplayName string `json:"display_name"`
	Required    bool   `json:"required"`
}

type CustomBrowserRowAction

type CustomBrowserRowAction struct {
	Name            string `json:"name"`
	UIFeature       string `json:"ui_feature"`
	Icon            string `json:"icon"`
	Color           string `json:"color"`
	SupportsFile    bool   `json:"supports_file"`
	SupportsFolder  bool   `json:"supports_folder"`
	OpenDialog      bool   `json:"openDialog"`
	GetConfirmation bool   `json:"getConfirmation"`
}

type CustomBrowserTableColumn

type CustomBrowserTableColumn struct {
	Key                string                          `json:"key"`
	Name               string                          `json:"name"`
	FillWidth          bool                            `json:"fillWidth"`
	Width              int64                           `json:"width"`
	DisableSort        bool                            `json:"disableSort"`
	DisableDoubleClick bool                            `json:"disableDoubleClick"`
	DisableFilterMenu  bool                            `json:"disableFilterMenu"`
	Type               CUSTOMBROWSER_TABLE_COLUMN_TYPE `json:"type"`
}

type ExportFunctionMessage

type ExportFunctionMessage struct {
	TreeType         string `json:"tree_type"`
	ContainerName    string `json:"container_name"`
	Host             string `json:"host"`
	Path             string `json:"path"`
	OperationID      int    `json:"operation_id"`
	OperatorID       int    `json:"operator_id"`
	OperatorUsername string `json:"operator_username"`
	CallbackGroup    string `json:"callback_group"`
}

type ExportFunctionMessageResponse

type ExportFunctionMessageResponse struct {
	Success           bool   `json:"success"`
	Error             string `json:"error"`
	CompletionMessage string `json:"completion_message"`
	OperationID       int    `json:"operation_id"`
	TreeType          string `json:"tree_type"`
}

Jump to

Keyboard shortcuts

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