File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,25 @@ func (s *Store) Resolve(ctx context.Context, reference string) (ocispec.Descript
238
238
return desc , nil
239
239
}
240
240
241
+ func (s * Store ) Untag (ctx context.Context , digest string ) error {
242
+ s .sync .RLock ()
243
+ defer s .sync .RUnlock ()
244
+
245
+ if err := validateReference (digest ); err != nil {
246
+ return err
247
+ }
248
+
249
+ return s .untag (digest )
250
+ }
251
+
252
+ func (s * Store ) untag (reference string ) error {
253
+ s .tagResolver .Untag (reference )
254
+ if s .AutoSaveIndex {
255
+ return s .saveIndex ()
256
+ }
257
+ return nil
258
+ }
259
+
241
260
// Predecessors returns the nodes directly pointing to the current node.
242
261
// Predecessors returns nil without error if the node does not exists in the
243
262
// store.
You can’t perform that action at this time.
0 commit comments