file_browser_plugin

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	NamePluginDebug   = "config.debug"
	EnvPluginTimeOut  = "PLUGIN_TIMEOUT_SECOND"
	NamePluginTimeOut = "config.timeout_second"

	WorkModeSend     = "send"
	WorkModeDownload = "download"

	DistTypeGit    = "git"
	DistTypeCustom = "custom"

	EnvPluginFileBrowserResultShareHost        = "PLUGIN_FILE_BROWSER_RESULT_SHARE_HOST"
	EnvPluginFileBrowserResultSharePage        = "PLUGIN_FILE_BROWSER_RESULT_SHARE_PAGE"
	EnvPluginFileBrowserResultSharePasswd      = "PLUGIN_FILE_BROWSER_RESULT_SHARE_PASSWD"
	EnvPluginFileBrowserResultShareDownloadUrl = "PLUGIN_FILE_BROWSER_RESULT_SHARE_DOWNLOAD_URL"
	EnvPluginFileBrowserResultShareUser        = "PLUGIN_FILE_BROWSER_RESULT_SHARE_USER"
	EnvPluginFileBrowserResultShareRemotePath  = "PLUGIN_FILE_BROWSER_RESULT_SHARE_REMOTE_PATH"
)

Variables

This section is empty.

Functions

func CommonFlag added in v1.5.0

func CommonFlag() []cli.Flag

CommonFlag Other modules also have flags

func Flag added in v1.5.0

func Flag() []cli.Flag

Flag set flag at here

func HideFlag added in v1.5.0

func HideFlag() []cli.Flag

HideFlag set file_browser_plugin hide flag at here

func IsBuildDebugOpen added in v1.9.0

func IsBuildDebugOpen(c *cli.Context) bool

IsBuildDebugOpen when config or drone build open debug will open debug

Types

type Config

type Config struct {
	Debug bool

	TimeoutSecond uint

	FileBrowserBaseConfig FileBrowserBaseConfig

	FileBrowserWorkMode string

	FileBrowserSendModeConfig FileBrowserSendModeConfig

	FileBrowserDownloadModeConfig FileBrowserDownloadModeConfig
}

Config file_browser_plugin private config

type FileBrowserBaseConfig

type FileBrowserBaseConfig struct {
	FileBrowserHost              string
	FileBrowserUsername          string
	FileBrowserUserPassword      string
	FileBrowserTimeoutPushSecond uint
	FileBrowserWorkSpace         string
}

type FileBrowserDownloadModeConfig

type FileBrowserDownloadModeConfig struct {
	FileBrowserDownloadEnable    bool
	FileBrowserDownloadPath      string
	FileBrowserDownloadLocalPath string
}

type FileBrowserPlugin

type FileBrowserPlugin struct {
	Name    string
	Version string
	Drone   drone_info.Drone
	Config  Config
	// contains filtered or unexported fields
}

FileBrowserPlugin file_browser_plugin all config

func BindFlag added in v1.5.0

func BindFlag(c *cli.Context, cliVersion, cliName string, drone drone_info.Drone) FileBrowserPlugin

func (*FileBrowserPlugin) CleanResultEnv

func (p *FileBrowserPlugin) CleanResultEnv() error

func (*FileBrowserPlugin) Exec

func (p *FileBrowserPlugin) Exec() error

type FileBrowserSendModeConfig

type FileBrowserSendModeConfig struct {
	FileBrowserRemoteRootPath     string
	FileBrowserDistType           string
	FileBrowserDistGraph          string
	FileBrowserTargetDistRootPath string
	FileBrowserTargetFileGlob     []string
	FileBrowserTargetFileRegular  string
	FileBrowserShareLinkEnable    bool
	// FileBrowserShareLinkUnit
	// use [ web_api.ShareUnitDays web_api.ShareUnitHours
	// web_api.ShareUnitMinutes
	// web_api.ShareUnitSeconds ]
	FileBrowserShareLinkUnit               string
	FileBrowserShareLinkExpires            uint
	FileBrowserShareLinkAutoPasswordEnable bool
	FileBrowserShareLinkPassword           string
}

Jump to

Keyboard shortcuts

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