MCPcopy Create free account
hub / github.com/docker/cli / CreateOrUpdate

Method CreateOrUpdate

cli/context/store/store.go:137–139  ·  view source on GitHub ↗

CreateOrUpdate creates or updates metadata for the context.

(meta Metadata)

Source from the content-addressed store, hash-verified

135
136// CreateOrUpdate creates or updates metadata for the context.
137func (s *ContextStore) CreateOrUpdate(meta Metadata) error {
138 return s.meta.createOrUpdate(meta)
139}
140
141// Remove deletes the context with the given name, if found.
142func (s *ContextStore) Remove(name string) error {

Callers

nothing calls this directly

Calls 1

createOrUpdateMethod · 0.45

Tested by

no test coverage detected