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

Method IsEmpty

pkg/controller/registry/options.go:63–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 }
62}
63func (o *Options) IsEmpty() bool {
64 return o.Endpoint == ""
65}
66func (s *Options) AddFlags(prefix string, fs *pflag.FlagSet) {
67 fs.StringVar(&s.Endpoint, getFlagName(prefix, "repository-endpoint"), s.Endpoint, "function repository endpoint")
68 fs.StringVar(&s.Version, getFlagName(prefix, "repository-version"), s.Version, "function repository api version")

Callers 1

InitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected