MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / AddFlags

Method AddFlags

pkg/controller/function/options.go:35–37  ·  view source on GitHub ↗
(prefix string, fs *pflag.FlagSet)

Source from the content-addressed store, hash-verified

33 }
34}
35func (s *StorageCacheOptions) AddFlags(prefix string, fs *pflag.FlagSet) {
36 fs.DurationVar(&s.CacheExpiration, getFlagName(prefix, "cache-expiration"), s.CacheExpiration, "cache exipiration; unit seconds")
37}
38
39func getFlagName(prefix, flagName string) string {
40 if prefix == "" {

Callers

nothing calls this directly

Calls 1

getFlagNameFunction · 0.70

Tested by

no test coverage detected