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

Method Copy

pkg/api/funclet.go:91–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91func (r *Resource) Copy() *Resource {
92 if r == nil {
93 return nil
94 }
95 rp := Resource{}
96 rp.Memory = r.Memory
97 rp.MilliCPUs = r.MilliCPUs
98 return &rp
99}
100
101func (r *Resource) Sync(rs *Resource) {
102 if rs == nil {

Callers 14

CopyFileFunction · 0.45
GenerateHostsFileFunction · 0.45
TestHelperProcessFunction · 0.45
calSHA256Method · 0.45
coolDownMethod · 0.45
rebornMethod · 0.45
TestResourceFunction · 0.45
ResourceStatisticsMethod · 0.45
FetchMethod · 0.45
FetchMethod · 0.45
CopyMethod · 0.45
requestMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestHelperProcessFunction · 0.36
TestResourceFunction · 0.36