package
Version:
v2.7.3
Opens a new window with list of versions in this module.
Published: Mar 26, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package build contains utils for egbuilder build command.
Package build contains utils for egbuilder build command.
Build builds Easegress with custom plugins.
Run runs the easegress-server with plugins in current directory.
type Compile struct {
OS string `json:"os,omitempty"`
Arch string `json:"arch,omitempty"`
ARM string `json:"arm,omitempty"`
Cgo bool `json:"cgo,omitempty"`
}
Compile contains parameters for compilation.
CgoEnabled returns "1" if c.Cgo is true, "0" otherwise.
This is used for setting the CGO_ENABLED env variable.
type Config struct {
Options `json:",inline"`
Plugins []*Plugin `json:"plugins"`
Output string `json:"output"`
}
Init initializes the config. When use NewConfig, Init will be called automatically.
type Options struct {
Compile Compile `json:"compile"`
EGVersion string `json:"egVersion"`
RaceDetector bool `json:"raceDetector"`
SkipBuild bool `json:"skipBuild"`
SkipCleanup bool `json:"skipCleanup"`
BuildFlags []string `json:"buildFlags"`
ModFlags []string `json:"modFlags"`
}
type Plugin struct {
Module string `json:"module"`
Version string `json:"version"`
Replacement string `json:"replacement"`
}
Plugin contains parameters for a plugin.
type Runner struct {
Options `json:",inline"`
EgServerArgs []string `json:"egServerArgs"`
}
Runner is the runner of easegress-server. It is used to build and run easegress-server.
NewRunner creates a new runner.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.