Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MediaTypeZip means plugin file is zip MediaTypeZip = "application/zip" // MediaTypeGzip means plugin file is gzip MediaTypeGzip = "application/x-gzip" )
View Source
const DownloadPluginFromURLTimeout = 10 * time.Minute
DownloadPluginFromURLTimeout is the timeout when downloading plugin from a URL
Variables ¶
View Source
var MaxPluginSourceBytes int64 = 256 * 1024 * 1024 // 256 MiB
MaxPluginSourceBytes specifies the limit on how many bytes are allowed in the server's response to the download from URL request.
The plugin source size must be strictly less than this value.
Functions ¶
Types ¶
type PluginSourceType ¶
type PluginSourceType int
PluginSourceType is an enum for plugin source
const ( // PluginSourceTypeFile means plugin source is file PluginSourceTypeFile PluginSourceType = 1 + iota // PluginSourceTypeURL means plugin source is URL PluginSourceTypeURL )
Click to show internal directories.
Click to hide internal directories.