MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / WriteFile

Method WriteFile

internal/configs/api_config.go:82–89  ·  view source on GitHub ↗

WriteFile 保存到文件

(path string)

Source from the content-addressed store, hash-verified

80
81// WriteFile 保存到文件
82func (this *APIConfig) WriteFile(path string) error {
83 data, err := yaml.Marshal(this)
84 if err != nil {
85 return err
86 }
87 err = os.WriteFile(path, data, 0666)
88 return err
89}

Callers 15

LoadAPIConfigFunction · 0.80
installInitServiceMethod · 0.80
installSystemdServiceMethod · 0.80
calculateMinLoadHoursFunction · 0.80
CheckDiskIsFastFunction · 0.80
WriteFileFunction · 0.80
DumpMethod · 0.80
checkClusterConfigMethod · 0.80
tuneSystemParametersMethod · 0.80
LoopMethod · 0.80
handleChangeAPINodeMethod · 0.80
SaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected