MCPcopy Index your code
hub / github.com/docker/cli / buildToRemoveSet

Function buildToRemoveSet

cli/command/service/update.go:898–911  ·  view source on GitHub ↗
(flags *pflag.FlagSet, flag string)

Source from the content-addressed store, hash-verified

896}
897
898func buildToRemoveSet(flags *pflag.FlagSet, flag string) map[string]struct{} {
899 var empty struct{}
900 toRemove := make(map[string]struct{})
901
902 if !flags.Changed(flag) {
903 return toRemove
904 }
905
906 toRemoveSlice := flags.Lookup(flag).Value.(*opts.ListOpts).GetSlice()
907 for _, key := range toRemoveSlice {
908 toRemove[key] = empty
909 }
910 return toRemove
911}
912
913func removeItems(
914 seq []string,

Callers 8

updateEnvironmentFunction · 0.85
getUpdatedSecretsFunction · 0.85
removeConfigsFunction · 0.85
updateMountsFunction · 0.85
updateGroupsFunction · 0.85
updateDNSConfigFunction · 0.85
updateNetworksFunction · 0.85

Calls 1

GetSliceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…