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

Method Copy

pkg/api/controller.go:212–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210}
211
212func (r *ServiceResource) Copy() *ServiceResource {
213 rp := ServiceResource{
214 Capacity: r.Capacity.Copy(),
215 Allocatable: r.Allocatable.Copy(),
216 Used: r.Used.Copy(),
217 Marked: r.Marked.Copy(),
218 Default: r.Default.Copy(),
219 BaseMemory: r.BaseMemory,
220 }
221 return &rp
222}
223
224type ScaleUpRecommendation struct {
225 TargetMemory string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected