Documentation ¶
Index ¶
- Variables
- func DPanic(msg string, fields ...zap.Field)
- func DPanicF(msg string, args ...interface{})
- func Debug(msg string, fields ...zap.Field)
- func DebugF(msg string, args ...interface{})
- func Error(msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func FatalF(msg string, args ...interface{})
- func FileExists(path string) bool
- func GetExecCommands(destPath string, appInfo VulhubAppDBStruct) []string
- func Info(msg string, fields ...zap.Field)
- func InfoF(msg string, args ...interface{})
- func InitConfig(config Config)
- func InitConfigPath(configPath string)
- func InitDBFile() bool
- func IsDir(path string) bool
- func Logger() *zap.Logger
- func Panic(msg string, fields ...zap.Field)
- func PanicF(msg string, args ...interface{})
- func Warn(msg string, fields ...zap.Field)
- func WarnF(msg string, args ...interface{})
- type Config
- type DockerComposeServiceStruct
- type DockerComposeStruct
- type VulhubAppDBStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var AppVersion string
View Source
var ForceFlag bool
View Source
var HomeDir string
View Source
var VulhubAppDBUrl string
View Source
var VulhubConfig string
View Source
var VulhubConfigDBPath string
View Source
var VulhubDBName string
View Source
var VulhubDBs []VulhubAppDBStruct
Functions ¶
func FileExists ¶
FileExists Determine whether the given path file exists
func GetExecCommands ¶
func GetExecCommands(destPath string, appInfo VulhubAppDBStruct) []string
GetExecCommands get app start commands
Types ¶
type DockerComposeServiceStruct ¶
type DockerComposeServiceStruct struct { Image string `yaml:"image"` Ports []string `yaml:"ports"` Build string `yaml:"build"` Networks []string `yaml:"networks"` Volumes []string `yaml:"volumes"` DependsOn []string `yaml:"depends_on"` Deploy struct { Mode string `yaml:"mode"` Replicas int `yaml:"replicas"` Labels []string `yaml:"labels"` RestartPolicy struct { Condition string `yaml:"condition"` Delay string `yaml:"delay"` MaxAttempts int `yaml:"max_attempts"` Window string `yaml:"window"` } `json:"restart_policy"` Placement struct { Constraints []string `yaml:"constraints"` } `json:"placement"` UpdateConfig struct { Parallelism int `yaml:"parallelism"` Delay string `yaml:"delay"` } `yaml:"update_config"` } `yaml:"deploy"` StopGracePeriod string `yaml:"stop_grace_period"` }
DockerComposeServiceStruct docker-compose service struct
type DockerComposeStruct ¶
type DockerComposeStruct struct { Version string `yaml:"version"` Services map[string]DockerComposeServiceStruct `yaml:"services"` }
DockerComposeStruct docker-compose struct
func ParseDockerCompose ¶
func ParseDockerCompose(filePath string) DockerComposeStruct
ParseDockerCompose Parse docker-compose.yml to struct
Click to show internal directories.
Click to hide internal directories.