MCPcopy
hub / github.com/kubeedge/kubeedge / Flags

Method Flags

edge/cmd/edgecore/app/options/options.go:54–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func (o *EdgeCoreOptions) Flags() (fss cliflag.NamedFlagSets) {
55 fs := fss.FlagSet("global")
56 fs.StringVar(&o.ConfigFile, "config", o.ConfigFile, "The path to the configuration file. Flags override values in this file.")
57 osExclusiveFlags(fs, o)
58 return
59}
60
61func (o *EdgeCoreOptions) Validate() []error {
62 var errs []error

Callers 15

NewEdgeCoreCommandFunction · 0.95
mainFunction · 0.45
mainFunction · 0.45
RunFunction · 0.45
addResetFlagsFunction · 0.45
addResetFlagsFunction · 0.45
NewCmdVersionFunction · 0.45
RunVersionFunction · 0.45
TestNewGetTokenFunction · 0.45
TestAddGettokenFlagsFunction · 0.45
TestGettokenRunEFunction · 0.45

Calls 1

osExclusiveFlagsFunction · 0.70

Tested by 15

TestNewGetTokenFunction · 0.36
TestAddGettokenFlagsFunction · 0.36
TestGettokenRunEFunction · 0.36
TestNewCloudUpgradeFunction · 0.36
TestRunE_ForceFlagFunction · 0.36
TestRunE_TearDownErrorFunction · 0.36
TestNewCheckFunction · 0.36
TestNewSubEdgeCheckFunction · 0.36
TestNewSubDiagnoseFunction · 0.36