Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baidu/EasyFaaS
/ NewResource
Function
NewResource
pkg/api/funclet.go:77–82 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
75
}
76
77
func
NewResource() *Resource {
78
return
&Resource{
79
MilliCPUs: 0,
80
Memory: 0,
81
}
82
}
83
84
func
(r *Resource) String() string {
85
if
r == nil {
Callers
2
NewRuntimeManager
Function · 0.92
NewFuncletResource
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected