MCPcopy Create free account
hub / github.com/cloudbase/garm / SetEndpoint

Method SetEndpoint

cache/endpoint_cache.go:36–42  ·  view source on GitHub ↗
(ep params.ForgeEndpoint)

Source from the content-addressed store, hash-verified

34}
35
36func (e *EndpointCache) SetEndpoint(ep params.ForgeEndpoint) {
37 e.mux.Lock()
38 defer e.mux.Unlock()
39
40 e.endpoints[ep.Name] = ep
41 UpdateCredentialsUsingEndpoint(ep)
42}
43
44func (e *EndpointCache) GetEndpoint(epName string) (params.ForgeEndpoint, bool) {
45 e.mux.Lock()

Callers 1

SetEndpointFunction · 0.45

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected