MCPcopy
hub / github.com/nicholas-fedor/watchtower / Add

Method Add

pkg/session/progress.go:112–119  ·  view source on GitHub ↗

Add inserts a container status into the progress map. Parameters: - update: Status to add.

(update *ContainerStatus)

Source from the content-addressed store, hash-verified

110// Parameters:
111// - update: Status to add.
112func (m Progress) Add(update *ContainerStatus) {
113 m[update.containerID] = update
114 logrus.WithFields(logrus.Fields{
115 "container_id": update.containerID.ShortID(),
116 "name": update.containerName,
117 "state": update.State(),
118 }).Debug("Added container status to progress map")
119}
120
121// MarkForUpdate sets a container's state to updated.
122//

Callers 15

AddSkippedMethod · 0.95
AddScannedMethod · 0.95
evalImageAgeFunction · 0.80
buildListFilterArgsFunction · 0.80
createFilterArgsFunction · 0.80
FuzzGetShoutrrrTemplateFunction · 0.80
NewFunction · 0.80
generateTimeMethod · 0.80
GetBearerHeaderFunction · 0.80
GetAuthURLFunction · 0.80
auth_test.goFile · 0.80

Calls 2

StateMethod · 0.65
ShortIDMethod · 0.45

Tested by 15

FuzzGetShoutrrrTemplateFunction · 0.64
FuzzProcessChallengeFunction · 0.64
FuzzGetBearerHeaderFunction · 0.64
FuzzTransformAuthFunction · 0.64
FuzzGetAuthURLFunction · 0.64
FuzzExtractHeadDigestFunction · 0.64
FuzzExtractGetDigestFunction · 0.64
FuzzNormalizeDigestFunction · 0.64
FuzzDigestsMatchFunction · 0.64
FuzzBuildManifestURLFunction · 0.64