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

Method CreateOrUpdate

cli/context/store/store.go:57–57  ·  view source on GitHub ↗
(meta Metadata)

Source from the content-addressed store, hash-verified

55// Writer provides write access to context data
56type Writer interface {
57 CreateOrUpdate(meta Metadata) error
58 Remove(name string) error
59 ResetTLSMaterial(name string, data *ContextTLSData) error
60 ResetEndpointTLSMaterial(contextName string, endpointName string, data *EndpointTLSData) error

Callers 11

CreateOrUpdateMethod · 0.65
TestErrCreateDefaultFunction · 0.65
TestCreateFunction · 0.65
runUpdateFunction · 0.65
createNewContextFunction · 0.65
importTarFunction · 0.65
importZipFunction · 0.65
TestExportImportFunction · 0.65
TestRemoveFunction · 0.65
TestCorruptMetadataFunction · 0.65
TestBuildWithBuilderFunction · 0.65

Implementers 2

ContextStoreWithDefaultcli/command/defaultcontextstore.go
ContextStorecli/context/store/store.go

Calls

no outgoing calls

Tested by 6

TestErrCreateDefaultFunction · 0.52
TestCreateFunction · 0.52
TestExportImportFunction · 0.52
TestRemoveFunction · 0.52
TestCorruptMetadataFunction · 0.52
TestBuildWithBuilderFunction · 0.52